diff options
| author | Troy <121986550+radiohotline@users.noreply.github.com> | 2023-06-02 22:39:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 22:39:59 +0300 |
| commit | 3102fdf1769d03846e7853e99b9c21f17056f647 (patch) | |
| tree | b9eaffefc351ba57fec776578f23ef94e120d829 /src | |
| parent | a3b0bdfdc4c1bac38c0e94a8b4e8d909de7c4b6a (diff) | |
Update loveletter.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/loveletter.cpp | 12 |
1 files changed, 1 insertions, 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 <iostream> #include <cstdlib> #include <ctime> @@ -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; } |
