私は次のようなプログラム構造を持っています:
int firstFunction(unsigned char *firstValue, int s, int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t, 0);
}
の NSLog を取得するにはどうすればよいcpp
ですか?
私は次のようなプログラム構造を持っています:
int firstFunction(unsigned char *firstValue, int s, int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t, 0);
}
の NSLog を取得するにはどうすればよいcpp
ですか?
から特定の値をログに記録できますCppFunction
。例を確認してください
int firstFunction(unsigned char *firstValue ,int s,int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t,0);
NSLog(@"Log some integers %d", cpp->SomeInteger);
//charArray[100] for example
NSLog(@"Log some char array %s", cpp->charArray);
//or for example log a string description function
//myDescription will return a custom char array description of your class
NSLog(@"Log some char array %s", cpp->myDescription());
}