摘要:
#include<iostream> #include<string> using namespace std; void test1(){ string s1;//默认构造 创建一个空字符串 cout<<s1<<endl; const char *s2="hello c++";//字符串初始化(c 阅读全文
posted @ 2021-01-27 19:16
大耿2844
阅读(88)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<queue>//队列容器 #include<string> using namespace std; class person{ public: person(string name,int age){ m_name=name; m_age=a 阅读全文
posted @ 2021-01-27 17:53
大耿2844
阅读(221)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; //顺序存储的循环队列 const int maxsize=5; class cir_queue{//Circular queue 循环队列 public: int data[maxsize]; int front; i 阅读全文
posted @ 2021-01-27 17:15
大耿2844
阅读(190)
评论(0)
推荐(0)