C: Good Habits re: Transitioning to C++

后端 未结 13 646
梦毁少年i
梦毁少年i 2020-12-13 02:47

I\'ve been learning C at Varsity for just shy of 2months now, and next year we\'ll be moving on to C++.

Are there any habits I should get into with my C programmin

13条回答
  •  余生分开走
    2020-12-13 03:32

    The style of programing in C and C++ are entirely different. C++ is object oriented programing where as C is procedure oriented programing. C++ programing is the best in simulating real-world problems using classes/objects. But, basic concepts like pointers, structures, operators, casting operators, data handling are the same in both.. Sturctures and Classes are similar concept but not exactly.. so you can concentrate on programing using structures, pointers, operators and Memory managment while you are learning in 'C'

提交回复
热议问题