Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string name;
- cout << "What is your name?" << endl;
- cin >> name;
- cout << name << endl;
- string sampleString = "Dos Reyes\n";
- bool studying;
- cout << "Are you studying?(True or False)" << endl;
- cin >> studying;
- if (studying == false)
- {
- cout << "I will study now\n" << endl;
- }
- else
- {
- cout << "I'll pass this semester\n"<< endl;
- }
- int i;
- cin >> i;
- switch (i)
- {
- case 1:
- cout << "I'll pass this semester\n" << endl;
- break;
- case 2:
- cout << "I'll study more next time\n" << endl;
- break;
- }
- while (i > 0)
- {
- i--;
- }
- for (int x = 0; x <= 5; x++)
- {
- cout << "I'll pass this sem\n" << endl;
- }
- string mainHeroML[3];
- mainHeroML[3] = {"Fanny", "Cecillion"< "Ling"};
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment