这是Java中的这样一个字符串.
String string="abc$[A]$def$[B]$ghi";
Run Code Online (Sandbox Code Playgroud)
我想搜索位于$[*]$模式中的单词.字符串上面的结果是A,B.
char input1;
std::cout << "input1 : ";
std::cin >> input1;
int input2;
std::cout << "input2 : ";
std::cin >> input2;
std::cout << input1 << std::endl;
std::cout << input2 << std::endl;
return 0;
Run Code Online (Sandbox Code Playgroud)
我在input1写了'a',在input2写了'a'.
Ouput is like this.
input1 : a
input2 : a
a
-858993460
Run Code Online (Sandbox Code Playgroud)
我好奇......'一个'章程在十九月份是97.为什么打印-858993460?'a'不会自动转换为97?为什么?
我今天读了书.它介绍了从中缀到后缀的编码算法.有什么好处?提前致谢.
有这样的方法.
- (void)method: (CustomClass)param;
Run Code Online (Sandbox Code Playgroud)
CustomClass继承自NSObject.
我在m下面有一个变量,它是该Method方法的结构.我调用method_getArgumentType()以获取这样的参数类型:
char szArgType[100] = {0,};
Method m = ...;
...
method_getArgumentType(m, 2, szArgType, 100);
Run Code Online (Sandbox Code Playgroud)
我打印了szArgType.它打印@,但我想打印CustomClass.有没有一种很好的方法从Method运行时获取参数的真实对象类类型?
当我将原始类型int放入java中的ArrayList时,为什么原始类型int会自动更改为对象Integer?
java ×2
algorithm ×1
c++ ×1
character ×1
inputstream ×1
integer ×1
objective-c ×1
regex ×1
string ×1
wrapper ×1