window just flashes by (newbie)

Hiya!

Im not new to c/c++ programming, but I just recently installed visual studio and having some real newbie problems. When I build the project and run it it just flashes by. I can barly see that it prints what it's supposed to. Also, I use the scanf() command to make sure it waits for some input...but no. Anyone?


Code:

#include

int main ()
{
char str [80];

printf ("Enter your name: ");
scanf ("%s",str);

return 0;
}

Comments

  • Also I might add, no matter what typo I make in the code I get no errors.. :S
  • : Also I might add, no matter what typo I make in the code I get no errors.. :S
    :
    Maybe your compiling with the wrong source...
    Or you are running the wrong program...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion