Thread: my first c++ program

  1. #1
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608

    my first c++ program

    it is called Hex Code Finder. Please note this program was really intended for myself to quickly retrive hex codes, I also gave it to my frined who was also a webmaster, he thought it was very useful, so i posted it here. Into the future I want to make little sample grpahics of the hex code to put next to the hex code number so you know what the hex will look like on the net. but I do not know how to put grpahics in a c++ program.

    if you type...

    Pastels
    Grays
    Blues
    Greens
    Yellows
    Browns
    Oranges
    -or- Violets

    it will display each hexocde for a similar color, or type all to view every hex code that is in the program. or you can simply type a color!
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    125
    Seems cool.
    Bit of a log-like interface though, especially since pressing 'y' doesn't instantly let you type in another name (you must press 'y' en then enter), also, everything is case sensitive.
    If you want any graphics in this thing, I might suggest using a graphics library, way easier than writing your own. Allegro is nice and simple for things like this (and bigger things too, anyway)
    Also, if I might suggest something, always post your sourcecode along with small things you code. (Any unofficial release anyway, unless it's for people that know you) Most people have an aversion against starting programs they don't have the internals of. (Or even more radical, they compile the source themselves to make sure it's not a virus)
    Typing stuff in Code::Blocks 8.02, compiling stuff with MinGW 3.4.5.

  3. #3
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    the source
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  4. #4
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    the code was made in dev c++ 4. and the reason why u have to press y then enter or n then enter is ot make 100% sure u didnt press n when u meant to press y, vice versa. instead of an are you sure thing. i never did think about how everything is case sensitive, just make sure you keep caps lock off!
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  5. #5
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    where can i download allegro
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  6. #6
    Registered User raimo's Avatar
    Join Date
    Jun 2002
    Posts
    107
    Search with Google would have found:
    http://www.talula.demon.co.uk/allegro/

    But there is also SDL which is a very good and portable library.
    Last edited by raimo; 06-27-2002 at 03:22 PM.

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    125
    Yep, I'm using DevCpp 4 as well, it's cool but a tad buggy.
    Maybe a good way to get around the y/n thing would be to let the user type in "exit" instead of asking whether he wants to leave.
    Typing stuff in Code::Blocks 8.02, compiling stuff with MinGW 3.4.5.

  8. #8

  9. #9
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    uh, almost 1 month. i havnt learned all c++, but my book said that every 3 chapters i go through i should try to make a program involving all my learned skills to amke sure i can use them. i know that at the last goto after the y/n thing should of been a loop. but i couldnt get the loop to work.
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM