About 284,000 results
Open links in new tab
  1. Converting a C++ class to a C struct (and beyond)

    May 3, 2011 · There are actually compilers that compile from C++ to C. The output is not meant for human digestion, though, see How to convert C++ Code to C.

  2. std::transform - cppreference.com

    Feb 12, 2025 · std::transform applies the given function to the elements of the given input range(s), and stores the result in an output range starting from d_first.

  3. std:: transform - C++ Users

    Applies an operation sequentially to the elements of one (1) or two (2) ranges and stores the result in the range that begins at result. Applies op to each of the elements in the range …

  4. How to Transition Your Code from C++ to C - CodeConverter

    Convert C++ I/O operations to C-style I/O functions such as printf and scanf. Ensure all code is compatible with the stricter type checking in C. Example Code Conversion. Below is an …

  5. C++ Transform: Practical Guide. The `std::transform` algorithm in C++ ...

    Oct 14, 2024 · By understanding its various forms and potential pitfalls, you can use `std::transform` effectively in your C++ projects, from simple data transformations to complex …

  6. How to convert a class to another class type in C++?

    Sep 14, 2021 · Class conversion can be achieved by conversion function which is done by the use of operator overloading. A source class can be converted to a destination class by using a …

  7. How to properly port C++ classes to C? : r/C_Programming

    Jul 9, 2021 · My "base class" was called DrObject, and every DrObject structure had a pointer to a DrObjectClass structure, and the Class structure had pointers to about a dozen functions: …

  8. On creating (and using) a transforming iterator - The Old New Thing

    May 23, 2023 · For example, you might be a library that wants to support C++17 or even C++14. You can take the original iterator and wrap it inside another iterator that overrides the * …

  9. How to transform C++ code into C in an elegant way

    Sep 22, 2012 · Here is a simple conversion from C++ to C. This method allows for stack objects, like how you use ns::Sum. As a note, you should also have a release function that cleans up …

  10. UML-to-C++ transformations description - IBM

    The UML-to-C++ transformation invokes a JET transformation to generate the C++ code. You can create an overriding JET transformation and modify the templates in that transformation to …

  11. Some results have been removed
Refresh