By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,864 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,864 IT Pros & Developers. It's quick & easy.

A very stupid question. Visual C++ 2005.

P: n/a
IS
At the recommendation of several people in this newsgroup I have downloaded
two or three Compilers. One is the Beta version of Microsoft's Visual C++
2005.
I have entered a complete beginner code that looks like this:

#include <iostream>

using namespace std: //introduces namespace std

int main( void )

{

cout << "This is a test" ;

return 0:

}

My question is this: In Microsoft Visual C++ How do I compile and execute
something like the above code?
I told you this would be a stupid question. . . ha ha ha. I don't see
anything that says "compile" or "run" in any of the menus. How do you do it?

One more thing: In File>New>Project, what do you select in the left window
and then the right hand window if all you want to do is some beginner stuff
like what I have above?

Thanks a lot for your help so far.

IS.
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"IS" <y@y.com> wrote in message:
I don't see
anything that says "compile" or "run" in any of the menus. How do you do it?


This is the wrong group for such a question. But since it's so stupid ...er ...
I mean simple, I will answer. You typically compile by selecting 'build' from
the build menu. To run from the IDE, you use 'run without debugging' from the
debug menu.You can also arrange your favorite commands as buttons on the
toolbars.

In the future, post to microsoft.public.vsnet.ide

Jonathan


Jul 22 '05 #2

P: n/a
IS wrote:
At the recommendation of several people in this newsgroup I have downloaded
two or three Compilers. One is the Beta version of Microsoft's Visual C++
2005.
I have entered a complete beginner code that looks like this:

#include <iostream>

using namespace std: //introduces namespace std

int main( void )

{

cout << "This is a test" ;

return 0:

}

My question is this: In Microsoft Visual C++ How do I compile and execute
something like the above code?
I told you this would be a stupid question. . . ha ha ha. I don't see
anything that says "compile" or "run" in any of the menus. How do you do it?

One more thing: In File>New>Project, what do you select in the left window
and then the right hand window if all you want to do is some beginner stuff
like what I have above?

Thanks a lot for your help so far.


The better for this is to run the "Visual Studio Command Prompt", switch
to the folder of your .cpp file and run
cl /clr whatever.cpp
Another way is to use Project::Build menu.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #3

P: n/a
> return 0:

return 0;
a SEMI-colon, not a colon.
-JKop
Jul 22 '05 #4

P: n/a

"JKop" <NU**@NULL.NULL> wrote in message
news:Px******************@news.indigo.ie...
return 0:


return 0;
a SEMI-colon, not a colon.


Yes, but in this case he could not have posted compiled code :-)
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.