Java-------> C++

LostTime77

Member
Aug 18, 2005
91
0
0
I took a course at my university dealing with Java. I learned all about object oriented design and a ton of new programming techniques, which would be hard to replicate in simple C. However over the Summer I decided to make the move to C++ to make some DirectX programs, because of speed. I found it incredibly easy to learn C++ after taking the java course. Basically all I had to learn was how header files were structured and how to include them in my programs and viola, I was using C++. Besides having class definitions and the source code for said definitions in different files, I find C++ very similar to Java in terms of object oriented programming. Not only that moving to C++ has another unique "benefit". I use the quotes here because not everybody will think the same way I do. C++ offers operator overloading in classes, so its easy to say add two objects together. Object A = Object B + Object C;


LostTime77
 

presidentender

Golden Member
Jan 23, 2008
1,166
0
76
Most Java concepts translate to C++. However, there's some other stuff in C++ (header files, namespaces and whatnot) that you'll have to learn. Nothing terribly difficult.
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
like it's been said, most of the concepts translate directly over. some things that may be a pain, at least at first:

-memory management
-lower-level concepts like pointers, although they are similar enough to references
-lack of a complete, standard API to work with - many things are os-specific (GUI, sockets etc.). and differences may exist between compilers even for the "standard" stuff.

 

slugg

Diamond Member
Feb 17, 2002
4,723
78
91
Originally posted by: dighn
like it's been said, most of the concepts translate directly over. some things that may be a pain, at least at first:

-memory management
-lower-level concepts like pointers, although they are similar enough to references
-lack of a complete, standard API to work with - many things are os-specific (GUI, sockets etc.). and differences may exist between compilers even for the "standard" stuff.

^^ On the spot.

Basically, if you get a book that describes the Standard Template Library, you should be armed with all the tools you really need.

And don't forget - Visual C++ Express is free! If you're on Mac, Xcode is free! That's all you really need... don't worry about getting enterprise level IDE's.
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,095
459
126
Originally posted by: tuteja1986
i hate java :!

Go learn C# instead... most of job require C# now days. Make a cool game while your at it.

http://creators.xna.com/ >> register

http://creators.xna.com/en-US/create_detail >> watch video and its a 101 to making game.

Only all windows shops use C#. Everyone who is doing cross platform programming use C++ or Java. If you really want a job, go learn cobol. There are hundreds of companies out there who are still maintaining 1970's era mainframe computers because they wrote all their main business applications in cobol and no one knows enough to reprogram/re-write them into C++ so they can get off those old systems. Guys who know cobol inside and out are getting major $$$ re-architecting old cobol programs into a modern language. However, this will probably only last another 10-15 years or so. So make sure you learn C++ while you are at it.

And again, that is a bunch of crap about go learn C#. Its almost as bad as telling people to use VB. No one writes any kind of model or simulation using C# (things like physics, etc.,). The real work is almost always written in C++. Does that mean C++ is the best language for every job? Heck no. But I can't think of a single thing which requires the use of C#. I mean, if you are going to come up with a new language, at least make sure it does something better than other languages. Heck, at least LISP has uses which other languages can not replicate, which is why it is used (otherwise who in their right mind would ever want to go into the hell of a million ()'s?)
 

tuteja1986

Diamond Member
Jun 1, 2005
3,676
0
0
Originally posted by: Fallen Kell
Originally posted by: tuteja1986
i hate java :!

Go learn C# instead... most of job require C# now days. Make a cool game while your at it.

http://creators.xna.com/ >> register

http://creators.xna.com/en-US/create_detail >> watch video and its a 101 to making game.

Only all windows shops use C#. Everyone who is doing cross platform programming use C++ or Java. If you really want a job, go learn cobol. There are hundreds of companies out there who are still maintaining 1970's era mainframe computers because they wrote all their main business applications in cobol and no one knows enough to reprogram/re-write them into C++ so they can get off those old systems. Guys who know cobol inside and out are getting major $$$ re-architecting old cobol programs into a modern language. However, this will probably only last another 10-15 years or so. So make sure you learn C++ while you are at it.

And again, that is a bunch of crap about go learn C#. Its almost as bad as telling people to use VB. No one writes any kind of model or simulation using C# (things like physics, etc.,). The real work is almost always written in C++. Does that mean C++ is the best language for every job? Heck no. But I can't think of a single thing which requires the use of C#. I mean, if you are going to come up with a new language, at least make sure it does something better than other languages. Heck, at least LISP has uses which other languages can not replicate, which is why it is used (otherwise who in their right mind would ever want to go into the hell of a million ()'s?)

If you really wanted a job go get a CCIES :! more job offer for that than COBOL and also way higher pay.

I was only saying C# because lately i have been seeing way more jobs on the market requiring C#. C++ can easily learned after C# and it would be much easier as C# from get go is more OOD.


 

BigWinston78

Junior Member
Jul 30, 2008
7
0
0
In my mind the one thing that may require some self-teaching on if moving from Java to C++ is pointers. Also, if you're using the Visual C++ suite (which I would avoid) then you have the whole frustration of working with managed and unmanaged code.

With C#, although it is heavily based on Windows and .Net, its great for developing quick applications (which is what I use it for all the time). Its the speed of VB with C style syntax, which is also very similar to Java.

I say go with C++ for learning, and if you have a quick project to develop use C#.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Originally posted by: GodlessAstronomer
Originally posted by: tuteja1986
i hate java :!

Go learn C# instead... most of job require C# now days.

Java is still the most widely used language in industry by a fair margin.

Much depends on what industry area.

Java is rarely found in any realtime and few embedded applications

 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Originally posted by: Common Courtesy
Originally posted by: GodlessAstronomer
Originally posted by: tuteja1986
i hate java :!

Go learn C# instead... most of job require C# now days.

Java is still the most widely used language in industry by a fair margin.

Much depends on what industry area.

Java is rarely found in any realtime and few embedded applications

I would count cell phones as 'embedded', and they run all kinds of Java. Not so much in other less obvious things, e.g. engine controllers and DVD players admittedly.
 

irishScott

Lifer
Oct 10, 2006
21,562
3
0
I took 2 years of Java in High School (CS and APCS) followed by 2 (and counting) years of c++ in college. The transition was generally easy. The syntax is virtually identical. Like others have said, the main choking point is low level memory management/pointers, which takes some getting used to. Error messages are also less descriptive, and you'll need a debugger to print the backtrace of a runt-time error.

That said, learning C++ after Java is a HELL of a lot better than learning it cold turkey. I was struggling with pointers while my classmates were still struggling with syntax.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |