hi am new in this forum,i have an assignment to write a program read a ASCII file,finding all the integer values contained within the file....i kinda lost,pls can anybody help me out...Thanks
C++ program
Collapse
X
-
Originally posted by jaysolhi am new in this forum,i have an assignment to write a program read a ASCII file,finding all the integer values contained within the file....i kinda lost,pls can anybody help me out...Thanks
#include<constr ea.h>
void main()
{
int i;
i=1;
do
{
if((i%20==0)||( i==1))
{
clrscr();
cout<<"---ASCII CODE---\n";
}
if(i!=26)
cout<<i<<"="<<c har(i)<<"\n";
else
cout<<"26=\n";
i++;
if(i%20==0||i== 256)
getch();
}
while(i<=255);
}
Comment