How do I convert C to CPP?

Trường Phan

New member
How do I convert C to CPP?
Answer
Example
  1. Rename the source file. …
  2. Wrap any application header files. …
  3. Declare C linkage for any globally visible data or functions provided by the source file. …
  4. Modify the build system to compile the new C++ source file. …
  5. Compile the source file alone to identify keyword conflicts and casting errors.
 

Tìm kiếm

Back
Top