You can by using getch instead of getchar. getch is defined in conio.h which isn't standard C so your compiler doesn't have to support it.
Type: Posts; User: maca
You can by using getch instead of getchar. getch is defined in conio.h which isn't standard C so your compiler doesn't have to support it.
If you are switching the right variable and have a break after your printf, it should work.
char c;
c = getchar();
switch(c)
{
case 'a': printf(" You have pressed a ");
...
This overwrites the text if the file exists, or creates a file if it doesn't.
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
public class DiskWrite {...
I decided to start making my first game tonight, with the old turbo c graphics library. I was thinking snake but i thought pong might be a bit easier.
I've got the first paddle working so far,...
The NES programming link has died
http://www.epforums.org/programming-tutorials-and-t43397/index.html?t=43397
You could use a switch statement to do that.