What's new

Help Compilation ng codes in c++

Lenardkun

Honorary Poster
Joined
Sep 23, 2018
Posts
161
Reaction
20
Points
154
Age
23
Guys ano gagamitin ko para magpagsama sama ko sa isang program yung mga activities ko, tapos kapag natapos i run yung program magtatanong if you want to try again kapag nag yes babalik dun sa menu tapos pag nag no mag close yung program. pede po kayo magbigay ng sample code. Salamat po sa tutulong
 
copy all your activities siguro then iba ibang method sila..
sa menu gamit ka ng switch saka ilagay mo sa loob ng loop.

-- Java at C lang alam ko pero pwedi naman ata e apply yung concept--

ex.
menu(){
int choice;
do{
printf("Menu");
printf("1 Activity1");
printf("2 Activity2");
printf("0 Exit");
switch(choice){
case 1:
activityOne();
break;
case 2:
activityTwo();
break;
case 0:
//Exit
break;
}
}while(choice !=0);
}
activityOne(){
//codes here
}
activityTwo(){
//codes here
}
 

Similar threads

Back
Top