/*header*/ #include <iostream> using namespace std; /* inside the function */ cout << "How are you?\n";
char str[512];
printf("How are ya?\n");
fgets(str, 512, STDIN); //or scanf...
printf("%s\n", str);
char str[512]; cout << How are ya? << endl; cin << str; cout << str << endl;
