Tuesday, July 14, 2009

How we run a program of c++ in visual studio?

please help

How we run a program of c++ in visual studio?
If you have source code, compile it; otherwise, write a hello world program and compile it.





#include %26lt;iostream%26gt;





using namespace std;





int main()


{


cout %26lt;%26lt; "Hello World !!!" %26lt;%26lt; endl;





return 0;


}
Reply:I am not sure I understand your question but here what I would do:





create it, compile it and then run it if it's already created open it in visual studio and then compile and run it





or you could compile it and then click on the executable





dougc
Reply:i forgot. But i remember there's an option available for compiling in tool bar
Reply:First install visual studio ...


Then open the C++ file using Visual C++ .


The code will be shown......


Then go to build menu %26amp; select compile..


when no error is there...


choose build menu--%26gt;Execute





The program will be executed............Enjoy!!!!!!!!!!!
Reply:buy the cource book of c++ and get complete knowledge.
Reply:get knoeledge frm c++ course book


No comments:

Post a Comment