quien puede ayudame?
necesito una orden que entre un valor del teclado, pero que no detenga el curso del programa, que se pueda insribir en un ciclo y no rompa su continuidad, manejo un TC viejito.
// program loop.cpp
// written in borland c++
#include <iostream.h>
#include <iomanip.h>
#include <conio.h>
void main()
{
clrscr();
int x = 1;
for(char choice = '*';choice != 27;)
{
if(kbhit())
choice = getche();
if(!(x++)%1000)
cout << '.';
}
cout << endl << "end of program - good bye ! " << endl;
} // MAIN
// written in borland c++
#include <iostream.h>
#include <iomanip.h>
#include <conio.h>
void main()
{
clrscr();
int x = 1;
for(char choice = '*';choice != 27;)
{
if(kbhit())
choice = getche();
if(!(x++)%1000)
cout << '.';
}
cout << endl << "end of program - good bye ! " << endl;
} // MAIN
