PDA

View Full Version : Inputs [C++]



SonniE
05-22-2008, 08:21 PM
//Coded By SonniE
#include <iostream>
using namespace std;

int main ()
{
string variable;
cout << "Welcome To SonniE's Program a WWW.codinghs.COM Original!\n";
cout << "What Do You Like todo? ";
getline (cin, variable);
cout << variable << "! Thats cool i guess..." << "\n";
getline (cin, variable);
return 0;
}

Hacker117
05-25-2008, 01:03 AM
Kool thanks, helped with my imputs. Lol i might get rid of visua C++ lol. I like the gui, it just wont accept my code -__-

xWhite_Shadowx
05-25-2008, 01:30 AM
Inputs are scanners of C, its pretty easy. oh and the better thing of C is the print line statement as opposed to the print of C++, it lets you not need to use the escape function of \n to skip a line, though it is an option for C