python同时输入多个数赋值不同变量:
1、输入一个数字:
m = int(input())
2、输入两个数字:
m, n = map(int, input().split())
3、三个及三个以上就和两个的类似:
a, b, c = map(int, input().split())
a, b, c, d = map(int, input().split())
C++中输入多个数字时:
int main(int argc, char** argv)
{
int ROUND = atoi(argv[1]); #ROUND变量读取第一个数字并将其转化为整型(atoi将第一个数字argv[1]转化为整型)。
int BOUND_PLAIN = atoi(argv[2]);
cout<<ROUND<<endl;
cout<<BOUND_PLAIN <<endl;
}