[求助]请问错误在那里?
#include <stdio.h>#include <process.h>
#include <stdlib.h>
void clearner ();
void winclearner();
main()
{
int n;
printf("1 for Every time switch on start, 2 For usage is once \n");
n = getchar();
switch(n)
{
case 1: clearner(); break;
case 2: winclearner(); break;
default: system ("exit");
}
clearner()
{
printf("1 \n");
}
winclearner()
{
printf("2 \n");
}
}
编译后的错误提示是
C:\cyc.cpp In function `int main()':
18 C:\a.cpp expected `;' before '{' token
23 C:\a.cpp expected `;' before '{' token
如何更改呢?