C++ program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaysol
    New Member
    • Nov 2006
    • 1

    C++ program

    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
  • Budiman
    New Member
    • Nov 2006
    • 21

    #2
    Originally posted by jaysol
    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
    This i have program for ascii files, i hope this program will suitable for you
    #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

    Working...