子函数调用出错,百思不得其解啊!!
#include<stdio.h>void change(int, int);
int main()
{
int a=4;
int b=6;
change();
printf("a=%d,b=%d",a,b);
}
void change(int x,int y)
{
int tmp;
tmp=x;
x=y;
y=tmp;
printf("x=%d,y=%d",x,y);
}
不知道为何总是报错:[Error] D:\Documents\C-Free\Temp\未命名2.cpp:2: error: too few arguments to function `void change(int, int)'
[Error] D:\Documents\C-Free\Temp\未命名2.cpp:7: error: at this point in file
请大神解答