Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Getting started in C++

Author
Message
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 2nd Jun 2004 20:52 Edited at: 8th Dec 2006 18:27
Blah



-= Out here in the fields, I fight for my meals =-
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 2nd Jun 2004 22:28
You can use dev-cpp. http://www.bloodshed.net
or get Visual c++ (books mostly use VC++ to test their codes)
Ive got a few problems running examples in dev-cpp though >_>

And for help and tutorials you should join http://www.nerdbrains.com
They help new members and have several tutorial links posted.

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 3rd Jun 2004 00:22
http://www.cplusplus.com/doc/tutorial/

good luck with it



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 3rd Jun 2004 01:02
Actually, I tell a lie.

I really just want a really fast language for 2D stuff.

I thought C++ would be the best for that but maybe there's a BASIC language that is just as fast...?
soapyfish
21
Years of Service
User Offline
Joined: 24th Oct 2003
Location: Yorkshire, England
Posted: 3rd Jun 2004 01:03
Join the forums at http://www.cpp-home.com They're really helpful towards anyone new.

WAS DOING AN FPS BUT RAN AWAY AND STARTED ON MISSILE COMMAND INSTEAD.
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 3rd Jun 2004 01:26
you could try purebasic: http://www.purebasic.com/



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 3rd Jun 2004 01:51
A good windows C++ 3d book is Windows Game PRogramming For Dummies, I'm reading it and is very good.
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 3rd Jun 2004 02:20
Quote: "I thought C++ would be the best for that but maybe there's a BASIC language that is just as fast...?"

Not released yet, and not as fast (erm, yet ), but the easiest and most complete 2D programming language: http://playbasic.underwaredesign.com/

Play Nice! Play Basic!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Jun 2004 04:23
From what I have seen if you can find visual c++, 2d would be very easy to learn. I started learning but didn't have time to study so I took the easier route. DBP But it really wasn't that hard just alot of info. I bought the book Ivor Horton's Beginning Visual C++ and it is very good and I will go back to it when I get time.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 3rd Jun 2004 10:32
I got Dev C++ and I'm finding it not too hard.

The only thing is you need much more of an idea of how memory works.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 3rd Jun 2004 11:49
i get stuck with making DLL's in Dev

Im not a rubbish programmer...Everyone else is just better than me....
If we were supposed to sing we would look like Kylie...
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 3rd Jun 2004 12:13 Edited at: 3rd Jun 2004 12:14
Fast language for 2D stuff... Well for API's, there's DirectX or OpenGL, but I find the latter much easier IMO... Or you could stick to GDI

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jun 2004 14:04
Dont forget GCC - although you may have problems creating DLL's with that.


The place for wonderful plug-ins and things.
Keep your friends close, and your cats even closer.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 3rd Jun 2004 14:29
gcc?

Im not a rubbish programmer...Everyone else is just better than me....
If we were supposed to sing we would look like Kylie...
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jun 2004 14:31
GNU, as 'in Whats a GNU with you ?'


The place for wonderful plug-ins and things.
Keep your friends close, and your cats even closer.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd Jun 2004 14:37
Doesnt Dev C++ use a variation of the GCC compiler?

Its not a bug, its a feature!
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 3rd Jun 2004 16:38
Or Allegro for C++.


"Computers are useless they can only give you answers."
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 3rd Jun 2004 16:44
http://www12.canvas.ne.jp/peters/colin/win32/basics/index.html

This has some good stuff. Unfortunately it's incomplete, just cuts off when you get to functions .

Athelon XP 1600+/Radeon 9600 Pro/256 RAM
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 3rd Jun 2004 16:53
gcc's good, I've used it a few times.

Also, if you want to use the Borland C++ 5.5 compiler ( Command Line Tools ), without having to pay for their official IDE, head on over to my mate Gile's site to grab his IDE ( totally legal )

http://www.superchiefsoftware.com/
Borland C++ 5.5 Command Line Tools

Have fun

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jun 2004 17:59
Quote: "Doesnt Dev C++ use a variation of the GCC compiler?"

