Thread: c to c++ convert

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Which is equal to what in C?
    This?
    cvMoments(imgYellowThresh, moments, 1);
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    That's a big difference.

    ourMoment=moments(imgYellowThresh); //calculat all the moment of image
    cvMoments(imgYellowThresh, moments, 1);

    This isn't about C and C++ differences; it's more about what you have written is nonsensical and makes no sense (in C++).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    7
    I don't know much abt c++ code but I found it some where in net.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can C# convert to C++ 6
    By xing1987 in forum C++ Programming
    Replies: 3
    Last Post: 01-26-2011, 02:46 PM
  2. convert from c to cpp
    By shaolin in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2009, 01:31 PM
  3. Convert
    By matrixhelp in forum C++ Programming
    Replies: 1
    Last Post: 03-11-2008, 12:36 PM
  4. Want to convert -ve value to +ve
    By hYph3n in forum C Programming
    Replies: 2
    Last Post: 09-05-2006, 01:52 AM
  5. Convert WAV to MID
    By E i F x 65 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-20-2002, 02:17 PM