- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 C/C++ printf,scanf 中的 “*”
1、scanf("%*d %d",&n); //控制端若是输入123 456 则忽略123 把456读入到n变量中 %*在scanf中相当于忽略对应的输入 2、printf("%*d",5,10);//输出 10,在输出的10前面补了3个空,在这相当与printf("%5d",10); 作用是设置输出占位大小 ...
2018-01-30 14:14:34
296
原创 仿list 中的merge()
#include #include using namespace std; template void merge(list& List1,list&List2) { list::iterator t1,t2; t1 = List1.begin(); t2 = List2.begin(); T t; while(t1 != List1.end() && t2 !=List2
2018-01-16 15:54:38
376
原创 string类的简单实现
//------------------------------------------------------------------ //FileName : String.h //Author : Younger //description : Over write the string class //Date : 2016/07/13 //Referent : http://blog.c
2016-07-15 13:51:36
201
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人