2023年2月20日

摘要: 又比如说char* str = "Hello world";这个也是错的,为了兼容,VC新版本可能会警告,或者报错。因为"Hello world"这个字符串是不能改变的,你不能用str[0]='h'来把它改成"hello world"。所以正确地写,应该是const char s[]="Hello 阅读全文
posted @ 2023-02-20 23:46 shenhshihao 阅读(50) 评论(0) 推荐(0)
摘要: #include <iostream>#include <fstream>#include <string> //头文件引入#include <stdio.h>#include <conio.h>using namespace std;class Objects //大类{public: //公共权 阅读全文
posted @ 2023-02-20 19:20 shenhshihao 阅读(76) 评论(0) 推荐(0)

导航