<we****@ispace.co.za> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
: Hi All. i am new to C++. I know that in order to use cout, i need to
: include <iostream>. I have done this, but i still get errors when i try
: to output to the screen. Is there a file that needs to reside in the
: same folder as the project? I know that in java, this is the case.
I don't think so.
What kind of errors are you seeing ?
I would think that these are compilation errors.
Try starting with the following program:
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Hello" << endl;
string s;
getline( cin, s); // read some user input
return 0;
}
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <>
http://www.brainbench.com