From 3102fdf1769d03846e7853e99b9c21f17056f647 Mon Sep 17 00:00:00 2001 From: Troy <121986550+radiohotline@users.noreply.github.com> Date: Fri, 2 Jun 2023 22:39:59 +0300 Subject: Update loveletter.cpp --- src/loveletter.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/loveletter.cpp b/src/loveletter.cpp index c9b6336..cb2f42a 100644 --- a/src/loveletter.cpp +++ b/src/loveletter.cpp @@ -1,13 +1,3 @@ -/* -Print two words taken from a list of salutations -Do the following 5 times: - - Choose one of two sentence structures depending on a random value Rand - Fill the sentence structure from lists of adjectives, adverbs, substantives, and verbs. - -Print the letter's closing -*/ - #include #include #include @@ -18,7 +8,7 @@ using namespace std; string word(string type[]) { string word; - word = type[rand() % size(type)];; + word = type[rand() % size(type)]; return word; } -- cgit v1.3