#include <iostream.h> #include <fstream.h> #include <conio.h> void main() { clrscr(); char ch; ofstream sc; sc.open("om.txt"); while(ch!='1') //here is the problem { ch=getche(); sc.put(ch); } sc.close(); getch(); }
getch
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)