摘要:
#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
阅读(91)
评论(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
阅读(225)
评论(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
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号