c++
radjedef
这个作者很懒,什么都没留下…
展开
-
c++ template 栈的实现
模版栈的头文件 感觉还是可以的#include <cstdio>#include <iostream>using namespace std;#pragma oncetemplate <typename T>class STACK { public: STACK(int capacity); ~STACK(); bool IsEm原创 2018-01-10 21:03:59 · 268 阅读 · 0 评论 -
c语言中 gotoxy() 函数的使用
#include <stdio.h>#include <windows.h>void gotoxy(int x, int y) { COORD pos = {x,y}; HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);// 获取标准输出设备句柄 SetConsoleCursorPosition(hOut, pos);//两个参数原创 2018-01-10 21:05:32 · 47310 阅读 · 5 评论 -
c++11or14
cerr&lt;&lt;"time:"&lt;&lt;1.0*clock()/ CLOCKS_PER_SEC&lt;&lt;endl;原创 2018-05-09 20:15:50 · 247 阅读 · 0 评论