winnie mong
Junior Member level 3
- Joined
- Sep 8, 2013
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 366
hi guys.
thanks a lot for the great help you are giving to me,i appreciate a lot since i am not very good with c programming
i have this function below which allows me to make a choice from the scrolling menu composing of three items i.e setting clock time, setting On time and setting Off time for a geyser timer.to set time for the three items, the same routine is followed.
i want to ask for help in producing a code that will change what is being pointed to in the above code, so i can be able to set time for the option i selected.thanx
thanks a lot for the great help you are giving to me,i appreciate a lot since i am not very good with c programming
i have this function below which allows me to make a choice from the scrolling menu composing of three items i.e setting clock time, setting On time and setting Off time for a geyser timer.to set time for the three items, the same routine is followed.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #define EVENT_CLK_TIME 0 #define EVENT_ON_TIME 1 #define EVENT_OFF_TIME 2 const char *const menu2[]={ "CLK TIME", "ON TIME", "OFF TIME", 0}; void do_set_time (){ int event; event=choice(menu2); //scroll menu1 on display if(event==EVENT_CLK_TIME) //clock time option selected from menu2 { scroll("SET CLK",1); //pointing to setting clock time } else if(event==EVENT_ON_TIME) //on time option selected from menu2 { scroll("SET ON TIME",1); // pointing to setting on time } else if(event==EVENT_OFF_TIME) //off time option selected from menu2 { scroll("SET OFF TIME",1); //pointing to setting off time } }
i want to ask for help in producing a code that will change what is being pointed to in the above code, so i can be able to set time for the option i selected.thanx