标题:swap编译错误
只看楼主
moshenglong
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2010-7-8
结帖率:57.14%
 问题点数:0 回复次数:0 
swap编译错误
#include<stdio.h>
main()
{
    int a,b;
    int *pointer1,*pointer2;
    scanf("%d,%d",&a,&b);
    pointer1=&a;
    pointer2=&b;
    swap(pointer1,pointer2);
    printf("The result is :%d,%d\n",a,b);
}
请问编译时为什么会出错,谢谢!!
搜索更多相关主题的帖子: result 
2011-03-24 21:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-334672-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.533229 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved