📜  如何在 C++ 代码示例中比较两个 char*

📅  最后修改于: 2022-03-11 14:44:46.932000             🧑  作者: Mango

代码示例1
#include 
...
if (strcmp(firstSTR, secondSTR) == 0) {
    // strings are equal
    ...
} else {
    // strings are NOT equal
}