📄 exe4.30 error.cpp
字号:
#include<iostream>
#include<string>
#include<vector>
#include<bitset>
#include<math.h>
#include<cstring>
using namespace std;
//error with strcat and can't find why.
int main()
{
char *str1="hello ";
char *str2="world!";
strcat(str1,str1);
//int i=strcmp(str1,str2);
// int len=strlen(str);
// char *strEnd=str+len;
// for (str;str!=strEnd;str++)
// {
// cout<<*str;
// }
// while (*str1)
// {
// cout<<*str1;
// }
cout<<str1<<endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -