Staredit Network

Staredit Network -> Computers and Technical -> Floundering in C++.
Report, edit, etc...Posted by Forsaken on 2006-02-08 at 22:47:15
Well, I am trying to learn C++. From what I've read, and who I have spoken too, it is a good language to start with. I have purchased 2 books on C++, but I was wondering if there is anything else I should do.

Reason I am making this thread is, it's hard to sit there and just read through a book on how to do something. I mean, I can do it. I just want to know if there is anything a little more "hands-on"? If there is, maybe you can point me in the right direction.

What I am looking for, is a more visual approach to C++. If that is even possible...
Report, edit, etc...Posted by Snipe on 2006-02-08 at 23:32:48
I thought this was a college course. People in my grade talk about it all the time and i don't understand how they know. My brother and his friend are taking it in college.. so what's the deal.


Look at college courses. I don't know of any sites. Maybe you could take a night course, or weekend or... summer at a community college.
Report, edit, etc...Posted by Kashmir on 2006-02-09 at 00:04:11
C++ is a language that can be learned at any time. They tend to teach it to you in college if you did not learn it on your own simply because it is complex and ustilizes much of the math your supposed to have learned throughout high school.

I would suggest getting the book: C++ demystified by Jeff Kent. I was skimming through it at barnes and nobles and it seemed quite interesting. By the way, what editor/compiler are you going to use?
Report, edit, etc...Posted by RexyRex on 2006-02-09 at 00:14:00
http://msdn.microsoft.com/vstudio/express/visualc/download/
This is a free, great program by our beloved Microsoft.

I've learned a lot from the program alone.
Report, edit, etc...Posted by Forsaken on 2006-02-09 at 09:37:18
QUOTE(Euro @ Feb 8 2006, 09:04 PM)
C++ is a language that can be learned at any time. They tend to teach it to you in college if you did not learn it on your own simply because it is complex and ustilizes much of the math your supposed to have learned throughout high school.

I would suggest getting the book: C++ demystified by Jeff Kent. I was skimming through it at barnes and nobles and it seemed quite interesting. By the way, what editor/compiler are you going to use?
[right][snapback]422970[/snapback][/right]

Haha... I purchased that exact book. As well as C++ for Dummies.

As for the compiler, I am using Dev-C++.


QUOTE(RexyRex @ Feb 8 2006, 09:14 PM)
This is a free, great program by our beloved Microsoft.
[right][snapback]422972[/snapback][/right]

wink.gif bleh.gif
Report, edit, etc...Posted by Merrell on 2006-02-09 at 19:03:55
All the freaking programs for microsoft require service pack 2. That pisses me off.
Report, edit, etc...Posted by Kashmir on 2006-02-09 at 19:16:53
I have those books and more.
Report, edit, etc...Posted by Pie_Sniper on 2006-02-09 at 19:33:35
Psh, books are for nubs wink.gif (seriously, I have one worthless book and a giant reference book). They're probably good but I don't read them smile.gif. I'd recommend joining this site. It's down right now though.

» As for the compiler, I am using Dev-C++.
Dev-C++ for the win!

» C++ is a language that can be learned at any time.
I agree with Euro, you could learn C++ extremely early, learn it way later on in life, and anywhere inbetween.

» What I am looking for, is a more visual approach to C++.
What do you mean by "visual approach," exactly? Well, jumping in and coding and running into thousands of problems and errors is a great way to learn wink.gif.

And why should C++ be a college course? You could learn it before they even start teaching it (as I have), and they offer it in highschool where I live.
Report, edit, etc...Posted by Forsaken on 2006-02-09 at 22:39:40
Question about Dev-C++ :

When you are done compiling and everything works alright... I launch the program, and enter the right information... As in, the prompt asks me for my age. I enter "63". It should tell me, I need to pay for it. Instead, I hit enter, ant I exit out of the window... Here is the code:

CODE
//
//
#include <iostream>
using namespace std;
int main(void)

