| |
Giygas learns the art of C++
Giygas |
|

Standard Member
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif)

Group: Members
Posts: 910
Member No.: 4767
Joined: 24-November 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Bacteriophage @ Sep 24 2009, 06:04 PM) | Grats. I'm doing the same thing.
Though I think you're taking this far too fast. You won't learn arrays, pointers, or classes to the extent that you can use them in just four hours.
Take it slow.
Also, don't be an idiot about it. Don't think that just because you understand how to use classes you're a master of programming. You have a lot of work to do with memory management before you're ready to make anything good. |
No, no, of course not. Perhaps I am taking this a bit fast, but I understand that I won't be able to learn anything to it's full potiential in a few hours. I'm probraly going to be doing alot with just the basics, input/output, functions, variables, etc. and make a bunch of programs such as calculators and all of that. Then after I do that, which will probrably take a few days, i'll start investigating arrays, classes, etc. and see how I can use them. Then... Well, I guess what comes next I can't really say right now... I don't even know myself. :L
|
|
|
Bacteriophage |
|

injustice anywhere is a threat to justice everywhere
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif) ![Super Submitter Badge [*]](https://archive.mfgg.net/html/badges/submissions.gif) ![Super Reviewer Badge [*]](https://archive.mfgg.net/html/badges/reviews.gif) ![Sprite Comp Winner Badge (3) [*]](https://archive.mfgg.net/html/badges/scg3.gif) ![Sprite Comp Runner Up Badge (5+) [*]](https://archive.mfgg.net/html/badges/scr5.gif)
![Sprite Comp Top 5 Badge (5+) [*]](https://archive.mfgg.net/html/badges/sct5.gif) ![Drawing Comp Runner Up Badge (1) [*]](https://archive.mfgg.net/html/badges/dcr1.gif) ![Drawing Comp Top 5 Badge (2) [*]](https://archive.mfgg.net/html/badges/dct2.gif) ![Minigame Comp Third Place Badge (2) [*]](https://archive.mfgg.net/html/badges/mct2.gif) ![MFGG Awards 2006 Winner [*]](https://archive.mfgg.net/html/badges/award06.gif)
![MFGG Awards 2007 Winner [*]](https://archive.mfgg.net/html/badges/award07.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif) ![KFC Badge [KFC]](https://archive.mfgg.net/html/badges/kfc.gif)

Group: Members
Posts: 10716
Member No.: 2411
Joined: 31-July 06
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Giygas @ Sep 24 2009, 04:24 PM) | No, no, of course not. Perhaps I am taking this a bit fast, but I understand that I won't be able to learn anything to it's full potiential in a few hours. I'm probraly going to be doing alot with just the basics, input/output, functions, variables, etc. and make a bunch of programs such as calculators and all of that. Then after I do that, which will probrably take a few days, i'll start investigating arrays, classes, etc. and see how I can use them. Then... Well, I guess what comes next I can't really say right now... I don't even know myself. :L |
As an actual programmer you'll be creating solutions for problems that aren't already outlined for you. So try to adjust to that environment of thought by making programs that solve problems for you or are good entertainment.
For example, my first program used simple i/o and a functionless expression to work out the quadratic formula for me. Your guess the number game is also a good idea, albeit a bit overdone.
Try not to think of things like arrays and classes as "things to know" but as tools to use.
Take it at your own pace. Some programming languages (C++ included) are taught over the course of months. Just because Retro, et al. can pretend to learn it in a few days doesn't mean you should rush through it.
Otherwise, you risk becoming one of the countless uninformed apologetic teens who prove themselves the ****ing bane of any programming effort, ever.
--------------------
|
|
|
Giygas |
|

Standard Member
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif)

Group: Members
Posts: 910
Member No.: 4767
Joined: 24-November 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Bacteriophage @ Sep 24 2009, 06:29 PM) | As an actual programmer you'll be creating solutions for problems that aren't already outlined for you. So try to adjust to that environment of thought by making programs that solve problems for you or are good entertainment.
For example, my first program used simple i/o and a functionless expression to work out the quadratic formula for me. Your guess the number game is also a good idea, albeit a bit overdone.
Try not to think of things like arrays and classes as "things to know" but as tools to use.
Take it at your own pace. Some programming languages (C++ included) are taught over the course of months. Just because Retro, et al. can pretend to learn it in a few days doesn't mean you should rush through it.
Otherwise, you risk becoming one of the countless uninformed apologetic teens who prove themselves the ****ing bane of any programming effort, ever. |
Thank you for the info, Phage- I guess I was overcomplicating it, or thinking as C++ as a program that you can learn just by reading a few tutorials. This won't discourage me, though, because C++ is something you really need to know if you are looking to head into the programming career ( as I do, and aparently, with you learning his to work with Valve, you to do :3 ). Plus, it's fun to do and can help with things outside of the internet, to.
|
|
|
Lightning |
|

