Programming question...

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Darth Fett
Posts: 936
Joined: Sun Oct 09, 2005 6:21 pm
Location: On my giant space station. Firing on earth in 3...2...1...
Contact:

Re: Programming question...

Post by Darth Fett »

CronoTriggerfan wrote:Okay, I'm going to camp this summer to learn how to program games using C++ and DirectX as the compilers. One problem, though; I've never programmed IN MY LIFE! Even though the camp says you don't need to know programming at all to go, I want to have SOME C++ knowledge before attending. Anyone know a good book/reference/program that could teach me the basics of C++? And I mean BASICS (no programming pun intended :wink: )!

Thanks,
CronoTriggerfan
Hey,i'm going to a computer camp this summer too :o .Which one are you going to? :)
Image
Laugh and the world laughs with you; It's inhabitants are an entirely different story.
CronoTriggerfan
Moderator
Posts: 4131
Joined: Fri Jan 27, 2006 3:07 pm
Location: University of Michigan - Ann Arbor
Contact:

Post by CronoTriggerfan »

Krepticor wrote:that is a rediculous time frame....

I know people i go the college with who take MULTIPLE SEMESTERS of C++
I'm aware, but then again they are taking these courses to MAJOR in them :roll: ! I just want to learn the raw basics before I go to camp, so I don't get lost. I'm not looking to do anything advanced as you are saying; they'll teach me that there.

Darth Fett, I'm going first to the Summer Youth game programming course at MTU. The URL is here: www.youthprograms.mtu.edu/syp/index.html
I am also going to ID Tech Camps gaming academy, they are more famous but I don't think they're as good as the MTU program. They can be found at www.idtechcamps.com .
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

gannon wrote:I had Sam's teach yourself C++ in 24 hours and it sucked. It did get the code across though, but a lot of the examples were wrong (fairly simple things though) for both *nix and windows.
Haha I have that book.
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

sam fisher wrote:C is a low level language. Basic is an example of a high level language.
errr...no, ASM is a low level language, not C

Edit:
and a discussion with my friend on the subject that explains language hierarchy better I guess :P
(15:51:51) Mitch: as far as architecture is concerned, anyway
(15:51:52) gannon: no, ASM is a low level language :P
(15:52:06) Mitch: well, C is a lower level language
(15:52:20) gannon: I'd say mid level :P
(15:52:29) gannon: like, ground floor...asm is the basement
(15:52:35) Mitch: aye
(15:52:41) Mitch: actually
(15:52:55) Mitch: machine code is slightly lower level than asm.
(15:53:03) Mitch: there's a slight difference
(15:53:11) gannon: well, can't a basement have a cellar?
(15:53:14) Mitch: you still need to run a compiler (of sorts) on asm
(15:53:15) Mitch: lmao
sam fisher
Posts: 1093
Joined: Mon Apr 25, 2005 8:52 am

Post by sam fisher »

gannon wrote:
sam fisher wrote:C is a low level language. Basic is an example of a high level language.
errr...no, ASM is a low level language, not C

Edit:
and a discussion with my friend on the subject that explains language hierarchy better I guess :P
(15:51:51) Mitch: as far as architecture is concerned, anyway
(15:51:52) gannon: no, ASM is a low level language :P
(15:52:06) Mitch: well, C is a lower level language
(15:52:20) gannon: I'd say mid level :P
(15:52:29) gannon: like, ground floor...asm is the basement
(15:52:35) Mitch: aye
(15:52:41) Mitch: actually
(15:52:55) Mitch: machine code is slightly lower level than asm.
(15:53:03) Mitch: there's a slight difference
(15:53:11) gannon: well, can't a basement have a cellar?
(15:53:14) Mitch: you still need to run a compiler (of sorts) on asm
(15:53:15) Mitch: lmao
Well C is considered a low level language, see. Machine code and ASM are very very similiar being one is basically just a asci representation of the binary other. More or less.
Image
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

1. Java, most scripting lanuages - these languages are very high level and they offer the ability to make huge programs reliably and manage them well. Object Oriented Programming is a key factor in these. They also are very slow, platform-dependent, and have the tag "Write once, debug everywhere."

2. Visual Basic, Delphi, C++ - these languages are not as high as the above but are a good compromise between speed and manageability. You can compile code to an executable file native to one platform.

3. C - it is slightly lower than C++, is more straightforward and offers the speed of assembly with the features (subroutines, pointers etc) of C++. Mainly used for game programming.

4. Assembly - the lowest level possible that is still somewhat readable. It's a direct intertpretation of machine code - a a few bytes for an opcode and several operands. Something that takes one line in Java can take hundreds in assembly, while code written in C/C++ is more efficient. You can hand-code this yourself, and write extremely fast code. However, it's hard to start out with.

5. Machine code - not much to say here. It's exactly what the CPU understands. It's what reverse engineers derive cracks, patches and the like from. This is a topic for a whole book.
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

marshallh wrote:1. Java, most scripting lanuages - these languages are very high level and they offer the ability to make huge programs reliably and manage them well. Object Oriented Programming is a key factor in these. They also are very slow, platform-dependent, and have the tag "Write once, debug everywhere."

2. Visual Basic, Delphi, C++ - these languages are not as high as the above but are a good compromise between speed and manageability. You can compile code to an executable file native to one platform.

3. C - it is slightly lower than C++, is more straightforward and offers the speed of assembly with the features (subroutines, pointers etc) of C++. Mainly used for game programming.

4. Assembly - the lowest level possible that is still somewhat readable. It's a direct intertpretation of machine code - a a few bytes for an opcode and several operands. Something that takes one line in Java can take hundreds in assembly, while code written in C/C++ is more efficient. You can hand-code this yourself, and write extremely fast code. However, it's hard to start out with.

5. Machine code - not much to say here. It's exactly what the CPU understands. It's what reverse engineers derive cracks, patches and the like from. This is a topic for a whole book.
I'd but C++ and Delphi in their own group, VB being one step lower.

At least, from my experiences with the languages, VB is a bit less tough.
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

Skyone wrote:I'd but C++ and Delphi in their own group, VB being one step lower.

At least, from my experiences with the languages, VB is a bit less tough.
Well, if you've known VB for 6 years like me and write DirectX games with it, you'd disagree :wink:
Yes, it is a little slower than C++ but can do almost anything C++ can do, except write an OS. Delphi is somewhere between the two. I've used it also.
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

Ah, I guess it goes to show you, what ever you use more, is better. :wink:

Obviously, I use C++ daily compared to VB (I use it when ever I have to make a quick frontloader :P).

I've only use Delphi a few times, but I found it easier to stick with C++.
shmagoogin77
Portablizer
Posts: 1469
Joined: Sun Apr 17, 2005 6:10 pm
Location: My desk

Post by shmagoogin77 »

im learninig the basic of programming with liberty basic and then im gonna learn c++
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Post by Sparkfist »

I'm looking at learning Visual Basic.net, only this is that the only windows machin I have is my laptop and the programs I write wont run on *nix systems. Think I should do it anyways or look at C++ as another option?
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
Post Reply