 |
#include <iostream> #include <string> using namespace std;
int main () { string name,answer; // is this right?? cout << "Hello, What's your name? "; cin >> name; cout << "Hello " << name << "do you love me?\n"; cin >> answer; if (answer=yes) // and obciously this didnt work cout << "I love you too... Marry ME!\n"; /*else if (blabla cout << bla bla else if (blab lblablab*/ // you can see my reasoning but well this is not ints or floats // so i have no idea how to approach this
return 0; }
โค้ดนี้รันได้จริงค่ะ ให้เค้าไปใส่ใน C รันโล้ด
จากคุณ |
:
Lil kittenz
|
เขียนเมื่อ |
:
20 ม.ค. 54 21:17:34
|
|
|
|
 |