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

C 引用报错,该怎么解决

2012-05-10 
C 引用报错C/C++ code#include stdio.h#include stdlib.hvoid Exchg1(int &x, int &y){int tmp xx

C 引用报错

C/C++ code
#include <stdio.h>#include <stdlib.h>void Exchg1(int &x, int &y){    int tmp = x;    x = y;    y = tmp;    printf("x = %d, y = %d.\n", x, y);}main(){    int a = 4, b = 6;    Exchg1(a, b);    printf("a = %d, b = %d.\n", a, b);    getch();}

编译执行之后报错。哪位帮忙看看。。

[解决办法]
C里面好像没有引用这玩意,只有指针

热点排行