Is Xcode's stdC++ compatible with C?

Discussion in 'Mac Programming' started by iamvincent, Apr 25, 2010.

  1. iamvincent macrumors member

    Joined:
    Feb 6, 2010
    #1
    I used to program in C, but lately wanna learn C++. Can anyone please lemme if I choose stdC++ library in XCode, is it compatible with C, I mean, can I still code using C's commands alone using C++? THX
     
  2. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    It would really, really help if you tried to formulate your questions in complete sentences in correct English. I have a rough idea what you are intending to ask, but I'd rather know for sure.

    In your case, you should assume that C and C++ are not compatible. Mixing C and C++ (and adding a sprinkling of Objective-C and Objective-C++) will (only) work just fine if you are careful and know what you are doing.
     
  3. iamvincent thread starter macrumors member

    Joined:
    Feb 6, 2010
    #3
    Thank you and sorry for the language used in the original post, i didn't quite feel myself today... I took a look at my original post and didn't understand it either..... but you got it right!

     

Share This Page