Jump to content
xisto Community
SilverSoldierTT

C++ C++... a Programmers Program... Or is it?

Recommended Posts

Ok, I was tempted to put this into the PC Coding section, however I figured it was more of a question about the program than the coding... I am a pretty avid programmer when it comes to Visual Basic... Though now, I think its time to move into a little more advanced coding, and teach myself something new.From what I hear around with friends and people I know, C++ is a good program for programming, and really gets you to learn the ropes... Is this what your guys' opinion of the program would roughly be? Also, does anyone here know where I can either pick up a demo of C++, or even the full version? (stores, sites, etc)... Well, anything and everything is appreciated... Thanks alot...

Share this post


Link to post
Share on other sites

Ok, I was tempted to put this into the PC Coding section, however I figured it was more of a question about the program than the coding... I am a pretty avid programmer when it comes to Visual Basic... Though now, I think its time to move into a little more advanced coding, and teach myself something new.

 

From what I hear around with friends and people I know, C++ is a good program for programming, and really gets you to learn the ropes... Is this what your guys' opinion of the program would roughly be? Also, does anyone here know where I can either pick up a demo of C++, or even the full version? (stores, sites, etc)... Well, anything and everything is appreciated... Thanks alot...

143946[/snapback]


C++ is not a program. C++ is a LANGUAGE. Other languages for example are Java, Perl, Fortran etc etc. You write your C++ code as text in a .cpp file, and then compile it so that it is executable. Then you can run your program. An example compiler would be Microsoft Visual Studio.

 

If you want to learn C++ I suggest you find a book from the library or look at some online tutorials. As for a compiler, I got Visual Studio .NET for free as a student at my college. It's pretty much the de facto standard compiler.

 

The visual studio site is https://www.visualstudio.com/ . They should have information on how to purchase the compiler.

Share this post


Link to post
Share on other sites

You can even use free compiler from Boroloan
http://forums.xisto.com/no_longer_exists/

also you can find a number free C++ compilers over here
http://www.thefreecountry.com/compilers/cpp.shtml

if you are starting off i would suggest try to get the taste of C first and then come to C++ ppl say, u dont need to know C to learn C++ but i would say get the taste of C, for sure you will enjoy learning C++.

for C you can use Kernigham&Ritchie (The C programming language) book
and for C++ you can use a book of Lipman or stroustrup

the C book is very cheap, its a must book for any C programmer. in india its only 95Rs converted to 2 US dollar

You can also go for Thinking in C++. This book generally is downloadable. gud book worth reading

Share this post


Link to post
Share on other sites

gotcha... thanks alot... that will really help... I do not have much time at the moment, however i will have to check out both the links and some books and go from there... thanks for the help...

Share this post


Link to post
Share on other sites

From what I hear around with friends and people I know, C++ is a good [language] for programming, and really gets you to learn the ropes... Is this what your guys' opinion of the [language] would roughly be?

143946[/snapback]

Depends on what you're attempting to make.

Share this post


Link to post
Share on other sites

Depends on what you're attempting to make.

144758[/snapback]


Not when you're learning it doesn't. He wants to learn how to program. Its more important to learn good code structure and documentation, different programming conventions, object oriented programming (writing classes), different data structures like arrays, lists and trees and the algorithms that you use on them and the tradeoffs between using certain sctructures/algorithms etc etc.

 

Once you know how to program then you can worry about what you want to make and what language is better for the job.

Share this post


Link to post
Share on other sites

I self-learnt C++ after doing C for a full semester. I think knowing C might help - if you're completely new to the language, then it is likely you will not be doing Object Oriented Programming for a while... and when you look at C++ minus the objects, it's very similar to C - with changes in syntax that are not difficult to get used to. Some people might find that this simply means learning the same thing over again - it's a matter of opinion, I guess. By the way, if you're on Linux, writing the code only means that you need a good text editor (emacs and gedit offer syntax highlighting and auto indent) and compiling it is a snap, just type the command [gcc/c++ filename] from the shell. Also, you might check out topcoder.com, it is a rather nice - and popular - contest venture. If you want to test your skills, look at their sigle-round-match archive and try your hand at some of the problems. Also, their general tutorials on algorithms (quite independent of programming languages) are pretty useful.

Share this post


Link to post
Share on other sites

As far as C++ programming goes, if you are using windows i recommend visual C++ as the compiler because thats all ive ever used and its what i like. However, if you are using linux or cgywin for windows, you can write the files in emacs or xemacs and then compile with either CC or g++ and both are free. So its up to you. I used all three of those just depending what system i am on when writing code but its normally not good to mix and match if its all the same program so be careful

Share this post


Link to post
Share on other sites

thanks for those last two posts especially... yea, like I said before, I am fairly avid with VB, and am thinking of starting to self-learn C++, though after reading these last few posts, I think I will attempt to learn C first... I mean, i am not too worried about not being able to go at it like a pro, as ive got plenty of time to learn it before I would really need to use it, and I would much rather assume learn it slow, as that way I can get a better feel for what to do, etc... but yea, thanks again...

Share this post


Link to post
Share on other sites

I don't think you should dive right into C. Its best to start with a simpler language like Python. The syntax in python is much easier and C/C++ can get complicated very quickly. You also might want to take a look into javascript because it is a new industry standard.

Share this post


Link to post
Share on other sites

I don't think you should dive right into C. Its best to start with a simpler language like Python

I disagree with this. I would definitely start right into c or c++ because it really isnt very difficult to learn. When i started learning it in high school we started with c and very quickly went into c++. Plus, since you know basic you know some of the theory and understand how it is supposed to work so it shouldnt be too difficult for you to learn c or c++. It just will be different

Share this post


Link to post
Share on other sites

The learning curve for C is much bigger than python. C/C++ can be easy depending on what you are doing. It gets really complex if you actually want to dive into something in depth. Python much simpler, syntax is easy, and will eventually lead you up to C. In addition, in highschool you really don't learn anything great. Its better to stick with a simpler language until post secondary, where things really get crazy. Thats just my 2 cents, yes you can dive into C. But the learning curve is pretty big. A whole bunch of people will turn away from C/C++ because of that learning curve. If you make it through the learning curve its a breeze from there on. Cuz you will now be thinking like a computer. Yup, you're on your way to become a full fledged borg. Resistance is futile.

Share this post


Link to post
Share on other sites

Visual basic and QBasic are a whole different matter from C++, I can tell you that right now.I tried taking classes for C++ and am REALLY struggling with it. The instructors do things their own way and don't know how to teach what the book does so they don't even use it, which is ridiculous since the books cost like 100-200 dollars. If you learn it try to get it from a book, instructors that I've had only know how to teach it by throwing up programs on an overhead thing and you follow along and hopefully learn by asking them questions. C++ is probably the most complicated of the programming languages, but also can do more then others like java, cobalt, etc... If you want to get into programming it's the best one to learn I think, VB is pretty valuable too, but it'll be a handful for you to learn I'm sure, pretty complicated language.

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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.