Like Tree2Likes
  • 2 Post By laserlight

porting from c++ to C and some questions

This is a discussion on porting from c++ to C and some questions within the C++ Programming forums, part of the General Programming Boards category; hello I am trying to port from C++ to C and I faced some problem. The first problem is on ...

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    1

    porting from c++ to C and some questions

    hello

    I am trying to port from C++ to C and I faced some problem.

    The first problem is on how to port map things

    for example:

    Code:
    static map<noor, water> category;
    this in c++ how to port this in C?

    Also, I found some thing like


    Code:
    bool static IsFromMe(water& aa)
    what does this & mean?

    Also

    what does this sign mean? ( :
    Code:
    bool CTransaction::ReadFromDisk(CTxDB& txdb, COutPoint prevout, CTxIndex& txindexRet)

    Thanks

    soul

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,636
    Do you really need to port from C++ to C, or can you just use the C++ version, or implement directly in C?

    Based on your questions, to do a port from C++ to C, you need to learn C++.
    iMalc and Elysia like this.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Porting to Linux
    By W6DVC in forum C# Programming
    Replies: 2
    Last Post: 08-04-2010, 10:29 AM
  2. porting to Windows, 16/32-bit?
    By cDev in forum C Programming
    Replies: 8
    Last Post: 06-05-2006, 04:09 PM
  3. Porting
    By lrusso in forum Tech Board
    Replies: 4
    Last Post: 08-13-2004, 11:30 PM
  4. Porting from g++ to VC6
    By Hubas in forum Windows Programming
    Replies: 4
    Last Post: 03-22-2003, 08:30 PM
  5. Porting app from c to c++
    By GUI_XP in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2002, 02:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21