After I compile it, it gives me an error on (ps:i am using devc++ 5.9.2 as the compiler, and one my friend use dev c++ 5.1.1, and she is able to compile).
[Warning] Deprecated conversion from string constant to 'char*' [-Wwrite-strings]
void switchSecondSelection(int selection){
int secondSelection;
switch(selection){
case 1:
subMenu("Supplier Info",1);
// return secondSelection;
break;
case 2:
subMenu("Customer Info",2);
// return secondSelection;
break;
case 3:
subMenu("Medicine Info",3);
// return secondSelection;
break;
case 4:
// secondSelection = showReport("Report");
break;
case 5:
// secondSelection = showBill("Bill");
break;
case 6:
mainProgram(0);
break;
default:
mainProgram(0);
break;
}