问题:在C/C++中,是否有任何接受Unicode的系统函数? 请参见以下原因:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
// https://dev59.com/KE_Sa4cB1Zd3GeqP-0Sx
system("osascript -e \"tell application \\\"Address Book\\\" to activate\"");
return EXIT_SUCCESS;
}
system()
的返回值是否为0
,或者从您的主函数中return EXIT_FAILURE
。只有这样,生成的可执行文件才能(显然)成功完成。您可能永远不需要该返回值,但这是一个好的编程风格。 - Christian.K