SIMPLE NAME PROGRAM - getline(cin YourName if(YourName ==...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
SIMPLE NAME PROGRAM #include <iostream> #include <string> using namespace std; int main() { string YourName; cout <<"let's see how hot you are.\n"; cout <<"Your name please";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: getline (cin, YourName); if (YourName == “ insernamehere ”) { cout <<"You're HOT!"; } else { cout <<"eeeeeehhhhhhh. ....... whatever."; } system ("pause"); }...
View Full Document

This note was uploaded on 07/27/2011 for the course COL 201 taught by Professor Magtibay during the Winter '10 term at De La Salle Lipa.

Ask a homework question - tutors are online