Well, just for further reference, then, here's my full, rather convoluted code, as of right now.
Code:
#include "Hello World.h" /*References "Hello World.h" header, which contains the
instruction to use the <iostream> "dictionary" of commands*/
using namespace std; /*Tells the program to use the standard (std) library of
commands, enabling things like "cout" and "cin.get" to be
used without the "std::" prefix preceding them*/
#include "Hello World.txt"
int main (int argc, char* argv[]) /*Unknown as of yet*/
{
int age;
int x;
cout<<"Hello, World!\n"; /*Outputs "Hello, World!" in the prompt window*/
//cout<<argv[0]; /*Results in the display of this program's directory, in
// sequence after the display of "Hello, World!"*/
//cout<<argv[1];
//cout<<argv[2];
cout<< "How old am I?\n";
cin>> age;
cin.get();
if (age < 10) cout<< "Wow, I'm young!\n";
else cout<< "Wow, I'm old!\n";
// if (age > 100) cout<< "Are you serious? Am I really that ancient?\n";
cin.get();
cout<< "Here goes my looping test! Are you ready?\n";
cin.get();
{
for (x=0; x<1000; x++) {
cout<< x;}
}
cout<< "Isn't that crazy?\n";
cin.get();
cout<< "Do you wanna see more?\n";
cin>> input;
if (input=="yes") {cout<< "Okay, here goes!\n";
for (x=0; x<10000; x++) {
cout<< x;}
}
if (input=="no") cout<< "Awww...bye.\n";
cin.get(); /*Must press enter to close program*/
return 0; /*Return the value of 0 to the OS upon program's success - a verification*/
}
Daved: .str stands for string. My problem was that, when I typed in #include input at the very top of my code, it gave me an error message that said a directory or filename was expected, and instead an 'identifier' was found. This led me to believe that #include is meant to point to a file or directory (which I found that I was already aware of when I noticed the very first line of my code), which led me to believe that the file in question might need to be a .str file like I mentioned. Now, are you saying that I type in #include <string> literally, instead of replacing that "<string>" with a file or directory name? Somehow my brain registered that you intended the latter.
EDIT: Thank you Daved, your advice worked. I type in #include <string> where it belonged and I can now make my programs accept Yes and No responses. Thanks, everybody.