here is a very simple program that writes a charter on the screen non stop untill u enter 'q'
#include <iostream.h>
#include <conio.h>
void main()
{
char c='1';
while (c!='q')
{
Type: Posts; User: _Rami_
here is a very simple program that writes a charter on the screen non stop untill u enter 'q'
#include <iostream.h>
#include <conio.h>
void main()
{
char c='1';
while (c!='q')
{
There is a very simple way to use this:
char c='1';
while (c!='q') // or anything else u want to use to exit loop
{
if (kbhit()) c=getch(); // this will require the conio.h library
}
...
few years ago when I was using the dos borland (with the blue screen) I used the BGI graphics to program some nice and small games such as popkoren, tetris, snake, etc... I have been away from...