programming in c++ likes objectivec [closed] - c++

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I used objectivec for 4 years and really like it.
Just wonder if can program in c++ likes objective-c.
1. c plus thin objective layer
2. use stl(Standard Template Library <iterator>、<vector>、<list> etc likes NSObjects in cocoa)
+
standard c
+
basic c++ objective mode(Constructors and Destructors)
3. do not use complex c++ methods and pointer
If there is someone has done likes above or it is impossible/useless?
Your comment welcome

You can defintely program C++ using just the C parts, RAII/constructors/destructors, and the STL. In fact a lot of folks use C++ exactly this way.

it can be done partly, use the macro. but it makes code too strange. Suggest you see the code cocos2d-x , it just copy the code of cocos2d , but it is the c++ version. It may be helpful.
link
cocos2d-x git home

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.

Do i need to learn c before learning c++? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I started to learn C, but I realized that all i could do was to build thse console programs (correct me if i'm wrong). So, i've seen that c++ is much more "graphic", like, you can build apps and windows, and is also OOP, what makes everything easier. So, do I need to finish learning c before c++?
Also, what interested me about C was that I could program an Arduino. Can I program an Arduino with C++?
All the "graphic" things are supported by libraries, no matter in C(e.g. GTK, SDL) or C++ (e.g. QT).
And for hardware drive programming, no matter what language it is. You have to compile it into binaries so that the hardware will knows how to run. You can even create your own language if you can write your own compiler.

C/C++ with objective 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 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.

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.

Runtime add algorithm to a program [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'm creating a program that make some matrix analysis. Now i want to implement some basic algorithms but I need to allow users implement new algorithms in the future without recompile the code.
I suppose that these algorithms already exist, probably in c/c++ language.
How can I do it if I use qt?
Maybe it's better use an other programming language and why?
I suppose that these algorithms already exist, probably in c/c++ language
If that's so, one way would be to write your program capable of loading DLLs, and then your users can compile their own algorithm DLL plugins for your application.
Or if you don't expect your users to be able to compile the existing c/c++ algorithms, maybe you can do as Joachim Pileborg suggests, and add in a scripting interface.