Hi all,
I just started programming.Can anyone please help me how to remove the non-printable characters of ascii from my code..I will really appreciate it.

#include <iostream>
using namespace std;

int main()
{
int num;
cout<<"    ASCII CODES\n    -----------"<<endl;
num = 32;
while(num<=252){
cout<<endl<<char(num)<<" : "<<int(num);
num++;
}
cout<<endl;
return 0;
}

Thanks a million!
Sana

call the funciton isprint()

Thanks for the help! I really appreciate it!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.