C++ 重复定义问题。为什么int型的编译不报错,char*就报错说重复定义?具体情况见下文:

2025-05-09 21:55:41
推荐回答(1个)
回答1:

请使用const char* const str="hello"
再加一个const