🔒 Closed Compilation ng codes in c++

Status
Not open for further replies.

Lenardkun

Fanatic
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
}
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 309
    Views
  • 4
    Participants
Last reply from:
dev-ace

Trending Topics

Online now

Members online
493
Guests online
1,771
Total visitors
2,264

Forum statistics

Threads
2,294,209
Posts
29,089,427
Members
1,208,175
Latest member
yolli
Back
Top