Cha*_*den 2 cocoa struct objective-c nslog
我想知道是否可以使用descriptionCocoa框架中的函数来记录a的内容struct.例如:
typedef struct {float a,b,c;}list;
list testlist = {1.0,2.5,3.9};
NSLog(@"%@",testlist); //--> 1.0,2.5,3.9
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2945 次 |
| 最近记录: |