is there a way to learn C++ really fast?

I'm aa good mapper, shoould I learn to code?

  • Yes, we would love you contributions to the coommunity.

    Votes: 4 8.9%
  • Yes, START WORKING SLAVE!!!1!11!!111

    Votes: 13 28.9%
  • No, you seem too lazy.

    Votes: 28 62.2%

  • Total voters
    45
G

Guest

Guest
Like an online tutorial with a matching FREE compiler and many, many pictures?
I don't have lots of spare time because I'm a gamer.

I tried it once before but I couldn't find a FREE standard C++ compiler and I am so cheap I wouldn't even spend more than 10 bucks on one (most I saw were $70+).
 
For this kind of stuff, I would suggest a good book. A friend of mine is REALLY good with C/C++, and he learned Assembler over a week!!! C++ is easier :)
You just need a good understanding in logic... If you think in Code (dont ask) before coding, its easy to understand it. If you have no idea what you are about to do, you're not gonna learn it very fast.
 
i found a good (free) tutorial but i cant locate a compiler
can u help?
 
Well... If I was naughty I would suggest searching the net for xdcc searchers, but I'm not that naughty ;)
I beleive there is one that is part of cygwin, its pretty neat, cant remember its name though. Its free, but DAMN hard to install :)
You could also try finding some really horseold borland compiler, I got one with a pc magazine... http://www.borland.com/products/downloads/download_cbuilder.html seems to have a free compiler and trial version, no idea on the limits though, mostly its something you dont need.
 
Dev-C++ is an excellent free IDE. It uses the MingW compiler system, which uses GCC, arguably the best compiler in the world.
 
learn an easier language before attempting C++ to get the logic and structure of coding.
 
c++ isnt that hard if you use your brain.. plus it makes vb look like crud code
 
C++ is a fine language to start on, you just can't rush into it.
 
The best way to learn c++ is to buy a book(the larger the better:) ), and read a little bit in it, but the main thing is: DON'T GO FURTHER IN THE BOOK UNTIL YOU UNDERSTAND EVERY SINGLE WORD, and you feel you can tell the reason of a thing w/o the book explaining it.
 
Originally posted by SidewinderX143
If you start thinking in If...Then statments, that might help.
if (iCurrent_Post == iGood)
{
iSuccess = iPost_Junk();
if(iSuccess) find_Next_Thread();
else swear("GOD DAMN IT CRAPPY FORUM!!!!!!");
else
{
iSuccess = iPost_Flame();
if(iSuccess) find_Next_Thread();
else swear("DARN IT, CANT EVEN FLAME!!!!");
}
 
Originally posted by dawdler
if (iCurrent_Post == iGood)
{
iSuccess = iPost_Junk();
if(iSuccess) find_Next_Thread();
else swear("GOD DAMN IT CRAPPY FORUM!!!!!!");
else
{
iSuccess = iPost_Flame();
if(iSuccess) find_Next_Thread();
else swear("DARN IT, CANT EVEN FLAME!!!!");
}

You forgot #include <flame.h> and #include<uglylanguage.h>
 
You use #include "flame.h" for custom I beleive. Or at least I use to do it in my crappy old compilers, I need a new one... Oh, the pain of being on a 233mhz with a 2gb harddrive and a Riva 128 :D

Edit: And I noticed I missed a } :)
 
Originally posted by dawdler
You use #include "flame.h" for custom I beleive. Or at least I use to do it in my crappy old compilers, I need a new one... Oh, the pain of being on a 233mhz with a 2gb harddrive and a Riva 128 :D

Edit: And I noticed I missed a } :)
Ooopsy

People make mistakes:cheers:
 
Yes, you could "learn C++ really fast". Then you would spend the next two years going back and figuring out how many things you did wrong. Learning ANSI C++ in your spare time shouldn't take more than a few months. Learning how to go through MSDN and hunt for documentation will take you a couple of weeks. Then you have a fairly decent base of knowledge to work with.

Unfortunately, if you haven't worked with any programming languages recently, you'll have to work very hard to get into the right mindset. A coworker and I were discussing this recently... we've gotten to the point where we break down problems in our heads into discrete pieces of logic without having to think about it. Saves a lot of time and trouble :)
 
you dont wanna start learning direct3d until you can do c++
 
c++ isn't something that can be learned quickly unless you know similar languages like java. otherwise, you need to learn the logic behind it, as well as a million other things besides syntax. i've been programming in c++ for over five years and i'm still learning new things every day.
 
