我写了一个小小的傻程序,每当按下F12时播放一首歌,但是当我不在CMD中时,当我按下F12时它没有意识到,如果我试着用它作为.pyw它根本不做任何事情。这是代码:
std::string line;
std::getline(infile, line) //Read the whole line
{
std::stringstream ss(line);
while(ss >> coefficient >> exponent) //read the pairs
polynomialA.listInsert(coefficient, exponent);
}
std::getline(infile, line) //read another whole line
{
std::stringstream ss(line);
while(ss >> coefficient >> exponent) //read the pairs
polynomialB.listInsert(coefficient, exponent);
}