T
Tarique Jawed
Alright - I've been using VS .NET for all of 3 hours now - so pardon
the stupidity of my question.
Can someone walk me through a simple hello world that outputs to
console, in terms of which project, what settings to change etc. Or
point me to a getting starting using VC++ guide that explains the
projects and relevant settings.
My background is in Java, and the environment is totally different -
but I think I want to move towards C, C++, C# and this is the
beginning.
The C code is as follows.
#include <stdio.h>
int main(void)
{
printf("Hello World");
return 0;
}
Very simple and very stupid.
First problem it gave me was regarding preprocess precompiled
something.
Now it runs the program but the console just vanishes after a split
second. If I put it into an infinite loop the console is available.
My question is - how do I get it to display the console normally -
meaning at the bottom of the screen that shows the compiling and
linking etc. (kinda like the console in Jbuilder, or is this not
possible).
And if this is not possible, then can I have the command prompt window
actually stay there instead of vanishing in the blink of an eye.
Finally links to good resources for those of us just starting out in
this world, perhaps book recommendations, or forums, websites, faqs,
WHATEVER.
Thanks very much in advance
Tarique
the stupidity of my question.
Can someone walk me through a simple hello world that outputs to
console, in terms of which project, what settings to change etc. Or
point me to a getting starting using VC++ guide that explains the
projects and relevant settings.
My background is in Java, and the environment is totally different -
but I think I want to move towards C, C++, C# and this is the
beginning.
The C code is as follows.
#include <stdio.h>
int main(void)
{
printf("Hello World");
return 0;
}
Very simple and very stupid.
First problem it gave me was regarding preprocess precompiled
something.
Now it runs the program but the console just vanishes after a split
second. If I put it into an infinite loop the console is available.
My question is - how do I get it to display the console normally -
meaning at the bottom of the screen that shows the compiling and
linking etc. (kinda like the console in Jbuilder, or is this not
possible).
And if this is not possible, then can I have the command prompt window
actually stay there instead of vanishing in the blink of an eye.
Finally links to good resources for those of us just starting out in
this world, perhaps book recommendations, or forums, websites, faqs,
WHATEVER.
Thanks very much in advance
Tarique