ok im taking a class and making a program that thells you how much you weight on the planets the only proplem is when i run it the program closes before i cant read it any ideas it is a consul program
ok im taking a class and making a program that thells you how much you weight on the planets the only proplem is when i run it the program closes before i cant read it any ideas it is a consul program
Run it from a console then....
[IMG]C:\Program Files\Morpheus\My Shared Folder\Invader Zim - Bad Bad Rubber Piggy.mpg[/IMG]
i im running it from a consul i need a code that makes it say "press any key to continue" or some thing like that have any i deas
that does not help im look ing for system.pause or somthing like that
or if your system will let you...Code:#include <stdio.h> #include <conio.h> int main(void) { //Your code printf("press any key to continue"); getch(); return (0); }
Code:#include <stdlib.h> int main(void) { //Your code system("pause"); return (0); }
Hum i'm using Visual C++ and that getch(); is seen as an undeclared identifier. It doesn't work for me.