标题:请大家帮个忙
取消只看楼主
cjl730
Rank: 1
等 级:新手上路
帖 子:40
专家分:0
注 册:2008-10-28
 问题点数:0 回复次数:1 
请大家帮个忙
#include<iostream>
using namespace std;
int main()
{
   
   int swap(int *p1, int *p2);
   int a=1, b=2;
   swap(&a, &b);
   cout<<"a="<<a<<endl;
   return 0;
}
int swap(int *p1, int *p2)
{
   int temp;
   temp=*p1;
   *p1=*p2;
   *p2=temp;
}
这个为什么在vc++6.0中编译不了?
谢谢(在dev c++中编译成功)
搜索更多相关主题的帖子: chm 
2008-11-10 20:56
cjl730
Rank: 1
等 级:新手上路
帖 子:40
专家分:0
注 册:2008-10-28
得分:0 
回复 5# 的帖子
把程序详细的给我写一下好吗?
谢谢
2008-11-11 12:02



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




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

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