C语言:将China译成Glmre

Posted by: NOTEPAD 2015年11月7日 Leave a comment

#include <iostream> 
 
using namespace std; 
 
int main() 
{ 
	char c1, c2, c3, c4, c5; 
 
	c1 = 'C'; 
	c2 = 'h'; 
	c3 = 'i'; 
	c4 = 'n'; 
	c5 = 'a'; 
 
	c1 = c1 + 4; 
	c2 = c2 + 4; 
	c3 = c3 + 4; 
	c4 = c4 + 4; 
	c5 = c5 + 4; 
 
	cout<<c1<<c2<<c3<<c4<<c5<<'!'<<endl; 
 
	return 0; 
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注