The best source for this would probably be youtube.
This is with C++, every time I try to run my program everything seems to work fine but then I get a build error. I'm just trying to make a program that when I run it, it opens up console and says "Hello" or something like that, simple stuff but I don't know what I could be doing wrong. My build is below. Quick reminder: I use Microsoft Visual Studio 2005 and my whole build is colored right, everything is spaced accordingly even though it doesn't look like it here.
/*MPGH Member
September 2nd*/
#include<iostream>
#include<con.oh>
using namespace std;
int main ()
{
cout<<"Hello World" //single line comment
_getch();
return 0;
}
Last edited by Orteez; 09-02-2010 at 10:16 AM.
no google. Youtube is full of bs
btw [php]<con.oh>[/php] doesn't exist.
did you mean [php]<conio.h>[/php]?
[php]
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world\n";
cin.get();
return 0;
}[/php]
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
Yeah I found out my conio.h was wrong. But that was a long time ago, I just made a program where it shows a guy firing an arrow across the console screen and in the process of making a Monopoly game program with beast animations.