View Full Version : any c++ programmers in here?
just wondering since i'm thinking about starting it, and well i want to know if i should start with somethign else first or if anyone knows of any good books/guides
well i know the basic languages (you know, basic, visual basic, vba, html (not really a language)) but this year i learnt Java which is a more advanced version of C++ (altho very similar to c++)...out of curiousity i am gonna learn c++ ove the summer to see the differences (done a little c programmig in my time tho). <BR><BR>as for good books i wouldl recommend andy of the 'learn programming language x in 21 days' they are wicked!!
well tnx for the help, hopefully i'll get the hang of it
#exec ihavenoideahowtoprogram.exe<BR><BR><BR><img src="i/expressions/face-icon-small-shocked.gif" border="0"><BR><BR><BR><BR><BR>i wanna learn too, im learnin vb next year
lazyrunner50
06-15-04, 02:27 PM
<br><br><< <i>Java which is a more advanced version of C++</i> >><br><br><BR><BR>...uumm no....Java is a totally different language. Java was built from the ground up as an object oriented language whereas C++ just modifies C to include some object oriented concepts. <BR><BR><br><br><< <i>i wouldl recommend andy of the 'learn programming language x in 21 days' </i> >><br><br><BR><BR>yeah, they are ok if you just want to do basic stuff with the languages, but if you get into advanced concepts they really can't help you. <BR><BR>I have not had the time to look through the whole book, and I am not sure how it would be for a newbie programmer, but the CORE Java series of books is really good. Plan on spending about $40-50 for each though.<BR><BR>The bad thing is that I didn't want to spend a lot of money when I was originally buying all the books I have for programming (ASP, PHP, C++, Java, HTML, JavaScript, Assembly, etc.) so I ended up getting the cheap books like "Learn xx language in xx days". While they helped me start the language, they are not very useful references the further into the language you go because they only have basic stuff. <BR><BR>Nova, I would suggest that if you are a total newbie to programming, start out with one of the basic books like Iceman suggested so that you don't get overwhelmed by programming in general. Once you start to learn how to program, you should probably be looking at getting the more advanced books to start off with for each new language you learn. The reason I say this is because most of the basic books assume no programming background, so there is a lot of fluff. If you already know how to program, transitioning into a new language will not be as hard, so you can start off with more advanced books (albeit ones that aren't too technical!!)<BR><BR>I would say a good measure of a programming book is to get one that is no less than about 200-300 pages but is still user friendly enough to include stuff like cartoons.<BR><BR>Also, I would say you are on the right track with learning Java. I just got my first salaried job a couple weeks ago programming Java for a little company called JP Morgan (IT budget last year $1 <u>B</u>illion!). About 70-80% of their programming is in Java. So, I guess what I am trying to say is that if a company as big as JP Morgan is willing to spend so much to program in Java, then there must be something good about the language! But really, Java is good to learn because it seems to be the way the industry is headed simply because it is protentially much more maintainable and flexiable than other languages. <BR><BR>Whew...that was a long post...hope none of you fell asleep during my lecture/advice column!!
<br><br><< <i>...uumm no....Java is a totally different language. Java was built from the ground up as an object oriented language whereas C++ just modifies C to include some object oriented concepts.</i> >><br><br>....actually java was developed using c++ (believe it or not) and is commonly reffered to as a more advanced and easier to use version of c++
lazyrunner50
06-15-04, 02:27 PM
Oops..turns out you are right Iceman...I knew the syntax of the two languages was similar but I thought I heard somewhere that Sun tried to design a completely different language.
well i'm not really a noob at programming, but i forgot most of it since the last program i wrote was over 3 years ago <img src="i/expressions/face-icon-small-sad.gif" border="0"> and as for programming languages i was thinking something around c++ java and oracle those are the main ones that i think would benefit me the most to know for teh future
<br><br><< <i>well i'm not really a noob at programming, but i forgot most of it since the last program i wrote was over 3 years ago <img src="i/expressions/face-icon-small-sad.gif" border="0"> and as for programming languages i was thinking something around c++ java and oracle those are the main ones that i think would benefit me the most to know for teh future</i> >><br><br>lol...tell me about it, the amount of times i have to re-learn a language cos i haven't used it in so long!!
i'm not even sure what the worst part is re-learning the commands or re-learning how to put everything in the right sequence so it does as its told
therealwesty
06-15-04, 02:27 PM
I actually went to school for computer programming. C++ is really not that hard to pick up on so just dive in a do it.<BR><BR>As far as the Java vs. C++ thing...<BR><BR>Java is called the more advanced/easier version of C++. This is because there are a lot of automatic tools and classes that are used for garbage collection and memory cleaning and other stuff in Java programming. C++ in the newer .NET revision is beginning to include many of the same tools, though they need to be invoked manually and are not automatc like some of the Java tools are. Bottom line though.. Any C++ programmer who knows what they are doing can modify their existing code to clean the memory and manage the garbage collection without any automatic tools and create a much faster and more efficient program.
NotMyBest2Day
06-18-04, 02:29 AM
i took a semester of c++ programming last schoolyear, and i keep up with it. at least every couple of weeks i try something else just to keep the skills up-to-date, besides that though, i saved all my sourcecodes from that class as reference files since i don't have a book anymore. i do learn things still though outside of that class and use them. i'm working on a program right now, though primitive, and calc.exe already takes care of it, but i wanted to see if i could make one of my own. Binary-Decimal-Hexadecimal converter. I've got about a fourth of it done and i'm stuck in a nested looping structure. C++ isn't really all that difficult of a programming language, so i have found. it is really straight-foward and self-explanitory..most of the time. I don't know, maybe it was the way i was taught..*shrug*
i would recommend c++ to anyone interested in learning a programming language...just for somewhere to start. I've got a book sitting on my bookshelf that I have yet to touch...1,800 pages on Perl, and a 900 page add-on to it for "Mastering Algorithms with Perl". the sheer size of the books have scared me. i should look into taking a class on Perl..in my C++ class, we didn't use books per-se..we did, but 97% of the time we didn't.
Rudegar
06-21-04, 04:29 AM
C was first came after B :) (not as in abc but as in BCTL the mother language from which it came)
then they added object orientated stuff to c and called it c++
java's syntax is much like c and c++
but java compiles to bytecode which is a bit like interpret code that basic used to use
that pretty much mean that java programs will never be as fast as c++ and other real compiled languages code
well that and the fact hat java dont have pointers
java also dont have true multiple inherence like c++ does
the latest thing is ms's c# which they hope will eat java alive
the java VM and the java compilers will most likely be writen in C++
as most programs on computers today are writen in c++
including windows itself
lazyrunner50
07-01-04, 09:12 PM
I got this email from work
Just something to ponder...
>>Did you see this in the JDJ?
>>(June 17, 2004) - "I was sick of hearing people say Java was slow," says Keith<br> >>Lea, "so I took the benchmark code for C++ and Java from the now outdated Great<br> >>Computer Language Shootout (Fall 2001) and ran the tests myself." Lea's results<br> >>three years on? Java, he finds, is significantly faster than optimized C++ in many<br> >>cases. Lea used G++ (GCC) 3.3.1 20030930 (with glibc 2.3.2-98) for the C++, with<br> >>the -O2 flag (for both i386 and i686). He compiled the Java code normally with the<br> >>Sun Java 1.4.2_01 compiler, and ran it with the Sun 1.4.2_01 JVM. He ran the tests<br> >>on Red Hat Linux 9 / Fedora Test1 with the 2.4.20-20.9 kernel on a T30 laptop. The<br> >>laptop "has a Pentium 4 mobile chip, 512MB of memory, a sort of slow disk," he<br> >>notes.
<br>
>>The results he got were that Java is significantly faster than optimized C++ in many<br> >>cases.
<br>>>"They also show that no one should ever run the client JVM when given the<br> >>choice," Lea adds. ("Everyone has the choice," he says. To run the server VM, see<br> >>instructions in the Using the Server JVM section below.)
<br>>>JDJ has agreed to post online anyone else's results as long as they use Java 1.4.2<br> >>or higher and any version of GCC that produces faster or equivalent code than the<br> >>3.3.1 I used. We encourage you to download the source and/or the binaries and<br> >>perform the tests yourself, with your favorite compiler and on your favorite<br> >>platform.
<br>>>JVM startup time was included in these results. "That means even with JVM startup<br> >>time, Java is still faster than C++ in many of these tests," says Lea.
<br>>>Some of the C++ tests would not compile. "I've never been very good at decoding<br> >>GCC's error messages," he admits, "so if I couldn't fix a test with a trivial<br> >>modification, I didn't include it in my benchmarks."
Here's the link : <a href="http://sys-con.com/story/?storyid=45250&DE=1">http://sys-con.com/story/?storyid=45250&DE=1</a>
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.