10 2022 档案
实验3 数组、指针与现代C++标准库
摘要:实验任务2 string类的用法 1 #include <iostream> 2 #include <string> 3 4 int main() { 5 using namespace std; 6 7 string s1, s2; 8 s1 = "nuist"; // 赋值 9 s1[0] = 阅读全文
posted @ 2022-10-22 16:55 Terrence-Zhao 阅读(69) 评论(0) 推荐(0)
实验二
摘要:实验任务四 Complex.hpp 1 #include<iostream> 2 #include<cmath> 3 4 using std::cout; 5 using std::endl; 6 7 class Complex { 8 public: 9 //构造函数 10 Complex(flo 阅读全文
posted @ 2022-10-18 20:17 Terrence-Zhao 阅读(25) 评论(0) 推荐(0)
实验1
摘要:1.实验任务1 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 5 int main() 6 { 7 using namespace std; 8 string s1; 9 string s2{ "c plus plus" } 阅读全文
posted @ 2022-10-05 11:00 Terrence-Zhao 阅读(52) 评论(0) 推荐(0)