to the world

very mystery and interesting

C++博客 首页 新随笔 联系 聚合 管理
  11 Posts :: 0 Stories :: 5 Comments :: 0 Trackbacks
#include <iostream.h>
void main()
{
  
char*p1,a[16],b[16];
  p1
="i am a teacher.";
  
for(int i(0);i<15;i++;)
     a[i]
=*p1+++1;
  a[i]
='\0';
  cout
<<a<<endl;
  
for(i=0;i<15;i++)
    b[i]
=*(a+i)-1;
  b[i]
='\0';
  cout
<<b<<endl;
}

  
6:26:54
2005年1月14日
怎么样理解这个程序,有关其中的运算怎么做?
posted on 2006-01-21 17:00 hacken 阅读(180) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理