|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (6 bit)
|
I try but can't get anywhere...
I've tried to learn C++ for a while, but always give up because I can't understand an important thing, If possible can anyone be able to recommend me to a FREE compiler and be able to help me with the theory behind it all. I can never understand and remember commands if I don't know the theory, or its obvious what they are.
Thanking you in advance... Timothy Pollock |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Hi Tim,
What IDE/compiler have you been using so far? Sometimes starting out with notepad and command line compilers can be confusing. Have you used Dec-C++? I havn't programmed any C++ in almost year (doing all Java now, very close to C++), but I'll try to answer any questions, so just feel free to ask.
__________________
"A witty saying proves nothing." - Voltaire |
|
|
|
|
|
#3 |
|
Member (6 bit)
|
Thanks, but if anyone knows where any tutorials are, could they post it. Also I dont understand variables...
IF THEN and all those, I really dont understand. Could you help me to understand them please. Thanx again Timothy Pollock, |
|
|
|
|
|
#4 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Hi Tim,
http://www.cprogramming.com/tutorial.html There are a long list of tutorials that should help. It starts out with the basics and moves on. Regarding the specific questions: Variables It's very simple. A variable (or var) is just a way to store "information." For example, Code:
int num = 5; num This is the name of the varible, you can name it whatever you like as long as it's one word (no spaces) and it's not a pre-defined C++ word like int. = 5 This gives the variable a specific value. You do not need to give it a value right away when you create the variable. You can just say Code:
int num; Code:
num = 5; if statements are exactly how they sound: if someting is true, then do something else. Some languages use then to specify what to do, but C++ already assumes that you want something else to happen. For example: Code:
if (a == 1) cout << "foo"; // only does this if the condition (a == 1) is true else cout << "bar"; Code:
if (a == 1) cout << "foo"; // only does this if the condition (a == 1) is true cout << "bar"; Always remember: Code:
a = 1; // assigns the value 1 to the variable a a == 1; // tells you if a is equal to one, either true or false |
|
|
|
|
|
#5 |
|
Member (6 bit)
|
foobar???
Doesn't foobar mean Fooed Beyond All Recognition... I find this programming to be a tad bit vulgar, but nuffing i can do about it. JAFO is what i am isn't it? |
|
|
|
|
|
#6 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
LOL
"foo" and "bar" have become common programming terms for dummy variables. Take any programming class the the teacher will use the word. |
|
|
|
|
|
#7 |
|
Member (10 bit)
Join Date: Mar 1999
Location: Random
Posts: 997
|
The best thing to do to learn programming is to find someone that knows it and constantly bug them until they teach you. Most of those C++ for idiots books are okay, but programming requires a different frame of mind, especially after you move past procedural C and into object oriented C++ and Java. These books just cannot compare to a live person who can tell you what is wrong with your program.
Deitel and Deitel's C++ How to Program is one of the favorites, but to tell you the truth, I always use those kinds of books as a reference, not to learn from scratch. Explaining concepts is always best done by a person. Respectfully, Demosthenes |
|
|
|
|
|
#8 |
|
Member (6 bit)
|
My small prob is... I don't know neone who knows any programming languages. :-( I live in an FUBAR area. I liked looking at and working out Boolean algebra... I thought that was fun (for maths).
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|