November 10th, 2012, 08:22 AM
Hello again everybody.
I have made my first hello world:
Just like the first tutorial video in C on thenewboston . org. But i get an error when i use getch();
The problemindicater says: "Implicit declaration of function "getch" is invalid in C99". What does that mean? I just wrote precisly the same thing as Bucky does in his videos.
November 10th, 2012, 09:28 AM
getch(); requires the use of conio. So you need to #include <conio.h> at the beginning of your program.
I've heard that getch() fell out of style, though maybe one of the more experienced programmers can confirm or deny. I personally prefer:
November 10th, 2012, 09:48 AM
conio limits the portability of your program to windows systems and that rare installation that provides an equivalent.
You could use
But again, that's ridiculous. Change your command windows to remain open. Make sure you read all the way through
"Applying changes to all command windows."
[/code] are essential for python code and Makefiles!