Porting C to C++ in Four Steps
Item 39: Want to port your C program to C++? OOP in four simple steps: 1. Make `class Program`. 2. Place all functions inside class. 3. Place all variables inside class (private, of course). 4. Run `Program::main()`..
A text-based programming meme presents a deliberately oversimplified recipe for converting a C program to C++ by wrapping everything in a class and running a Java-style `main` method. The joke is that this is not idiomatic or generally correct C++, poking fun at superficial object-oriented programming advice and Java influences. It is sent as a reaction to simplistic programming tutorials or questionable code migrations.
- @ithueti / 1374 2019-10-04
- @right_wing_dev_squads / 4979 2022-09-24
- Type
- image
- Size
- 614×382 · 42.1 KiB
- Mood
- sarcastic
- Language
- en
- Added