Thread: porting from c++ to C and some questions

  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
    25,396
    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++.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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