首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

C语言最无聊的地方解决办法

2012-04-24 
C语言最无聊的地方??include iostreamusing namespace stdvoid Swap(int *a,int *b)void main(void){

C语言最无聊的地方
??=include <iostream>
using namespace std;
void Swap(int *a,int *b);

void main(void)
{
int Aa=748,Bb=174;
void (*p)(int*,int*)=NULL;
printf("Aa= %d,Bb= %d??/n",Aa,Bb);
p=Swap;
p(&Aa,&Bb);
printf("Aa= %d,Bb= %d??/n",Aa,Bb);
}

void Swap(int *a,int *b)
{
*a=*a??'*b;
*b=*b??'*a;
*a=*a??'*b;
}

[解决办法]
没啥无聊的,以前不见得所有键盘都有 特殊符号的
[解决办法]
历史遗留问题,一点也不无聊,过去有些输入设备上没有#之类的按键。

热点排行