编程知识 cdmana.com

While loop switch with return

It's due tomorrow evening
This is a program , Then it reports that the error is the last one return that return-statement with a value,in function returning 'void'[-fpermissve]
void Menu() // menu
{
int i;
while(1){
Load();
printf("\ 1. Enter athlete information 2. Modify athlete information |\n");
scanf("%d",&i);
switch(i)
{
case 1:Input();break;
case 2:Edit();break;
default: ;
}
Save();
}
return 0;
}

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://cdmana.com/2022/174/202206170333123426.html

Scroll to Top