post  Duoas is engaged

Duoas (3510)   Link to this post
Thank you! I love her so much!
wachtn (183)   Link to this post
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;
int main()
{
    string OMG;
    cout << "Did she say \"Yes\"?";
    cin >> OMG;
    if (OMG == "yes")
    {
        for (int i=1;i>0;i++)
        {
            if (i%20==1)
            {
                cout << endl << endl << "Congratulations ";
            }
            cout << "=] " ;
        }
    }
cin.get();
}
QWERTYman (367)   Link to this post
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;

int main()
{
string wow[2] = {"lations", "Congratu"};
for(int i = 0; i < 2; i++)
{
cout << (i? wow[0] : wow[1]);
}
cin.ignore(numeric_limits<streamsize>::max(), '\n');
}
Last edited on
Duoas (3510)   Link to this post
Thank you!

Just so you all know, I've been compiling and executing every one of your programs.

My fiancée is impressed with the all responses here.

:-)

Pages: [1] [2]


This topic is archived - New replies not allowed.