Cant understand the outout

This is a discussion on Cant understand the outout within the Windows Programming forums, part of the Platform Specific Boards category; Hi all I am new to Visual c++2008 sp1 as well as to this forum.I just downloaded it yesterday and ...

Cant understand the outout

Hi all I am new to Visual c++2008 sp1 as well as to this forum.I just downloaded it yesterday and tried to give it a shot.So I ran a program but the output it shows is in nor relation with the program.The file is:

One more pitfall detected!!!
The compiler shows the building logs of the files just recently compiled or built....!!It just donot build the file currently opened,already saved also!!!It just ignores the command to build the current file and shows the error messages of the last successfully or unsuccessfully built files...If the file was successfully built output of the previous file is showed when building the current file.Where is the problem?

Recompile doesnot work.........It always links all the files present in the project folder.I want to know cant I run programs without opening the project option?Such as options like an "file" from "new"?

Yes in Visual Studio your files have to be included in a project to compile. If you just want to compile a single file without creating a project for it you have to do it manually from the command line.