teamviewer help for 15mins please.

I could really use some help via teamviewer.
I am trying to get into C++ and start doing projects etc. but my visual 2012 express just isn't setup correctly.
If someone could show me the basics of how to test my code etc. as I'm struggling it would be very much appreciated.
I don't understand how this cannot work...

1
2
3
4
5
6
7
8
9
10
11
12

//C Game over example
// demonstrates using a directive

#include <iostream>
using namespace std;
int main()
{
    cout << "Game Over!"<<endl;
return 0;
}
How exactly does it not work? What errors do you get?
I get an error that I think alot of people have had...

unable to start program. filename.exe
the system cannot find the file specified.
How do you try to start the program?
debug - start debugging?
Use this guide and make sure your vs is set up according to the guide

http://blogs.msdn.com/b/devschool/archive/2013/01/08/writing-your-first-c-program-using-visual-studio-2012.aspx

Also you might want to run the program using `ctrl + F5`
I did exactly as it said in the guide and it's still broken. I don't think C++ is for me :(
You did compile before trying to run?
Yeah, it won't do it. just keeps saying error - can't find .exe
No. Did you compile? Did you press that "Build" button?
I pressed build solution and tried rebuild solution and still nothing changes.
I suspect setting error:

On your start page, select New Project ---> Select win32
----> Select win32 console application (not win32 project)
----> select application settings ----> Fill console application (not windows application) and fill empty project.
Now enter your code :
1
2
3
4
5
6
7
8
9
10
//C Game over example
//demonstrates using a directive

#include <iostream> 
using namespace std;
int main ()
{
     cout << "Game Over! << endl;
return 0;
} 


It should work now !

win32 console app is what I clicked :(

Should I try another IDE as visual 2012 obv's isn't liking my computer somewhere?
There is a likelihood your VS2012 isn't setup correctly or not update to date with the version of OS you are currently using. Obviously your code is correct, hence, the problem is from the IDE. In fact, a code like yours is a simple test of a working IDE. So, either correct the setup problem or turn to another IDE.
Topic archived. No new replies allowed.