0

我有一个如下的程序结构:

int firstFunction(unsigned char *firstValue, int s, int t)
{
       CppFunction *cpp=CppFunction::create(firstValue, s, t, 0);

}

我将如何采取 NSLog 的cpp

4

1 回答 1

2

您可以记录某些值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());
}
于 2012-06-25T08:15:15.763 回答