🔒 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
  • 330
    Views
  • 4
    Participants
Last reply from:
dev-ace

Trending Topics

Online now

Members online
1,165
Guests online
5,610
Total visitors
6,775

Forum statistics

Threads
2,354,474
Posts
29,383,812
Members
1,079,466
Latest member
yowrizy
Back
Top