我有一个整数表示1234.I想在一个向量中逐位存储它。 所以我写了以下
MSYSTEM
但这是将@echo off
# Define the env. variable with the desired value.
set "MSYSTEM=MINGW64"
# Invoke Mintty with a login shell, which will now see the env. variable.
# Adjust the path to mintty.exe as needed.
c:\cygwin64\bin\mintty.exe -
作为一个整体传递给向量。我不想使用vector<int>arr;
int c;
while(cin>>c)
{
arr.push_back(c);
}
和所有其他扫描数字的函数作为一个字符。所以有任何这样做的方法?