1 Star 0 Fork 0

konica/cpp

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
const_char.cpp 338 Bytes
一键复制 编辑 原始数据 按行查看 历史
konica 提交于 2018-02-22 10:17 +08:00 . dsf
#include <iostream>
using namespace std;
int main()
{
const char *names[2] = {
"syy",
"lmh",
};
for (int i = 0; i < 2; i++)
{
names[i] = "132";
cout << names[i] << endl;
}
const char *str_1 = "1243";
cout << str_1 << endl;
str_1 = "12sa"; // 可以修改
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/konica/cpp.git
git@gitee.com:konica/cpp.git
konica
cpp
cpp
master

搜索帮助