
C++
uefi_artisan
这个作者很懒,什么都没留下…
展开
-
类的构造函数和析构函数 Class Constructors and Destructors
首先要说明,这两个字中国人是乱翻译的,像这样的翻译还有很多,估计哪个砖家喝高了,duang 一下,就翻译成这样了socket 套接字handle 句柄instance 实例字典上constructor 是这样翻译的:我是查的朗文词典 没有constructor ,只有construct 加or 就是做这个的人 ,初中老师是这样教我的construct 1, t原创 2015-06-07 00:11:11 · 1329 阅读 · 0 评论 -
输入,输出 还有文件
// get_fun.cpp -- using get() and getline()#include const int Limit = 255;int main(){ using std::cout; using std::cin; using std::endl; char input[Limit]; cout << "Enter a string for getli原创 2015-08-22 12:40:41 · 422 阅读 · 0 评论 -
STL
// Demonstrating input and output with iterators.#include #include // ostream_iterator and isstream_iteratorusing namespace std;int main(){ cout << "Enter two integer: "; // create ist原创 2015-08-24 00:07:56 · 598 阅读 · 0 评论 -
C/C++ 中volatile用法
当用volatile去修饰一个变量的时候,表明这个变量很可能被其他地方修改举个例子: volatile const long clock_register; // update by the hardware clockvolatile 就是告诉编译器,不要去试图优化看起多余的读或者写操作。auto t1{clock_register};// ...no use of clo原创 2015-09-20 09:46:41 · 1698 阅读 · 0 评论 -
C/C++里面const的用法
讲在最前, const 就是read-only 的意思int main(){ int y; f( &y); // f attempts illegal modification} // end main// xPtr cannot modify the value of constant variable to which it pointsvoid f(const原创 2015-09-20 10:08:22 · 1403 阅读 · 0 评论 -
leetcode solution template
// usetime0.cpp -- using the first draft of the Time class// compile usetime0.cpp and mytime0.cpp together#include #include "mytime0.h"int main(){ using std::cout; using std::endl; Time plan翻译 2016-04-28 14:48:02 · 766 阅读 · 0 评论