#include <iostream>
int main() {
if ("zabc" < "def") {
std::cout << "Less.\n";
}
}
Run Code Online (Sandbox Code Playgroud)
上面的代码打印出来Less..我知道这不是char*在C++中比较s 的正确方法,但上面的代码是如何打印的Less.?
| 归档时间: |
|
| 查看次数: |
2296 次 |
| 最近记录: |