No idea


The place for wonderful plug-ins and things.
Keep your friends close, and your cats even closer.
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 3rd Jun 2004 18:10 Edited at: 3rd Jun 2004 18:11
for a "crash-course" into game making with c++.....

1 - do a search for "zdoom source"

2 - download everything you can find on zdoom

3 - do a search for "doom shareware iwad"
and download that.

4 - download M$ Visual c++ (10MB of crap)

5 - read the "zdoom" docs to download everything else
and how to configure things....

6 - Play the shareware doom game to see what it is

7 - read the source code
re-read it a few times with a c++ book .....

Now, your an expert
and it only cost you time.

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html
Shock
AGK Developer
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 3rd Jun 2004 18:10
What is the coolest Borland C++ 5.5 Compiler IDE out there (apart from the Borland one ofcourse)?

Another interesting third-party IDE is http://csjava.occ.cccd.edu/~gilberts/quincy2k.html - but I was wondering if anyone knows of any more top-quality free IDEs.


Athlon XP 2500 - 768mb DDR400 - 120gb HDD with 8mb buffer - Lame Geforce FX 5200 128mb DDR
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Jun 2004 22:03
There's VIDE too : http://www.objectcentral.com/

You can use it for both Borland and as an alternative to Dev-C++ for MinGW (although you'd need to install MinGW as a standalone system instead).

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 4th Jun 2004 00:02
Oh my god! How can anyone understand any of C?? Even the basic tutorials are confuddling!

~I see one problem with your reasoning: The fact is that is a chicken~
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 4th Jun 2004 00:05
The beginnings are not that different from Basic, just different format and more code. All the concepts are the same, just start at the dead beginning of it, and you will get it soon enough

-Vash the Stampede

Need help? Ask me via email, msn, aim, or forums and Ill see what I can do.

Shock
AGK Developer
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 4th Jun 2004 00:34
I'll be learning Assembly soon for my BTEC course lol, that should be good fun (iv'e never actually really tried assembly, looked at some code and never understood it).

We're going to be doing boringly n00by applications (don't know what for, more than likely DOS or Win32), and then controlling robot arms and stuff lol. Should be fun


Athlon XP 2500 - 768mb DDR400 - 120gb HDD with 8mb buffer - Lame Geforce FX 5200 128mb DDR
TheAbomb12
21
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 4th Jun 2004 02:22
I don't know why, but C is much easier to read and understand at a glance then Basic is...

Amist the Blue Skies...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Jun 2004 19:01
Quote: "I don't know why, but C is much easier to read and understand at a glance then Basic is..."


I agree, but only to an extent.

The way the code is layed out ( to me ) is much easier to understand... It seems alot more logical, and less cluttering.

