Sign in to follow this  
Landon Patmore

Need C++ Help

Recommended Posts

[url="https://www.google.com/search?sourceid=chrome&ie=UTF-8&q=c%2B%2B+tutorial"]Here's one.[/url] :)

On a less facetious note, that's a really big question. I wish I could recommend a book for you, but I've never read a programming book. I seriously just googled things about C++ and went through all the tutorials I could find, so I might sound like a jerk with that link, but I seriously mean it.

Share this post


Link to post
Share on other sites
[font=arial,helvetica,sans-serif][size=4]the real thing we need to know is, what experience do you have in programming...

if it's none, I wouldn't recomend C++ as a first language, It's amazing, but, it's best to start un object oriented and work your way up. Maybe learn C, then java (java next as it is allot more forgiving than C++ is)

[url="http://www.cprogramming.com/tutorial/c/lesson1.html"]this[/url] is a good starting point to learn C.

if you have experience in programming basics, then I can recommend a text book I used as a student.

[url="http://books.google.com.au/books/about/C++_Programming.html?id=Kvp2GX-OYqMC&redir_esc=y"]C++ Programming: [/url][color=#333333][url="http://books.google.com.au/books/about/C++_Programming.html?id=Kvp2GX-OYqMC&redir_esc=y"]Program Design Including Data Structures[/url] [/color][/size][/font]
[font=arial,helvetica,sans-serif][size=4][color=#333333](ISBN-13: [/color][/size][/font][left]9780538798099) (ISBN-10: 0538798092)[/left]


[color=#333333]the best thing to do is write your own assignments, for example, make a data system for a library (store books, people, lending info in classes (try to keep in mind data abstraction, it will help you in this)) so that a user console can enter data into the system and check current loans/people/book status[/color]

Share this post


Link to post
Share on other sites
[quote name='falconmick' timestamp='1333735190' post='4928846']
[font=arial,helvetica,sans-serif]if it's none, I wouldn't recomend C++ as a first language, It's amazing, but, it's best to start un object oriented and work your way up. Maybe learn C, then java (java next as it is allot more forgiving than C++ is)[/font]
[/quote]
At first I was agreeing with you, and then I was shaking my head by the end. C++ is an amazingly [i]terrible[/i] language (for beginners). C is pretty bad too, it just has a couple less convoluted parts in the language.

C++ (and C) are indeed bad choices for a first programming language. If you're just starting out, I'd recommend something like Python, Haskell, or C#. Personally, I love C#.

You might be wondering what's so bad with C and C++ for beginners. Here's an example that compiles just fine, and yet it does something terrible. Forcing beginners to watch out for things like this while trying to learn the fundamentals of programming is a good way to confuse the crap out of them. What's worse, the compiler won't tell them they're doing anything wrong. And when they run the program, who knows what will happen? No one. Heck, it could even print out "hello". It'll probably crash, but the fact is that in C and C++, if you write wrong code, you may not know it for years down the road when suddenly the system starts crashing and you have to figure out why. Have fun with that.

[code]#include <iostream>

int main()
{
std::cout << 37 + "hello" << std::endl;
}[/code]

[url="http://www.radford.edu/ibarland/Manifestoes/whyC++isBad-printable.shtml"]And here's a link for reading.[/url]

Share this post


Link to post
Share on other sites
That is ungenerous, I think. C/C++ just have a different philosophy than some other languages... It provides a lot of power to the programmer, and efforts to stay out of their way. Sometimes, "dangerous" or odd things turn out to be really clever, if you know what you're doing. C++ doesn't hold your hand. It gives you the tools to do incredible things, but if you choose to or are ignorant, it won't stop you from shooting yourself in the foot.

C++ also allows you flexibility that, say, Java doesn't give you. C++ doesn't force you into OO all the time. It provides the tool for you to use, and it is up to you to use it. If you take it easy and attempt not simply to use the things it gives you but to [i]understand[/i] the tools it puts at your disposal, C++ is a fine language both to learn and to use. Ultimately, though, we all have our own preferences, which is why these arguments on what is the right language to start with never go anywhere.

Share this post


Link to post
Share on other sites
ok, well, I'm not trying to start a debate, I just think that C was a good starting language as it is a good way to decide if you want to be a programmer, it's unforgiving, it won't baby sit you, it will show you the most lowest form of data abstraction in programming, well, kinda, haha :) also C is amazingly fast, sometimes companies still C coders

Share this post


Link to post
Share on other sites
C++ is a fine language to learn. I teach C++ programming to high school students as a first language.

You do not need to learn C first. In fact, learning C first can be a handicap.

I introduce programming to the students using [url="http://www.stroustrup.com/Programming/"]Programming -- Principles and Practice Using C++[/url]. This book teaches programming, while using C++ as the example language. Learning the techniques of problem solving with programming is key to learning to program. C++ is the language of choice for this book.

Good luck and Enjoy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this