How to use string?

How to use string?

BY 06 Jan 2017 Native Application Development

I have 4 question about string.

 

I’m using tizen studio and my native app consist of each one main.c and main.h.

For text, I only used unsigned char.  As far as I know, Tizen support C++ string and Tizen::Base::String.

But I can’t declare String, string and Tizen::Base::String.

My main.h have #include <string.h>.

How can I use both c++ string and tizen string(Tizen::Base::String) in my project?

 

And my main.c is c file.

When I change main.c to main.cpp, there are error.

There are any way to chage c to cpp?

 

Tizen::Base::String support c? or only c++?

 

Android and c++ string is class.  Tizen::Base::String is also a class?  There are any site for tizen variable?  In this site, I can see only methods.

Written by