Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
27612 | 唐心 | 字符指针的理解 | C++ | Accepted | 2 MS | 724 KB | 235 | 2022-06-07 11:18:06 |
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { int n; const char *str = "I love China!" ; //不加const 会有警告 cin>>n; str = str+n; cout<<str<<endl; return 0; }