C++
JaYLove0589
深大计软学生
展开
-
DS 链表-学生宿舍管理 深大C++数据结构题目详解
前言 大家好,我是 JaYLove0589,今天给大家带来 C++语言,数据结构的一道题目详解。这次题当初难倒了我好长时间,花了我几天几晚时间,查阅各种资源,最后才大功告成,里面满满写着我的笔记和心得。 代码 #include <iostream> #include <list> using namespace std; /// 单间寝室结点 struct SDormNode { string stuName; string dormNo; }; /// 宿舍类,原创 2021-04-15 00:40:26 · 975 阅读 · 1 评论 -
C++中string字符串和stringstream流的用法详解
前言 这是本人在学习C++过程中,发现 string 的用法繁多且杂乱,于是不断搜索各种资源,最后整理出的一篇自己的心得。 #include <iostream> #include <string> #include <sstream> using namespace std; int main(){ int n1 = 4567; string s1("1234567890abcdefg"); string s2 (s1,3,4)原创 2021-04-09 17:11:15 · 801 阅读 · 0 评论