Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 目标C中的字节数 我试图在VisualC++中声明一个字节: static CONST BYTE NEW_REGISTRATION = 0x30;_Objective C_Xcode_Char_Byte_Nslog - Fatal编程技术网

Objective c 目标C中的字节数 我试图在VisualC++中声明一个字节: static CONST BYTE NEW_REGISTRATION = 0x30;

Objective c 目标C中的字节数 我试图在VisualC++中声明一个字节: static CONST BYTE NEW_REGISTRATION = 0x30;,objective-c,xcode,char,byte,nslog,Objective C,Xcode,Char,Byte,Nslog,但在目标C中,我这样做: const char NEW_REGISTRATION = 0x30; NSLog(@"output here = %C", NEW_REGISTRATION); 我的输出似乎很简单 此处的输出=0 这是一个编码问题还是我的输入错误?Ascii0x30表示0字符。尝试使用其他工具,例如0x35。见表:

但在目标C中,我这样做:

const char  NEW_REGISTRATION                = 0x30; 
NSLog(@"output here = %C", NEW_REGISTRATION);
我的输出似乎很简单

此处的输出=0


这是一个编码问题还是我的输入错误?Ascii
0x30
表示
0
字符。尝试使用其他工具,例如
0x35
。见表: