C语言编程

[复制链接]
查看11 | 回复3 | 2009-8-4 11:07:12 | 显示全部楼层 |阅读模式
调用函数将输入的2函数反序输出
比入输入 ab 要他输出是变成b a

回复

使用道具 举报

千问 | 2009-8-4 11:07:12 | 显示全部楼层
#include#includeint ch(int*,int*);main(){int a,b;int *p,*q; scanf("%d%d",&a,&b);p=&a,q=&b; ch(p,q);printf("%4d%4d\n",a,b);system("pause");}int ch(int *x,int *y){int t;t=*x; *x=*y; *y=t; }...
回复

使用道具 举报

千问 | 2009-8-4 11:07:12 | 显示全部楼层
void bord(){int a,b;scanf("%d,%d",&a,&b);printf("%d,%d",b,a);}...
回复

使用道具 举报

千问 | 2009-8-4 11:07:12 | 显示全部楼层
问题能不能描述的清楚一点,“将输入的2函数反序输出”是什么意思。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行