My best C++ Programs

This is a discussion on My best C++ Programs within the C++ Programming forums, part of the General Programming Boards category; You all can reply and post your best programs (the file, not the code lol) heres my semester project (im ...

  1. #1
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    My best C++ Programs

    You all can reply and post your best programs (the file, not the code lol)

    heres my semester project (im a first year programmer in highschool, be nice )

    some input would be nice, criticize it if you want to

    but by all means, praise me


    Paro
    Attached Files Attached Files

  2. #2
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    slot

    here is my slot machine program, its a little more advanced than the one on this website that someone posted, but sorry, the code doesnt have any documentation so it will be a b*tch to read
    Attached Files Attached Files

  3. #3
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    :(

    many downloads but no feedback *sigh*

  4. #4
    GuyonDrugs
    Guest
    man thats kindo f nice. putting so many features into one little program.and only using one .cpp file. very nice indeed. =)

  5. #5
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    Talking

    thanks, i encountered many problems in doing that, because i made so many functions instead of shoving it all into the main program...

    but thanks for feedback

  6. #6
    guyondrugs
    Guest
    oh hey pero do you know how to make windows app thru c++ i know it's possible i just don't know how. i think its winmain something

  7. #7
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    hey pero, I like your stuff! for one year of high school its not bad!
    To guyondrugs, it depends on what compiler you are using. If you are using a windows compiler, you create a win32 project and use windows api programming. There's various tutorials on the web. There's some under the directory section of cprogramming.com, too.

  8. #8
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    Cool

    to xterria: actually ive only had 1 semester LOL, im on my seconds semester right now

    to drugguy: it would be way easier for you if you use MSVS because thats what i use and i could probably help

  9. #9
    guyondrugs
    Guest
    oh aiight thanks x. and pero...man they only program i can use is this free win 32 compiler i got. i don't wanna cheat the companys by getting there program inwhich i was suppose to pay for.

  10. #10
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    With MFC creating windows and various controls is extremely easy (in MSVC++)

    I'll be in highschool next year, and so far i've created tictactoe, connect4, battleship, and now I'm working on an OOP version of the battleship game, which is proving to be much more difficult then I had expected.

  11. #11
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    Question hmm

    for these games did you use Win32 Console Application to make tic-tac-toe and that? cuz im thinking, in console you cant click anything, so you would have to ask the user which position to choose and he/she would input a number which corresponds to a position...

    and yes battleship would be REALLY hard to do i think, i cant even think where to start lol

    good job

  12. #12
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Well, when I first started programming.. (in JavaScript) I came across a Battleship game.. and it blew my mind.. the source was much too long for me to comprehend.

    But now, Its getting easier with each passing program. All the games were done in console, I think they're on my FTP under '/programs/' if you want to see.

    It would be quite trivial to make tictactoe an MFC application. (eg, a real window, mouse useage)

  13. #13
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    yea

    that would be incredible, you should head over to the gamer section of the forums and maybe you could get some info on how to have a GUI and stuff like that (i know absolutely nothing about it )

  14. #14
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    very nice slot machine... you should verify good input for a bet though. If you enter a letter, the program bottoms out. Also, what if the user wants to quit?

    Very nice though. I am impressed.
    Blue

  15. #15
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    Talking hehe

    i never did figure out how to stop it from screwing up when you enter a letter... but yea i could ask if you wanted to stop, and at school i use the '\b' function so it looked like they were rolling (the numbers) but i must repeat that i dont have MSVC++ at home yet so i cant do anything about it til i go back to school

    do YOU know how to make it so when it wants an integer you can have an error proof against letters? would be nice to know hehe

Page 1 of 8 12345678 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 06:32 AM
  2. How come Dev C++ cant run some programs??
    By Sephiroth in forum C Programming
    Replies: 41
    Last Post: 09-17-2005, 05:35 AM
  3. Way to get the current open programs displayed?
    By CPPguy1111 in forum C++ Programming
    Replies: 6
    Last Post: 06-22-2005, 12:24 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM

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