📅  最后修改于: 2022-03-11 14:44:50.140000             🧑  作者: Mango
#include
#include
using namespace std;
void extractIntegerWords(string str)
{
stringstream ss;
ss << str;
string temp;
int double found;
while (!ss.eof()) {
ss >> temp;
if (stringstream(temp) >> found)
cout << found << " ";
temp = "";
}