摘要:
int i, x, y, z; for (i = 100; i < 1000; i++) { x = i % 10; y = i / 10 % 10; z = i / 100; if (x * x * x + y * y * y + z * z * z == i) cout << i << endl 阅读全文
摘要:
常规QString拼接字符串我们是这样写的 QString s = QString("My name is %1, age %2").arg("zhangsan").arg("18"); qDebug() << s; // "My name is zhangsan,age 18" Python的fo 阅读全文
摘要:
如图,在编译代码时,出现报错:RC1004 unexpected end of file found 原因是,cpp最后要多一行才行,不然就会报这个错误 错误示例: int main() { return 0; } 正确示例 int main() { return 0; } // 在最后在留一行,这 阅读全文