Results 1 to 12 of 12
  1. #1
    colton1111's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    218
    Reputation
    11
    Thanks
    12
    My Mood
    Yeehaw

    How would the transitions from Java to C++ be?

    Basically the title. I just finished a second Java course in college right now (programming fundamentals 2) and I need to take the third part of the course, but it's only in C++. We haven't done anything advanced in Java at all. Worked with single dimension arrays, used getters and setters, objects to call different classes, just simple stuff. I'm starting to learn C++ right now, but I'm worried that I won't do well in the next class since I don't have much history with C++. It probably won't take me long at all to get where I was compared to Java, but if I have two months before the next semester starts, would you expect me to be prepared in time?

    Thinking about it, I could probably just do the same assignments as the Java course but write it in C++.

    Anyway, any help would be appreciated.
    Last edited by colton1111; 07-04-2018 at 07:31 PM.

  2. #2
    gogogokitty's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    1,092
    Reputation
    113
    Thanks
    3,449
    shouldnt be to bad and since you know how to make programs in java do what you want then you should have no issue in your c++ course. the most advanced thing we did in my course(last semester) was just working with linked lists, other than that you can do everything else without a sweat probably. im going into their java course next semester lol so goodluck, was yours difficult at all? currently doing assembly atm
    LEEEEEEROY JEEEEENKINS

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,974
    Reputation
    343
    Thanks
    4,302
    My Mood
    Cheeky
    They're practically the same, the differences are very minor and easy to get the hang of. If you have any specific questions once your course starts you can always post on here and someone here will help you out.
    Ah we-a blaze the fyah, make it bun dem!

  4. The Following User Says Thank You to Hell_Demon For This Useful Post:

    colton1111 (07-05-2018)

  5. #4
    colton1111's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    218
    Reputation
    11
    Thanks
    12
    My Mood
    Yeehaw
    Quote Originally Posted by gogogokitty View Post
    im going into their java course next semester lol so goodluck, was yours difficult at all?
    Thanks for the insight. Nah, it was extremely easy... I posted all the assignments I had to do on GitHub. https://github.com/Issvor/Programmin...er/Assignments

  6. The Following User Says Thank You to colton1111 For This Useful Post:

    gogogokitty (07-05-2018)

  7. #5
    Amarto's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed
    We did nearly the same thing in my school. We moved to C first and then C++. It was kinda tough ngl since Java has so many helpful methods like getting the length of a string, for example. In C, we had to do that manually by counting the number of chars until it reached '/0', the null terminator. Things like that. You should be fine, though. Don't worry about it.

  8. #6
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,974
    Reputation
    343
    Thanks
    4,302
    My Mood
    Cheeky
    Quote Originally Posted by Amarto View Post
    We did nearly the same thing in my school. We moved to C first and then C++. It was kinda tough ngl since Java has so many helpful methods like getting the length of a string, for example. In C, we had to do that manually by counting the number of chars until it reached '/0', the null terminator. Things like that. You should be fine, though. Don't worry about it.
    C has built in functions for this as well; strlen
    I'm assuming you had to build your own to get acquainted with how C handles strings.
    Ah we-a blaze the fyah, make it bun dem!

  9. #7
    Greythorne's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    247
    Reputation
    71
    Thanks
    30
    very easy to migrate from java to c++, tlhe syntax is basically the same with a bunch of different keywords used in c++. You should be able to pick it up fairly fast and start solving some problems with it.

  10. #8
    Rmzn0's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    72
    Reputation
    10
    Thanks
    52
    Quote Originally Posted by colton1111 View Post


    Thanks for the insight. Nah, it was extremely easy... I posted all the assignments I had to do on GitHub. https://github.com/Issvor/Programmin...er/Assignments
    lol, are you in high school? xd

  11. #9
    Alfyo's Avatar
    Join Date
    Sep 2018
    Gender
    female
    Posts
    4
    Reputation
    10
    Thanks
    1
    The most important thing to learn for your Transition is the difference between Pass-By-Reference and Pass-By-Value.

    Essentially, if you pass by value, you work on a COPY of the variable;
    Likewise, if you pass by reference, you modify the actual variable you pass.
    Great example here:
    https://stackoverflow.com/a/373455


    Java uses pointers, but kind of hides them from the user. In C/C++ you have to do the dirty work yourself. Thats were most people tend to get stuck when they pick up c.

    Confused? ThenPlease check out this excellent thread:
    https://stackoverflow.com/questions/...-pass-by-value

  12. #10
    NutHead_'s Avatar
    Join Date
    Sep 2018
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    1
    My Mood
    Breezy
    I'm in the same situation as you. I'm just taking Programming concepts in c++ after having gone up to Advanced Java concepts and i'm so bored in class. You really shouldn't have any problems at all in c++ besides just learning the syntax and a few minor things.

  13. #11
    Raideon's Avatar
    Join Date
    Jan 2018
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Asleep
    I started with Java when i was learning to program for the first time several years ago, I went on to study C++ for a few years at uni after that.
    I found C++ to defiantly be a step up to Java, however, this didn't really prove a problem. If you did Java to any reasonable level you will be fine going up to C++.

  14. #12
    alissons's Avatar
    Join Date
    Apr 2019
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Yes. That should be nice

Similar Threads

  1. How Would The World Look Like Without Spam?
    By sammee:P in forum Spammers Corner
    Replies: 13
    Last Post: 09-07-2014, 06:13 AM
  2. how would one use the net library to get money from ATMs(Dark RP)
    By tjwtyler in forum Garry's Mod Discussions & Help
    Replies: 0
    Last Post: 12-26-2013, 11:13 PM
  3. Replies: 8
    Last Post: 09-30-2007, 09:57 AM
  4. [help]how would i get the superjump address?
    By fable741 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-08-2007, 08:37 AM