例如:
int number1 = 1, number2= 2;
float variable = (float)number1/(float)number2;
Run Code Online (Sandbox Code Playgroud)
而不是这个,为什么我们不能只使用"浮动"一次?例如:
int number1 = 1, number2= 2;
float variable = (float)(number1/number2);
Run Code Online (Sandbox Code Playgroud) 如何以这种方式连接字符串?
例如:
char *txt = "Hello";
txt=txt+"World!";
Run Code Online (Sandbox Code Playgroud)
我尝试过,但事实并非如此.