PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

C++ learning

Ok, if say I'd like to learn programming without earlier experience (I've tried on c++, java...but got tired of it), would it be a good idea to start with c++ right away or should I learn another language. I don't think I'll be able to do advanced thing, but it'd be fun to be able to write small proggies :)
...and does it take a long time just to make a small program in c++?
OMG, not an other "book thread"...
Nah, I don't think I need book tips (think I'd buy "learn c++ in three weeks" translated into swedish) :)
here is the order I learned different programming and programs:

GWBasic (aka Basica. Dos. crap.)
QBasic (Dos. Less crap. wrote many games)
QuickBasic (same as qbasic but with a compiler and a bit more stuff)
JavaScript (normal webpage scripts, and some pretty cool intranet apps)
Borland Delphi
JavaScript utilising DHTML
ASP
Cold Fusion
Insane JavaScripts (pushing the limits of the browser. making own MFC like api, working with classes and the coding the craziest inheritance and dependency systems in JavaScript. Basically wrote a Outlook clone. Also doing Weeboo DHTML at this time)
Starting to learn C++ (porting weeboo to C++)
heavy duty (in my view) C++ (Testing with landscapes. Joining forces with Carpe to code argentum)


If I were you I would start doing simple C++ apps and take it from there. You can do it. Just have patience and a comfortable chair.
Well, unfortunately patience is the thing I don't have, but I understand that I'll need it so I'll have to try ;) Thanks for the help Fredrik.
And that's a lot of programming you've done :)
Actually it is mostly weird programming. Doing things in places where it shouldn't have been. Every other programmer I knew who started with basic left that thing and went to better stuff like Pascal and C. But I remained in basic doing stuff in it that was, in my point of view then, really cool to be basic. You later see the same syndrome with me JS coding. You're not supposed to write a platform game in DHTML! So generally I've been coding things for different platforms that they really weren't built for. Oh well...

Incase you don't have patience I suggest you should get on it right away!!!
lol ;D
And writing a platform game in DHTML is kind of weird, but a good idea. Is it released somewhere or...
You could start off with C++ if you really had a desire to learn it. At one time schools had a pretty elaborate progression of languages they used, like BASIC -> Pascal -> C -> ASM, but several years ago I'd heard that most schools were just starting out with C.  C++ provides extensions to the C language, but they are not really two different worlds. For the most part anything written in C will compile fine under a C++ compiler. Having learned C first I have the advantage of knowing exactly what extensions C++ added in. That can be useful when you do take on a straight C project like Quake.
One of the keys to fully understanding C / C++ is the ability to think of any variable / array / pointer as the raw chunk of bytes in memory that it really is. That leads to a full understanding of pointers, which is something you can't avoid in a (non-trivial) C program.
Good luck! If you have any specific questions about the language just post, because there are several regulars here that know C / C++ thoroughly. There are a couple of older threads on C and C++, so you might read through them. If we can get a good base of info here we might convert it into a tutorial / faq / how-to document.

Dan East
...and that was another high quality reply by Dan :)
Thanks!
Dan's replies are (usually) very good.
Moose or Chuck · 23 Jul 2001, 15:00 UTC
I went from QBasic to C to TI ASM + BASIC to Perl to Javascript with DHTML to C++ and I never learned one language good enough to write anything useful? Should I read a c++ book now ;D
and here i am thinking you know all kinds of shit when you never really learned the WHOLE of a language... bah
If you can't do anything with those languages, then you won't be doing anything with C++ either.
Moose or Chuck · 23 Jul 2001, 15:19 UTC
It's not like it was difficult. I just didn't care to sit down and learn it all. But now I've got the entire WindowsProc down pretty good. Sending and recieving every message known to Windows. Now all I have to do is learn DirectX/GAPI and create some sprites. I've made a game before. If you want it it's on my FTP. It's pretty good too.
It's not the language you use, its the algorithmic abilities that count.  Languages are almost unimportant in the grand scheme.  I mean how often do I use Prolog?  This is not to say one should try to write a game in Qbasic, Perl, Pascal or some other wanna-be language (using the term language loosely).

I said that as a preface to my book lists....

1) Knuth rules.  The man is a super-genius.  Try "The Art of Computer Programming" (there are many volumes).
2) Writing Solid Code, by Steve MacGuire is pretty decent too.
3) 'CODE'  I CANNOT EMPHASISE THIS ENOUGH!  BUY THIS BOOK!  really it's good...hehe
and suddenly it turned into an other book thread...
PCKTMTRX should have a page with lists of good programming books and some descriptions of them like the difficulty of it and who really recommends the book (like dan e etc)
Moose or Chuck · 23 Jul 2001, 16:47 UTC
Well, the point is. You don't need to learn another language first to learn C++. I don't understand why people keep saying that to newbies. Starting with one language is just as good as starting with another. Sure there's more to learn to C++, but what makes the difference?
where is your ftp moose?
Moose or Chuck · 23 Jul 2001, 17:21 UTC
I've forgotten my password for prohosting.com, so I can't update anything there. But there should be a file at http://free.prohosting.com/~moose/files/astro.zip or something like that.
Moose or Chuck · 23 Jul 2001, 18:01 UTC
Ok, here it is. I found it:
http://www.pocketmatrix.com/moose/files/Astro.zip
It's slightly fun. And it's better than no game at all. I suggest original mode at first (F1) so you know what the game looked like back in the days of intellivision. And yes, the meteors look like eggs, oh no!
Boy, with all that hype (it's slightly fun and it's better than no game at all) I just couldn't help myself from downloading it.

Too bad it's corrupted.
Moose or Chuck · 23 Jul 2001, 21:06 UTC
Wow, you cared enough to download it and then tell me when it didn't work? I'm ... honored? impressed? I don't know what the word is but it's something.

