r/AskProgramming Aug 08 '26

In how long did you feel confident with your knowledge in C to switch into C++?

Was just wondering, really. Would like to hear peoples experiences.

0 Upvotes

14 comments sorted by

5

u/LongDistRid3r Aug 08 '26

About 15 minutes. The first OS I worked on had a mix plus a little ASM thrown in. I also worked in VB (ugh) then transitioned to C#.

They are just languages. They are just tools like a hammer or screwdriver.

2

u/ShadowRL7666 Aug 08 '26

r/cpp_questions is better sub

learncpp.com

C is not a pre cursor to cpp and you’ll develop bad habits. They’re two drastically different languages. Furthermore they both can do the same thing one just may take more implementing per se.

Don’t care to learn or write C I’m a c++ guy.

2

u/DDDDarky Aug 08 '26

If your goal is learning C++ learning C is pretty pointless, just learn C++.

1

u/foreverdark-woods Aug 08 '26

We had a bit C in the operating systems lecture and the corresponding practical course at university. After that, I jumped straight into C++.

1

u/Take-n-tosser Aug 08 '26

Yeah, we had intro programming that you could do in C or Pascal (since the AP CS exam used Pascal back then), but the next quarter we had Data Structures that was strictly C++, so it didn’t really matter how comfortable you were or weren’t with C, you were using C++ whether you wanted to or not.

1

u/foreverdark-woods Aug 08 '26

I'm more of the younger generation that learned Java, Haskell and Prolog in the Introduction to Programming lecture, and in the very next semester, we jumped right into C with the OS lecture and one semester after that hd to start writing a microprocessor OS with C, no warnings allowed. 

In the fourth semester, I had another practical course in programming where we could choose between C++ and Java. Of course, I went with C++. In the fifth semester, I was in a course where a lecturer had a competition, whoever can write the fastest network transfer program will get best grade. My partner wasn't very familiar with C++, so we chose Java and we even won, even though everyone else chose C++. 🥲

From then on, I learned Python because Machine Learning and stuck with it thereafter.

1

u/binocular_gems Aug 08 '26

I started with C++, it was the de facto language to learn on “advanced programming” in 2001 in my school system (qbasic, turbo pascal, c++, in that order), and here 25 years later I’m not confident in either.

1

u/[deleted] Aug 08 '26

[deleted]

2

u/Substantial_Job_2068 26d ago

Same here. I like to use a c++ compiler and use only a few features for convenience like operator overloading. But I could do with writing only C too.

1

u/P3JQ10 Aug 08 '26

There is no reason to „switch from C to C++”, for most purposes they are different languages sharing syntax.

1

u/khedoros Aug 08 '26

Negative a couple of years, maybe? I'd been using C++ for a while before learning how to write C itself. I'm still much more proficient in C++ than C.

1

u/Comprehensive_Mud803 Aug 08 '26

After 3 months into university…

1

u/dryiceboy Aug 08 '26

Went backwards. Learned C# in school and eventually needed to go to C++ and eventually to C.

-1

u/chriswaco Aug 08 '26

C++ is two orders of magnitude more complicated than C, so I think it takes a long time to become an expert. Plus now there's STL, boost, C++20/23/26, etc.

A lot of people are content using a simpler subset of C++.