Can I take a C++ and Java programming class at the same time?

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
A little confusing, but not extremely. They are vey similar, but each has a couple of differences.

amish
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?
 

newbiepcuser

Diamond Member
Jan 1, 2001
4,474
0
0
Originally posted by: iamme
is one language harder to learn than the other?

IMHO, C++ is harder. You have to deal with more in terms of pointers, more than one base class for inheritance and debugging Visual C++, etc....

I'm not a programmer but this is what I've seen.
 

iamme

Lifer
Jul 21, 2001
21,058
3
0
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Most of it is the same. Most of the syntax is the same, all the logic is the same... Besides, if you're doing the intro classes, most of it is just learning how to think like a computer. I took a C++ class first, and then Java, and it was just hard to get used to System.out.print instead of cout (as Tyler already said), but that's really simple stuff. Most of the "guts" are identical. If statements, while, arrays... all identical or virtually so.
 

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

Do you want to do graphics/windows and such (eventually), then go C++.

Currently, Java graphics and windows using SWING are mega-slow.

If you want to do web stuff and JSP, go with JAVA.

amish

 

fonzinator

Senior member
Nov 5, 2002
953
0
0
I've taken them both. C++ was the harder of the two for me. However, the theory for the two are very similar. There are only a few minor differences and of course, the syntax will be different. You're in for hell if you are taking two full blown programming classes at once...I wouldn't recommend it to anyone. I had a hard enough time doing ONE along with all of my other classes.

Argh...I hated programming!! :confused:
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

I wouldn't take a class that was "learn how to program in XYZ language". If I had a choice between taking a class on data structures or something using java or C++, I'd probably do C++ because I don't really like java. But of course, data structures would be simpler in java, so....
 

Ranger X

Lifer
Mar 18, 2000
11,218
1
0
C++ is definitely harder. It's possible to take both classes if you're the type that can finish those labs quickly. What I found to be overwhelming were those darn labs ... they just pile up and sooner than you know it, it's time for finals. :clock:
 

iamme

Lifer
Jul 21, 2001
21,058
3
0
cool, thanks for the info, guys :)

now i'm leaning towards taking C++ this semester. if i like it, i'll look into taking JAVA later.
 

AmigaMan

Diamond Member
Oct 12, 1999
3,644
1
0
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

I'd recommend both. You'll never know when one or the other might be of help. Java was just coming out when I was in college so I did everything in C++. When I graduated I got a job doing VB (which I learned on the job BTW). I now have a job as a Java programmer (also learned on the job). One of the things my new company was trying to do was implement a third party DLL encryption utility with our web applications which are Java based and run on HPUX. They were thinking about using CGI to solve this. Instead I wrote a DLL wrapper in C++ that is accessed by our webapps via JNI. It works very well. Also gives me a little job security since no one here knows JNI (not that it was hard).
 

FrogDog

Diamond Member
Jan 12, 2000
4,761
0
0
I just got done taking C (non ++) and Java at the same time. I didn't have any trouble keeping them straight or anything like that. C was harder. Very much so.