Jump to content

Photo

Is C++ easy if you know C?


  • Please log in to reply
8 replies to this topic

#1 seakingtheonixpected

seakingtheonixpected

    Gigabyte

  • Members
  • 986 posts
  • LocationSomewhere beyond the sea

Posted 22 April 2014 - 12:02 AM

So I'm trying to sort out some of my classes for next year and I've been thinking about dropping my C++ class in favor of a different elective.

 

The thing is, I need to know C++, there is a very good chance I'll be using it in the job market, but I'm not sure if taking it at school is worth an extra class.

 

I don't currently know C (I'll be taking that in the summer) So I can't really look into the big differences myself right now, was curious what those of you who know both think.



#2 SushiKitten

SushiKitten

    Coffee Cat

  • Members
  • 1,911 posts
  • LocationCanada

Posted 22 April 2014 - 07:14 AM

I think the big difference is C is a procedural language while C++ is an object oriented language. So if you know C++, you can definitely figure out your way around C, but probably not the other way around because you need to learn the object oriented mindset. I think another difference is that C++ has a string class while you have to build strings out of arrays of characters in C.

If the C++ course is for beginners and assumes you have no prior knowledge in programming, I don't think you'll learn much about classes and object oriented programming, so it'd be very similar to learning C. Its probably best to look up the differences and what the course teaches and decide for yourself.

#3 seakingtheonixpected

seakingtheonixpected

    Gigabyte

  • Members
  • 986 posts
  • LocationSomewhere beyond the sea

Posted 22 April 2014 - 02:17 PM

I know Java and Python currently which are both OOP languages. Think that would help?



#4 Rejected

Rejected

    Megabyte

  • Banned
  • 453 posts
  • Locationhttp://www.crackhackforum.com/user-54122.html

Posted 22 April 2014 - 04:27 PM

I know Java and Python currently which are both OOP languages. Think that would help?

of course. Since you know that you can pretty much speed-learn C++

You can learn it in less than a week


tumblr_my2mijmVhL1rb06tgo1_500.gif


#5 SushiKitten

SushiKitten

    Coffee Cat

  • Members
  • 1,911 posts
  • LocationCanada

Posted 23 April 2014 - 08:22 AM

You're golden. :) There's only a few stuff that's different between C++ and Java, like you don't always need a class for every program and a couple syntax things but I doubt you'll have much trouble transitioning.

#6 seakingtheonixpected

seakingtheonixpected

    Gigabyte

  • Members
  • 986 posts
  • LocationSomewhere beyond the sea

Posted 23 April 2014 - 01:59 PM

Alright thanks guys. I'll just skip the elective so I can take other things I need. :)



#7 theDaftDev

theDaftDev

    Kilobyte

  • Members
  • 205 posts
  • LocationParis

Posted 23 April 2014 - 02:32 PM

I learned C before C++, and yeah it would be dumb to say that C++ would be easier if you didn't know C.

I don't mean that you can't learn C++ without C, but it's funny how people tend to act as if C was more of a handicap than nothing.. 

Both languages have the same origin, actually C++ is even like an extension of the C. Knowing one of them will be a huge help when it comes to learn the other. And it works both ways.

I think the big difference is C is a procedural language while C++ is an object oriented language. So if you know C++, you can definitely figure out your way around C, but probably not the other way around because you need to learn the object oriented mindset. I think another difference is that C++ has a string class while you have to build strings out of arrays of characters in C.

If the C++ course is for beginners and assumes you have no prior knowledge in programming, I don't think you'll learn much about classes and object oriented programming, so it'd be very similar to learning C. Its probably best to look up the differences and what the course teaches and decide for yourself.

 

Actually I would say the exact opposite. It works both ways, and especially from C to C++. People need to stop talking about OOP as if it was so much of a big deal. And that's even more true if he knows Java already. The best language to get to learn C++ is C. That's how I've been doing, and how look, I use C++ everyday, I love it, and I'm alive. OOP is just a mindset, as you said it. You'll get all the keys with the habit, which is given through the training, as for anything else.


userbar.gif

 


#8 seakingtheonixpected

seakingtheonixpected

    Gigabyte

  • Members
  • 986 posts
  • LocationSomewhere beyond the sea

Posted 23 April 2014 - 05:26 PM

Well I am taking C and Unix during the summer so that isn't really an issue. Thanks for the input though, I was kind of figuring the same thing

 

well not about the OOP, but about C and C++.



#9 Username *

Username *

    Byte

  • Members
  • 16 posts

Posted 11 September 2014 - 07:40 AM

I know C and started C++, you will have a small shock when seeing ; after } and stuff like "public: " and cout<<(stuff) .But it's ok when you get used to it (around a week). In my opinion, learning C++ helps you a lot!


Religious+fanaticism_e9d588_4123667.png