Somehow 3 bytes didn't get through, so I'm reuploading it, try again in 35 seconds...

[EDIT]

Still didn't work. Let me try one more time after I rezip em. Check back in 1.5 minutes.
Moose or Chuck · 23 Jul 2001, 21:10 UTC
Not New, tell me if it doesn't work still. If so, I'll just give up

ImageImageImageImage

(uhm, I'm supposed to upload zip files in ASCII format, right?)
yeah it works.

From what I remember, it looks exactly like the original game. The enhanced version looks pretty good considering the engine behind it.

Much better than Poccer and Grey Day.

Since it came with an installer, I'm guessing that this was developed with some kind of dev kit. Still, it's better than any games I created at your age (Apple IIe was the shit back then).
Moose or Chuck · 23 Jul 2001, 23:39 UTC
Image<--- hi i'm a gay person.


Anyway, did anyone ever use Visual Basic 1. OMG it is so fun. It's in dos and its so funny. Its like windows but made with those null colored characters and stuff. it was so fun to play with.
Have you ever seen Windows 1.0? You'll quickly see why VB 1.0 looked like it did.

Yup, talk about ASCII art.

DragonBallZ sucks so bad it isn't even funny.
Windows 1.0 isn't ascii. It is graphical mode...the real pain is that I never got the mouse working...
Moose or Chuck · 24 Jul 2001, 09:54 UTC
Thanks randall. I thought you were gonna tear it apart, but now I feel good about it :).

Ya, DBZ kind of sucks. But now that I've been watching it I'm kind of stuck and have to know what happens. I hate it when that happens with some garbage show, like Outer Limits and anything else that says To Be Continued.

I only saw DOS, DOSSHELL, and Windows 3.0+. I don't think any computer company actually pre-installed any Windows version below that anyway.
Moose or Chuck · 24 Jul 2001, 09:56 UTC
Oh, and yes, it was built using a Dev Studio. Actually DIV Games Studio, which i reviewed for 3DGG. It's the game i created for download from 3DGG as part of my review.
Moose or Chuck · 24 Jul 2001, 17:01 UTC
have u seen the new episodes moose? the ones after Cell. Its coo Gohan is all grown up and stuuf and he  goes to highschool. But they haven't been translated its all subtitled shit. :( i wish they'd release thhe real episodes :(
Sounds Pretty wierd to me. But hey what do i know i don't watch those dumb shows. If that offends anyone sorry but in my opinion it is dumb. Yeah that does suck when you get stuck watching some gay show.
Moose or Chuck · 24 Jul 2001, 18:19 UTC
Ahh shit Chuck. The minute you said that I forgot the name of those pink cloud people that come and destroy everything. Something that starts with a B.
Ya, dubbed is bad for cartoons, but if you watch a live motion movie or something dubbed, not subbed, I will kill you.

Gundam Wing is one of the best Animes ever produced, forget MSGundam or Gundam 0083. But Tenchi [in Tokyo] has to be my favorite.

DBZ was OK until after the Freeza Saga. Those miserable "Z Fighters" are now so powerful they can't even live in the everyday world, and can destroy the planet in seconds. It's just dumb now. DragonBall is coo though, especially the unedited original Japanese ones. Buruma (Bulma) is quite hot as a teenager, especially when she reveals lots of skin... lots of skin. ;D
Moose It's a freakin cartoon character. Now is it just me or are people fantasizing over someones drawings????????? If that is the case i'm in the Wrong Business...LOL I'm just messin with ya moose
Moose or Chuck · 24 Jul 2001, 18:29 UTC
You should see some of the anime drawings I've got on my computer:
http://www.animewallpaper.com
The "Dirty Pair Flash" cartoon has some nice wallpapers, along with "Ranma." Now THAT is some quality artwork!
I used to do anime drawings but got bored with it i am also really good at logo's and such but simply do not have the time anymore.
The only anime cartoon that made me sit up and say "COOL!" was Blue Sub 6. (I think that was the name of it) I don't think it really qualifies as anime, but it definately has a japanese style to it.

I never got to see all the episodes- I think it was a four part series. But it was definately the shit.
Moose or Chuck · 24 Jul 2001, 21:39 UTC
Blue Sub #6 was amazing. I'm going to buy that as soon as I get enough money that I don't care how I spend it.

It was all computer generated backgrounds, but anime style characters. Yes it was an anime. Great series, but I've only seen the movie version, not the OVA's.
Yeah. I haven't looked to for it on DVD or video, is it available? It was just amazing how they blended the 3d and 2d art together.

I was hoping they were going to make that into a regular series.
Woah now that sounds cool i might have to look into it
i've got a thing for misty on pokémon. man that bitch gets me hot. uh.. um... better ignore that
Chris Edwards · 25 Jul 2001, 14:08 UTC
umm... it's a cartoon....
Moose or Chuck · 25 Jul 2001, 14:21 UTC
paul you are a geek. Star wars, Misty, othre random geeky things. You are a  geek.
Moose or Chuck · 25 Jul 2001, 16:51 UTC
Paul, I think that qualifies you as a pedophile. Aren't those kids supposed to be 10?
I believe i told moose the same thing """IT'a a CARTOON""" But hey whatever floats your boat. Personally i think there should be a CLA "Cartoon Lovers Annonymous" Meeting for people like this.

Code:
                       All your cartoon are belong to us.
Moose or Chuck · 26 Jul 2001, 08:58 UTC
There's a difference between a cartoon and a drawing.

But I'm going to quit talking now, as I can see I've lost all credibility.
pedophile? well... uh...

geek? i... um...

SHADDUPA YA FACE!