-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
31 lines (30 loc) · 1.3 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
struct StringData
{
char string[100];
};
void main()
{
cout << "\n-------------- Mad Libs --------------\n";
cout << "\nEnter 10 Variables\n";
StringData data[10];
for(int i = 0; i <= 9; i++)
{
cout << "\n enter variable #" << i << ":";
cin >> data[i].string;
}
cout << "\n-------------- Your Result --------------\n";
cout << "\n some guy was walking down the street when: " << data[0].string << " came along\n";
cout << "\n then this little: " << data[1].string << " started screaming " << endl;
cout << "\n what happend to this, point were did it go? : " << data[2].string << endl;
cout << "\n how many times must I tell you this: " << data[3].string << endl;
cout << "\n my mind speaks of this: " << data[4].string << endl;
cout << "\n this is a story of a boy named .." << data[5].string << endl;
cout << "\n low and below, there it was..." << data[6].string << endl;
cout << "\n and so we kept on saying this: " << data[7].string << endl;
cout << "\n this is a spew of nonsense: " << data[8].string << endl;
cout << "\n Nice, see you next time!";
system("pause");
}