( I'm talking about the "{" and ";" etc, and the way you HAVE to modulate everything ).

But, Syntax wise... unless you know what the commands are, they mostly don't make any sence at all.

Jess.

PS I really like PHP and ActionScript because they have their syntax structure's based on C/++


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 4th Jun 2004 19:22
I don't get why they used && instead of AND and || instead of OR.
TheAbomb12
21
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 4th Jun 2004 19:28
&&
||
!=
==
<=
>=

notice how there are two symbols for each comparison operator?

Amist the Blue Skies...
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 4th Jun 2004 20:19 Edited at: 4th Jun 2004 20:22
Allegro is a good library, but I never got it too work with dev-cpp. Setting allegro up is very difficult (add system variables, copy this to that, open a file, let it install, include it, whatever)

I recommend SDLmm, a library that lets you acces and use media easier.
http://sdlmm.sourceforge.net/index.html
http://sourceforge.net/projects/sdlmm/
http://wiser.cs.ccu.edu.tw/~hus/sdl/



Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 5th Jun 2004 04:55
yeah, I just started messing around with SDL (http://www.libsdl.org/index.php) with VC++, it's amazingly easy to set up a window and start drawing pixels / blitting images.

so far I'm really impressed with the SDL library... if you're interested in 2D with C++, I highly recommend checking it out.

there's a great set of tutorials here:
http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Giles Papworth
21
Years of Service
User Offline
Joined: 7th Feb 2003
Location: In my own little reality
Posted: 5th Jun 2004 07:49
Well as my mate JessTicular had said, i have a free IDE. I am still building it but the more people that comment on it the more i can improove on it.
I had 3 downloads of it last night (thanks Jess!!) but the users did not sign up. If you have critisism of it, please tell me, don't just say it is rubbish, tell me what you think could be put into it. I will try my best to put your improovement in it and then release another version of it.

So if you want to help me build this into a huge easy to use IDE, download it and help me build it into a better system.

Cheers

Giles (www.superchiefsoftware.com)

Its not a bug, Its a feature
Giles Papworth
21
Years of Service
User Offline
Joined: 7th Feb 2003
Location: In my own little reality
Posted: 5th Jun 2004 10:41
Oh and for the people that did download my IDE, if you read my post in the forums you will find details about the latest update to the IDE
http://darkbasic.thegamecreators.com/?m=forum_view&t=32790&b=2&p=0

Its not a bug, Its a feature
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 5th Jun 2004 18:24 Edited at: 5th Jun 2004 19:47
Quote: " I don't get why they used && instead of AND and || instead of OR"


Because C is the programmers language, and we don't want non-coders learning to code, so we kept it just cryptic enough so that they would stay away from the big boys language

Truth is, its cos they did, thats why. Well, actually, its probably cos there are two different versions of AND and OR (&& and ||, & and |)


Quote: "notice how there are two symbols for each comparison operator"


So what about:
|
&
<
>


Quote: " A good windows C++ 3d book is Windows Game PRogramming For Dummies"


by Andre LaMothe. I got that book. Its great. It should be given to n00bs everywhere before they start posting. Would stop people from trying to code games asking "Where is the CREATE NAZI ZOMBIE command?"

TheAbomb12
21
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 5th Jun 2004 19:38
what is | and &?

I have never seen those before.

Amist the Blue Skies...
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 5th Jun 2004 19:44
& is bitwise && (AND)
| is bitwise || (OR)

Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 5th Jun 2004 21:08 Edited at: 5th Jun 2004 21:09
any1 in here know how to set the enviroment variable "sdl_videodriver" to "dga"?
I know how to blit and all, but i've heard the dga driver gives a big speed boost, and don't have a clue how to change it.

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 5th Jun 2004 22:24
Thats the one Mr. Flibble, I'm just starting the GPDUMB Engine. It's a really informative book.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 6th Jun 2004 00:54
I can't get SDL to work.

What settings am I meant to use?
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 6th Jun 2004 21:09 Edited at: 6th Jun 2004 21:18
I got it working and it's cool.
I'm making a 3D engine for a Wolf 3D remake, it's going really well.

It's basically the same as DB but with more int's, ;'s and {'s

EDIT _____________________________________

Here's a little demo (100kb):

You need to put the .DLL in WINDOWS\SYSTEM32
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 6th Jun 2004 23:17
I'm coding depth of field into my engine so I made this blur function (I did it in DBPro for ease).

I think it's pretty cool:

Nitro Methane
20
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Anderson , SC
Posted: 8th Jun 2004 22:47
@chris knott
You may want look into this.
http://www.gamedev.net/info/news/FullStory.asp?StoryID=6287

Tommy
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 9th Jun 2004 02:56 Edited at: 9th Jun 2004 02:56
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 9th Jun 2004 21:50
OK.
I've got a bit of a problem.
My 3D engine's going really well but one function's giving me grief.
It's a function for finding the relative grid positions of points based on the player position and angle.

The function works but it's extremely slow, it's slower than the same function in DBPro!

It uses quite a lot of trig (sin, cos & atan) and I think that's what's slowing it down.



The trig function are from math.h
They take in and give out a double, but I'm putting in and taking out a float - could that be slowing it down?

Login to post a reply

Server time is: 2024-11-25 09:35:15
Your offset time is: 2024-11-25 09:35:15