Post: Learn C++ in 12 days.
01-18-2011, 11:38 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Why 12? because 12 is cool, and cool... IS 12!

Anyway,

To learn C++ you need the following


  • DevCPP (C++ Compiler)
  • A website C++ Tutorial bookmarked!
  • A open and creative mind
  • A natual fear of GOTO LOOPS!


Ok first off the DevCPP compiler.
    This is a well known free source C++ compiler written in Delphi, and is used by many educational colleges, we have it on all our 400 computers at my technology college.

https://www.bloodshed.net/devcpp.html

[url=https://sourceforge.net/projects/dev-cpp/files/Binaries/Dev-C%2B%2B%204.9.9.2/devcpp-4.9.9.2_setup.exe/download]Download link[/url]


Secondly, the C++ tutorial (BOOKMARK IT)
    This website is great, I studied C++ here before i started my software development course and it gave me a massive advantage over the group (plus i looked UBERGEEK Happy) 

The website is [url=https://www.cplusplus.com/doc/tutorial/]C++ Language Tutorial[/url]


An open creative mind!
    It is almost required to be able to solve problems in C++ and i tell you know, you will literately spend 5% of your time actually programming, and 95% fixing your code. the same C++ program can almost be written in at least 10 different ways (10 different major ways like almost completely different)


Finally, a natural fear of GOTO LOOPS
    When learning C++, you might come across the goto loop, or might have used it in batch scripts. Dont ask any questions, just dont use it, you will be laugh at. End of.


Hope this helps you guys set of on your own C++ journey, there are many laughs to be made especially when your friend fries a CPU chip with a faulty loop :Sad AwesomeD.

The following 3 users say thank you to TheUberFail for this useful post:

Nuke, skatin707, Toon_Squad
01-26-2011, 05:15 PM #29
Originally posted by Smiithy2010 View Post
I Think video tutorials are easier to learn things from because they show you exactly what to do or a voice tutorial but thats just me


C++ is hard, if you cant learn it without watching someone else do basic C++ then you will never learn it.
01-26-2011, 05:33 PM #30
Smiithy2010
What You Looking At Fool?
Originally posted by TheUberFail View Post
C++ is hard, if you cant learn it without watching someone else do basic C++ then you will never learn it.


I know its hard But watching stuff makes it easier
01-26-2011, 10:32 PM #31
Originally posted by Smiithy2010 View Post
I know its hard But watching stuff makes it easier


The stuff they teach in videos is not even real C++, you can actually write all they do in batch.
01-27-2011, 02:13 AM #32
angel_of_deth
Climbing up the ladder
Originally posted by TheUberFail View Post
the only painfull thing with copy and paste, you dont actually learn C++, you just learn how to replicate simple code.

---------- Post added at 02:43 AM ---------- Previous post was at 02:25 AM ----------

for example, if statements are not just if(variable operator variable), they dont have to have any operators in there, the correct syntax is actually, if(test expression){code...}

the test expression can be anything that evaluates to either 0, or 1, (true/false)

int life=50,cash=750;
bool isFullscreen=TRUE;

if(life != 50) //false
if(isFullscreen) //anything inside ( ) evaluates to true, isFullscreen is already true, so evaluates to true.
if(!isFullscreen) //! says is this variable false? its true, so the test expression is false

| and &

| stands for OR, & stands for AND,

for example

if(test expression | test expression) //if(life==150 | cash ==750)

life does not == 150, but cash does == 750, since this is a OR, it checks the first test expression, if false it moves onto the next one, if true, it will return true, for the entire if statement.

if(test expression & test expression) //if(cash != 75 & life == 750)

for this if statement to return true, BOTH test expressions need to evaluate to true because it is AND.

true | true //true
false | false //false
true | false //true

true & true //true
false & false //false
true & false //false

If statements can be as complicated as you want them as long as you remember BODMAS (google it)

if( (true | false) | (false&false) & ((true&true)|false) )
// True or false?

yea i got to about here and stoped doing it and idk what some things mean that i would have learned in c so if anyone reads this better to try that before c++ even if you do get to the point and go oh i got c++ down like he says there is like 50 ways to write said code
01-27-2011, 07:53 AM #33
Smiithy2010
What You Looking At Fool?
Originally posted by TheUberFail View Post
The stuff they teach in videos is not even real C++, you can actually write all they do in batch.


Oh well thanks for this tutorial thing Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo