by Alex on Wed Mar 17, 2010 4:29 pm
Alright to save your files as an executable Look in the directory of your C++ project. In that directory, or in some subdirectory ('Debug' or 'Release'?) should be your exe, once it's been built.
as for the different lines
take as look at your current script!
- Code:
#include <iostream>
int main ()
{
std: :cout << "Hello world!" << std: :end1;
system ("pause");
return 0;
Now notice something different? thats because i added "<< std: :end1;" after "Hello world!"
now my c++ isn't working at the moment but if i know c# right if you add another line just change "end1" to "end2"
for example
- Code:
#include <iostream>
int main ()
{
std: :cout << "Hello world!" << std: :end1;
<< "I'm below Hello world!" << std: :end2;
system ("pause");
return 0;
[/code]
if for some reason this doesn't work try this
- Code:
std: :cout << "Hello world!" << std: :end1;
std: :cout << "I'm below Hello world!" << std: :end2;
As you can see the siffrence is that i added the "std : : cout"