C/C++ with objective C [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to put C/C++ code into Objective C programs.
What's the exact way to do that ?
I've tried many times.
So, if someone know how to that, please explain the way from zero (from a empty project) and give me some class examples ;)
(i work on Xcode 5.0.2)
Thank you !

Using XCode, rename the file extension of the files with C++ code from .m to .mm for C++.
Objective C is a superset of C, so pure C code will compile without any required changes.

Related

How do I add Lua to a C++ Project [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
1) How do I add Lua to a C++ project in microsoft visual studio 2017. I have downloaded all the Lua files but I need to Add Lua to the project properties.
2) Whats the main difference between C++ and C
3) Which language is best to create a GUI, Lua, C, C# or C++.
Thanks in advance
Questions 2) and 3) aren't really stackoverflow questions. As for 1), the book Programming in Lua does a pretty good job at explaining that, at least the basics. From there you can just read the reference and see what functions you may find useful.

Can a C++ code i wrote on eclipse IDE, run without problems on VC++ IDE? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a bit new to programming and I just wanted to know if there can be any problems if I send my C++ code I wrote on Eclipse to a friend who works on VC++?
Yes, there can be problems.
Whether the code can simply be copy/pasted to another toolchain entirely depends on how standard-compliant and portable the code is.
We cannot guess at that from here.
There should be no problem as long as you are not using any compiler-specific things, which is unlikely if you are a beginner.

convert objective-c code to c++ [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I constructed my code in objective-c for ios in-app purchasing.
There is one project needs c++ code.
Just wonder if I change iap objective-c code to c++,
is there any special point I need to notice?
Your comment welcome
You cannot use Objective-C objects in C++. But C++ can use Objective-C library with C interface. Objective-C++ can use Objective-C objects in C++ too.

Creating a python library in C or C++ [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can C or C++ be used to program a library in python? I know that python can be used to write a library but I am wondering if C or C++ can be used.
Definitely. There are lots of high performance libraries written in C (simplejson being a notable and fairly simple example.)
See http://wiki.python.org/moin/IntegratingPythonWithOtherLanguages

merge objective c project and objective c++ project [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
is it possible to merge objective c project with c++ project aurioTouchhttp://developer.apple.com/library/ios/#samplecode/aurioTouch/Introduction/Intro.html
Yes, because: There is no such thing as an "Objective-C project" or "Objective-C++ project", there are just projects that contain source files.
You can mix Obj-C, Obj-C++, C, and C++ source files all in one project, and (in general) Xcode will do the right thing. Do you have a specific problem?