'Umar_youth喜欢燕姿丶不要做愤青。

菜鸟程序员的编程起步路

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

#include<iostream>
#include<stdlib.h>
#include<cctype>
int main()
{
int i;char a=0;
for(i=0;i<128;i++)
{
if(isprint(a))
{
std::cout<<a<<" ";
std::cout<<std::dec<<i<<" ";
std::cout<<std::hex<<i<<std::endl;
a++;
}
else a++;
}
system("pause");
return 0;
}

posted on 2014-06-16 15:53  Umar喜欢燕姿不做愤青  阅读(379)  评论(0编辑  收藏  举报