Sunday 18 August 2013

Convert a string from Java to C++

Convert a string from Java to C++

I have this string in Java:
String op="text1 "+z+" text2"+j+" text3"+i+" "+Arrays.toString(vol);
where "z", "j" and "i" are int variables; "toString()" is a function
belongs to a class.
calss Nod
{
private:
char *op;
public:
char Nod::toString()
{
return *op;
}
}
and "vol" is a vector of int variables.
and I want to convert it in C++ language.
Can you help me please?

No comments:

Post a Comment