我不是Catia宏的专家,但是我写了一个简单的代码,它在我的Catia上也可以,但是在其他计算机上却不起作用。 该宏是关于从树中删除停用的实体。请帮忙。这是代码:
std::string text_line;
for (i = 0; i < quantity; ++i)
{
std::getline(std::cin, text_line); // Read in the line of text
std::istringstream text_stream(text_line);
text_line >> x;
text_line >> name;
// The following statement will place the text_stream into an error state if
// there is no 3rd field, but the text_stream is not used anymore.
text_line >> y;
}