Results 1 to 7 of 7
  1. #1
    Elite Member ongkal's Avatar
    Join Date
    Feb 2008
    Gender
    Male
    Posts
    1,147
    Blog Entries
    1

    Default c programming help




    kanang, can someone teach me how to make a simple horizontal or vertical menu nga makanavigate ka using the arrow buttons then mublink ra ang text sa category nga asa ka using c programming? its our next seatwork man gud sa among lab manual sa complab subject dayon among complec teacher kay grabe kaabsenous..

    i dont think this is cheating though kay ang question naa ra man sa lab manual so pwede ra maanswer daan just like what i usually do. i just need help kay behind kaayo among class sa programming tungod sa among complec teacher.

  2. #2

    Default Re: c programming help

    you can download code, read through it and analyze it yourself

  3. #3

    Default Re: c programming help

    Quote Originally Posted by ongkal

    kanang, can someone teach me how to make a simple horizontal or vertical menu nga makanavigate ka using the arrow buttons then mublink ra ang text sa category nga asa ka using c programming? its our next seatwork man gud sa among lab manual sa complab subject dayon among complec teacher kay grabe kaabsenous..

    i dont think this is cheating though kay ang question naa ra man sa lab manual so pwede ra maanswer daan just like what i usually do. i just need help kay behind kaayo among class sa programming tungod sa among complec teacher.
    Every keys in your keyboard have equivalent value. Some use Hex values, some use Integer values.

    It's not related to object oriented.
    It's related how you detect and capture the event of your keyboard.

  4. #4

    Default Re: c programming help

    bro asa ka nga skol? unsa nka nga year?
    ug asa namo sa C ky lisud mn muadvice mi ug different methods den wala pa d i mo kaabot ana nga topic so we can gauge...

  5. #5

    Default Re: c programming help

    create an array to contain all your menu items multi dimension would best suit your requirement and is simpler to handle.
    display first all your menu items
    then default your choice to the first item
    try creating a loop wherein it loops until a certain key is pressed using getch and try to determine each ascii value of the keys press if it belongs to one of your menu navigation keys like the arrow keys then do whatever needs to be done like redisplay the current item in the normal mode and then inverse the item affected. if key pressed is not part of your navigation then ignore it or you can generate a beep. Make sure though that you have a means of exiting the loop by assigning a special key which does this like esc or q.

    sorry can't give you the code since this is a project.

  6. #6
    on the contrary, i think it is best to use pointers to functions or array of funtions for menu driven programs....and i think u dont need to dtermine the look into ascii this way because C can compare integers and characters...i hop this helps

  7. #7
    Elite Member
    Join Date
    Aug 2008
    Gender
    Male
    Posts
    1,422
    Blog Entries
    1
    sayon ra na bro...
    dali ra kaayo na...try lang ug analyze,like ra sad sa textcoloring....
    textcolor(0);

    o=black 1=blue and so on.....

  8.    Advertisement

Similar Threads

 
  1. c programming help
    By ongkal in forum Websites & Multimedia
    Replies: 9
    Last Post: 02-29-2008, 12:54 PM
  2. HOW TO MAKE 'YAHOO BOOTER PROGRAM' HELP
    By jdbebz in forum Software & Games (Old)
    Replies: 6
    Last Post: 02-12-2008, 12:45 PM
  3. VB6 programming help??
    By dhuDz in forum Programming
    Replies: 6
    Last Post: 10-12-2007, 12:50 PM
  4. Java programming help pls...
    By mr_gwen in forum Programming
    Replies: 6
    Last Post: 11-03-2006, 12:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top