I taught myself a good amount of C++ in a week (went through an entire 1000 page book and didn't go to the next chapter without fully understanding the previous one)... enough to understand the stuff in the HL SDK.
Though, I have been screwing around with math, physics, simple programming languages, etc in my spare time for 6 or 7 years and tend to learn things rather quickly.

Even if you know C++ it takes a while of reading through the SDK to find out how enough things work to make anything worth playing...
 
I hope to get back into programming. In 9th grade I tought my self how to program the TI83+, and went on to makes some good code (a Hangman game, and a real time graphical RPG). I still ove the logic of code. I aslo have a few books on Visual C++, and it seems very logical. Now that I am older, and have a better understanding of the math behind why they used differnt kind of varibles (float and so on) I think Ill be set to do the art and codeing of my own tinny little HL2. Or just stick to my passion of 3D art 100%.. none the less, programing a good program is very sadisfactional.
 
erm

(correct me if im wrong, but) C++ is different from C++ visual right?

Im going into my junior year (HS) and ive gotten into the 12th or so hour of the sams teach yourself c++ in 24 hours

takes me about 2 times through a chapter to understand some things.
Any suggested books to read ?
 
Probably. As far as I'm aware, C++ is backwards-compatible with C.
 
Re: erm

Originally posted by Orange
(correct me if im wrong, but) C++ is different from C++ visual right?

Im going into my junior year (HS) and ive gotten into the 12th or so hour of the sams teach yourself c++ in 24 hours

takes me about 2 times through a chapter to understand some things.
Any suggested books to read ?

visual c++ is an ide not a language.
 
Originally posted by Epsi
Probably. As far as I'm aware, C++ is backwards-compatible with C.

only if you want it to be.



;\

oo for life.
 
Hey. I have a question. I started learning SMALL. Its like C++ and VB but a bit easier. I was using it in AMX Mod community for writing some plugins. I can say i know it pretty well, like the includes,globals,variables,bools, and most important the syntaxing. here is an example.
Code:
public alien_loop() {
   new all[32], all_num 
   get_players(all,all_num) 
   for (new i=0; i < all_num;i++) { 
      if(gHasAlienPower[all[i]]) { 
         new alpha = get_cvar_num("alien_darken") 
         if ((alpha >=0) && (alpha <= 255) && (all[i] >= 1) && (all[i] <= 32)) { 
            message_begin(MSG_ONE,gMsgScreenFade,{0,0,0},all[i]) 
            write_short( 15 ) 
            write_short( 15 ) 
            write_short( 12 ) 
            write_byte( 0 ) 
            write_byte( 200 ) 
            write_byte( 0 ) 
            write_byte( alpha ) 
            message_end() 
         } 
      } 
      //else if (!gHasAlienPower[all[i])
   } 

   return PLUGIN_CONTINUE 
}


Now will it be hard to switch over to C++?
 
Not really, but it depends on how intelligent you are. :E The syntax is very similar... just more "precise". You'll have to start putting semicolons after your statements, though.
 
So i would put a semicolons here

get_players(all,all_num);

but what about this?

new all[32], all_num
 
Originally posted by nietzsche
Freecode,

SMALL and C share certain traits, such as being procedural, imperative programming languages. Furthermore, as C is an essential part of C++ you are already acquainted with some concepts.

However, C++ introduces a lot of new concepts such as classes, virtual functions, operator overloading, templates, exceptions, etc. that you will have to learn more or less from scratch.

It's certainly a lot of new stuff that you will have to learn, but you don't have to learn them all at once. You can already start to program in C++ without knowledge of templates, exceptions and virtual functions, for example.

OMG thank you so much. Do you think you can give me a few links i can go and learn some of those things?
 
Sorry - I would have given more specific information but I thought you wanted a general information.

I skimmed these and they look pretty good:
http://cplus.about.com/cs/ctutorial1/

You'll probably know a good bit of it already from your experience in SMALL.

Also, as you already know SMALL and are comfortable working with Half-Life, you may want to try to work your way into C++ by actually doing things with the Half-Life 1 SDK. I wouldn't recommend doing it immediately, as the SDK is kind of gross, but once you're comfortable with the semantics of the language, that would be a good way to see the practical applications of it.

Edit: Aw, too slow... :)
 
But are you actually developing using the C++ code in the SDK or are you using the SMALL extensions with AMX?
 
Back
Top