Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

LPF Donation via Stripe | LPF Donation - Other Methods

Links below open in new window

ArcticMyst Security by Avery

C++

Joined
Oct 24, 2008
Messages
1,057
Points
48
UPDATE:

Mmmkay so I'm pretty much done with my project, I'm now in the process of debugging. I decided to code the game Connect 4. I think it works pretty good so far, cept I know there is a bug somewhere that causes false wins. I've attached it as a zip if you wanna check it out, Windows .exe of course. There is no AI so you need to play a friend. I may add an AI that just plays randomly but IDK.
Please let me know what you think. Look for any errors, bugs, typos... ect.
Thanks!

UPDATE again:
Fixed the bug, made a few changes. It works now.
Tell me what you think.:thanks:



Any C++ programmers out there?

I'm about 3/4 of the way through my first C++ course in college. Surprisingly I'm really liking programming. I've only scratched the surface of this stuff so far but there is so much you can do with this language.

Anyways, there is a programming competition/contest at my college and my professor will give anyone who participates an automatic A. I don't have to win, just enter with a "reasonable attempt" as he put it, lol. It's pretty open ended. It can be anything! Just cool and easy to use.

I've no idea what to do....:p

Any ideas? I was thinking of making a game like pong or snake, but even the simplest games are complicated as hell to code for a beginner. I was thinking like a menu driven mathematics calculator with different features but IDK... lol. This forum is full of smart guys, some of you must know this stuff. lol.

-Tony
 

Attachments

  • Connect4.exe.zip
    129.1 KB · Views: 17
  • Connect4Mark2.exe 2.zip
    129.7 KB · Views: 19
Last edited:





anselm

0
Joined
Nov 22, 2010
Messages
2,448
Points
0
I'm not such a big fan of C++, outdated and over complicated, IMHO.
Java does almost everything C++ does, and better too.

Just plain old C I like though for some low level coding.

Well, looks like you need an idea, isn't that a bummer?:crackup:

A game as first project is a bit much maybe, you need to handle enemy AI, (low
level) keyboard or mouse control, graphics....

Waaaay back then I started my adventure into graphics with "Denthor of asphyxia" tutorials:
Cprogramming.com - Programming Tutorials: C++ Made Easy and C Made Easy
 
Joined
Jan 11, 2008
Messages
671
Points
0
Sorry, I have no ideas, but I do love C, and like C++. Anselm, I hate java. I don't have any good reasons why.
 
Joined
Oct 24, 2008
Messages
1,057
Points
48
I've never programmed in java but I don't like how you need a java environment to run in the background.

-Tony
 

c0ldshadow

LPF Founder / Admin
Staff member
LPF Site Supporter
Joined
Mar 17, 2006
Messages
2,863
Points
113
i sell some c++ software on http://deeptide.com but i dont write that much C++ code anymore.

my forum signature is valid compiling C++ program in devc++ lol
 
Joined
Nov 10, 2008
Messages
4,186
Points
63
i sell some c++ software on http://deeptide.com but i dont write that much C++ code anymore.

my forum signature is valid compiling C++ program in devc++ lol

+1 for dev ++ :)
Although komodo edit is the best free editor for writing programs. I am a C intermediate student and will do c++ in the next semester. I haven't dealt with game stuff yet so I can't give you any ideas :p

Back when I started learning visual basic( which I gave up ), my first project was to make a simple calculator but failed, which is the reason I gave up with it lol. I find the calculator idea quite simple,considering you do at least know the basics of c++ and programming. Good luck!
 
Joined
Oct 24, 2008
Messages
1,057
Points
48
i sell some c++ software on http://deeptide.com but i dont write that much C++ code anymore.

my forum signature is valid compiling C++ program in devc++ lol

I was looking at that in another of your posts. LOL.
That's what made me wanna start this thread here. :D
I'll compile that next time I'm on my PC and check it out.

-Tony
 

c0ldshadow

LPF Founder / Admin
Staff member
LPF Site Supporter
Joined
Mar 17, 2006
Messages
2,863
Points
113
coolest c++ keywords are volatile and union i think
 
Joined
Aug 30, 2008
Messages
6,891
Points
83
i played with visual c++ for a day or two when i was a kid. I made a large screen filled with buttons, each button opened a nude picture of a different celebrity.
It was pretty awesome but people are skittish of downloading a random .exe file from a kid on the internet.
 

Trevor

0
Joined
Jul 17, 2009
Messages
4,386
Points
113
Only C++ I write nowadays is the Arduino flavor of it... but then again doing something embedded might get you kudos?

I learned C++ on a big reverse engineering project in C++/assembly code. It was a DLL to change behavior of a game server - new systems, etc. Some of the coolest challenges in that arena. :D

-Trevor
 
Last edited:
Joined
Oct 24, 2008
Messages
1,057
Points
48
I think I have an idea. What about a kinematic simulator/solver?

Enter parameters such as initial velocity, initial height, trajectory, acceleration of gravity, and it computes max height, distance, time, final velocity... ect.

But allow the user to input ANY of those parameters and the computer will compute the rest. As soon as enough variables are provided to compute a unique solution for the rest it solves the equations. You you could provide the final velocity, time, and acceleration of gravity, and it'll tell you the rest... ect.
just an idea...hmmm...

-Tony
 
Joined
Oct 24, 2008
Messages
1,057
Points
48
pretty simple imo but its a good idea since u gonna get an immediate A :D

Well it's not just ins and outs, the computer will have to recognize which things it can and cannot figure out based on what's given, and it'll have to solve quadratics. Simple operations can easily get very complicated. But yeah I don't care about winning. :na:

-Tony
 




Top