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 に答える