Ignorance isn't stupidity but choosing to remain ignorant is
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![MFGG Awards 2008 Winner [*]](https://archive.mfgg.net/html/badges/award08.gif)

Group: IRC Operators
Posts: 6381
Member No.: 583
Joined: 31-August 04
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Bacteriophage @ Sep 24 2009, 07:44 PM) | RII, question.
Is basic -> functions -> arrays -> pointers -> classes -> inheritance a good order to work through learning the language?
And what's a typedef? |
typedef is easy.
after this line: the following two lines would be equivalent:
after this line:
| CODE | | typedef float bar[3]; |
the following two lines would be equivalent:
--------------------
click here to change my avatar. / gosh why are you even here lightninghacker, n.an individual who enjoys learning computer system details and how to capitalize on his or her capabilities...not a criminal. (from webster's new world hacker dictionary) |  Fedora 10 Final! Download today! | quality web comics (stories):- girl genius: adventure! romance! mad science!
- punch an' pie: try a slice of life, then swallow.
- dresden codak: most interesting comic ever
quality web comics (one-shots):- a softer world: truth and beauty bombs
- smbc: saturday morning breakfast cereal
- buttersafe: pictures and probably some words
|
"Religion is comparable to a childhood neurosis." - Sigmund Freud “It is not by delusion, however exalted, that mankind can prosper, but only by unswerving courage in the pursuit of truth.” - Bertrand Russell “To kill an error is as good a service as, and sometimes better than, the establishing of a new truth or fact.” - Charles Darwin
|
|
|
Giygas |
|

Standard Member
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif)

Group: Members
Posts: 910
Member No.: 4767
Joined: 24-November 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Bacteriophage @ Sep 24 2009, 07:04 PM) | int can do a lot of things that float can't. For example, an int number can be used as a counting number and be incremented/decremented as part of a for loop.
int also takes less memory.
floating-point numbers (aka float) are more precise, but take more memory and are more difficult to work with in counting operations. They can also **** up logical operators since processors always have some degree of inaccuracy in floating-point calculations.
also if you're going to use decimal numbers I personally suggest double. There's still inaccuracy but there's less of it. |
Oh alright, thanks for clearing that up. I guess in future programs that don't require decimals i'll use int, otherwise, for things like calculators i'll stick to Doubles. Speaking of calculator's,  This is neat stuff :D
|
|
|
Bacteriophage |
|

injustice anywhere is a threat to justice everywhere
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif) ![Super Submitter Badge [*]](https://archive.mfgg.net/html/badges/submissions.gif) ![Super Reviewer Badge [*]](https://archive.mfgg.net/html/badges/reviews.gif) ![Sprite Comp Winner Badge (3) [*]](https://archive.mfgg.net/html/badges/scg3.gif) ![Sprite Comp Runner Up Badge (5+) [*]](https://archive.mfgg.net/html/badges/scr5.gif)
![Sprite Comp Top 5 Badge (5+) [*]](https://archive.mfgg.net/html/badges/sct5.gif) ![Drawing Comp Runner Up Badge (1) [*]](https://archive.mfgg.net/html/badges/dcr1.gif) ![Drawing Comp Top 5 Badge (2) [*]](https://archive.mfgg.net/html/badges/dct2.gif) ![Minigame Comp Third Place Badge (2) [*]](https://archive.mfgg.net/html/badges/mct2.gif) ![MFGG Awards 2006 Winner [*]](https://archive.mfgg.net/html/badges/award06.gif)
![MFGG Awards 2007 Winner [*]](https://archive.mfgg.net/html/badges/award07.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif) ![KFC Badge [KFC]](https://archive.mfgg.net/html/badges/kfc.gif)

Group: Members
Posts: 10716
Member No.: 2411
Joined: 31-July 06
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
--------------------
|
|
|
OniLink10 |
|

C++ Programmer, Unofficial Physicist, and Unofficial Chemist
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Giygas @ Sep 24 2009, 05:00 PM) | | Okay, so after wondering why my calculator doesn't support decimals, I realised that using float in place of int works. So, is Float just int with decimals? If so, why is int even there if float is better anyways? |
int is an Integer, so it allows you to use only Non-decimal numbers. It is typically more accurate than Floating Point numbers when it comes to integers, and uses less memory and CPU time. Integers also have the advantages that Phage listed. Float is a Floating Point Number, so it allows you to use decimal numbers. Float is usually more accurate than int when it comes to floating points, but it uses more CPU and Memory.
--------------------
| QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM) | did you try hello's engine
make sure to not ****ing change anything before using it! |
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0853 ] [ 13 queries used ] [ GZIP Enabled ] [ Server Load: 1.27 ]
| |