I need to know whether I can write the whole class in C++ and use it in XCode using Objective-C?
I need to write a code to query HTML using POST method and I think the best approach is to use either C++ or C#.
Umair
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can, with C++ that is. From the chapter “Using C++ With Objective-C” in Apples “The Objective-C Programming Language” document:
Basically all you have to do is use the file extension
.mmand then you may mix Objctive-C and C++ freely (see the chapter linked to above for some exceptions).