{
             int age;
                 cout << "Enter your age: ";
                 cin >> age;
                 if (age > 12)
                    if (age >=65 )
                       cout << "YAY! You = teh free!";
                    else
                        cout << "H4x!11! j00 n33|) 70 P4Y11!1";
                    else
                        cout << "j00 are teh OLD, so j00 get in for teh free!11!";
                    return 0;                    


}




Report, edit, etc...Posted by CheeZe on 2006-02-09 at 23:46:36
Why do you have two "else" statements?

I think Dev-C++ requires a cin >> ""; at the end so that the program won't exit by itself. Don't remember if there was another one that you were suppose to use (haven't touched C++ in a long time).
Report, edit, etc...Posted by KckKryptonite on 2006-02-10 at 00:19:28
C++ is a pain in the @$$ to learn, you really need a lot of time on your hands.
Report, edit, etc...Posted by Forsaken on 2006-02-10 at 00:49:59
QUOTE(CheeZe @ Feb 9 2006, 08:46 PM)
Why do you have two "else" statements?
[right][snapback]423576[/snapback][/right]

Because there are two "if" statements.

If you are 12 and under, you get in free. If you are 65+ you get in free. Everything else = pay to get in.
Report, edit, etc...Posted by BeeR_KeG on 2006-02-10 at 17:28:02
>Moved to Programming
Report, edit, etc...Posted by Doodle77(MM) on 2006-02-10 at 18:27:07
For all ye who hate Microsoft and their crap there is GCC, but it has no GUI support.

note, if its a console program you need to run it in a console window or else it brings up a console window that closes when the program exits.
Report, edit, etc...Posted by Kashmir on 2006-02-10 at 18:59:46
when he says visual approach he means pictures and such.
Report, edit, etc...Posted by Forsaken on 2006-02-10 at 19:26:59
I meant something like wxWidgets.

ANd I found out the answer to my question. tongue.gif

I though it was all "DOS" type editing. Then I found out I was wrong...
Report, edit, etc...Posted by Doodle77(MM) on 2006-02-10 at 20:04:48
holy shiz, dev-c++ is free!!
Report, edit, etc...Posted by Kashmir on 2006-02-10 at 20:41:28
holy shiz, it sucks compared to visual c++ .net and visual c++ 2005
Report, edit, etc...Posted by RexyRex on 2006-02-10 at 21:14:18
That's what I said.
Report, edit, etc...Posted by Pie_Sniper on 2006-02-10 at 21:39:57
Just throw in a std::cin.get(); before return 0;
And, the if statement is messed up. It needs brackets to hold more than one statement (not to mention much easier to follow):
CODE

if( true )
{
 //Do stuff
 //Can do more stuff
 //Oh look unlimited lines can go in here
}
else
 //Only one :(


Won't make any sense until you've learned C++'d!
Report, edit, etc...Posted by Gradius on 2006-02-10 at 22:55:18
QUOTE(RexyRex @ Feb 8 2006, 11:14 PM)
http://msdn.microsoft.com/vstudio/express/visualc/download/
This is a free, great program by our beloved Microsoft.

I've learned a lot from the program alone.
[right][snapback]422972[/snapback][/right]


I use that program. But Visual c++ express is worlds different from c++. Plus nothing compiles correctly so you cant learn how to program from it.
Report, edit, etc...Posted by Shmeeps on 2006-02-10 at 23:03:32
It does if you do it right. Visual C++ Express introduced what XHTML is to HTML. You can get away with a lot more things in a normal C++ compiler (Say, MSVC 2003) than in 2005 Express. It's just a lot stricter.
Report, edit, etc...Posted by Doodle77(MM) on 2006-02-10 at 23:15:59
QUOTE(Euro @ Feb 10 2006, 08:41 PM)
holy shiz, it sucks compared to visual c++ .net and visual c++ 2005
[right][snapback]424135[/snapback][/right]

But then you realize that that cost money.
Report, edit, etc...Posted by Shmeeps on 2006-02-10 at 23:59:58
Well for one, getting something like MSVC 2003 is worth it.

Also, it's free if you know where to look wink.gif
Report, edit, etc...Posted by T-MaStAA on 2006-02-11 at 00:45:52
Uh oh. im taking C++ in grade 10 and since I read all your chit chat, I think im farked.
Next Page (1)