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 :D
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 :(
many downloads but no feedback :( *sigh*
man thats kindo f nice. putting so many features into one little program.and only using one .cpp file. very nice indeed. =)
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 :D
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
hey pero, I like your stuff! for one year of high school its not bad! ;)
To guyondrugs, :rolleyes: 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.
to xterria: actually ive only had 1 semester LOL, im on my seconds semester right now :D
to drugguy: it would be way easier for you if you use MSVS because thats what i use and i could probably help
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.
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.
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 :)
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)
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 :))
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.
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 :D
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