HELP

Posts 1–4 of 4 · Page 1 of 1
HELP
i have spent all day downloading c++ compilers, none work, the microsoft one posted here wont install, i have tried like 15 non-brand names, i have autoit but it gives me an error message after i coded this:



#include <iostream.h>
int main();
int main()
{
cout <<"yo wassup dog!/n";
return 0;
}


and the error says: LINE 13 (FILE "C:/Documents and settings/HP_Administrator/desktop/New AutoIt v3 sript.au3"): @include <iostream.h> ERROR OPENING THE FILE



SUM1 PLZ HELP ME.!!!!
That coding is fail that is why. Use Boorland Dev C++, its old but very user friendly.
This code will work.
Code:
#include <iostream>
using namespace std;

int main()
{
cout << "yo, wassup dog" << endl;
system ("pause");
return 0;
}
If it's not C++ i have no idea sorry. Well i know you wont need to initiate main() inside main() so at least scrap the second int main()

Your either learning a very old outdated form of C++ or C# which is old and outdated by itself. Tyler should know if it is C#.
This is how I would do it.
Code:
#include <iostream>
using namespace std;

int main ()
{
  cout << ""your little text here";
  return 0;
}
^^ Very similar to his
Quote Originally Posted by Voltage552 View Post
This is how I would do it.
Code:
#include <iostream>
using namespace std;

int main ()
{
  cout << ""your little text here";
  return 0;
}
^^ Very similar to his
Yea i just thought by the line
Code:
cout <<"yo wassup dog!/n";
that he wanted to end the line.
The
Code:
system("pause");
is so that he can read the output.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?