program ideas

This is a discussion on program ideas within the C++ Programming forums, part of the General Programming Boards category; my teacher wants a sample program to show prospective programming students...i have until tomorrow..she said she wants it to be ...

  1. #1
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455

    program ideas

    my teacher wants a sample program to show prospective programming students...i have until tomorrow..she said she wants it to be something that is cool and make students want to program, but nothing too intimidating.

    i have no idea, any ideas?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One idea is an address book under Win32 Console. Another idea is a day counter given two dates.

    Kuphryn

  3. #3
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    an address book, like using linked lists? theres an idea, i think i can do that in a day

    maybe i can write out the entries into an INI file or something
    hmm

    /edit: well i finished the address book program, it works fine (used singley traversed linked lists), so i have time to do another one if anyone has any more suggestions
    Last edited by the Wookie; 02-04-2003 at 01:55 PM.

  4. #4
    booyakasha
    Join Date
    Nov 2002
    Posts
    208
    If you really want kids to get interested in programming it should definately be a game.

    how about Pong, you can write it it Java and it won't take very long.

  5. #5
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    well it needs to be in c++, and i don't know how to write pong (well, i could figure it out, but i only have a day..well..about 6 hours left now)

    almost done with the address book program, but i'm still open for suggestions

    thanks all

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    how bout a word game as follows:

    -program randomlly generates (a user selected amount of) letters

    -the user then tries to spell as many english words as possible using only those letters

    > and oddly enough i wrote one last year!! lol. you can have a look at my source if you want to. it takes care of the english dictionary and everything. just let me know (either post back here or pm me) and ill post it.

  7. #7
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    yeah sure that'll be great, im interesting in knowing how you did that

  8. #8
    _ Munkey01's Avatar
    Join Date
    Dec 2002
    Posts
    280
    Blackjack?
    Poker?
    Yatzzi?
    A chat program (make it simple yet nice to look at)?

    I think games would be a great section to work with (except with only 6 hours to work you will probley stick with text based). A chat program shouldn't be to hard (for me it would, since I don't know sockets...).

  9. #9
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    the thing im working on now (a SI chat bot) is a chat program essentially under win32...i have like 3 hours now

    how would blackjack work?

  10. #10
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    well, the word game was origionally done for linux and the g++ compiler. i worked out all the bugs that windows didnt like but the file was to big to post =( ... (its because of the dictionary) srry. (its over 400k)

    anyway, vc++ would compile but the program crashed because of this...

    Code:
    while(word[a] != '\0')
           word[a] = tolower(word[a++]);
    
    //i had to change it to....
    
    while(word[a] != '\0') {
           word[a] = tolower(word[a]);
           a++;
    }
    so dumb, the ++ operater should use a's value then increment no problem. it worked fine on linux/unix/openBSD/and solaris, but not windows.... =P

  11. #11
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    I had previously posted console games done by me in C++ like pong, nibbles (availavle in the contest section), memory etc.. search you will get it.. May be you can get an idea from it...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  2. my server program auto shut down
    By hanhao in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-13-2004, 09:49 PM
  3. Replies: 3
    Last Post: 01-14-2003, 09:34 PM
  4. Program Idea's
    By devour89 in forum C++ Programming
    Replies: 11
    Last Post: 12-04-2002, 03:57 AM
  5. Program ideas...
    By code987 in forum C++ Programming
    Replies: 3
    Last Post: 11-18-2002, 10:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21