- 资源管理
- 事件回调
- 非阻塞io
- 事件驱动
#include <stdio.h> | |
int main() | |
{ | |
printf("%s\n",__FILE__); | |
printf("%d\n",__LINE__); | |
printf("%s\n",__TIME__); | |
printf("%s\n",__DATE__); | |
} |
首先要说的是
void MyFun(int x);
//指针表示法
void (*FunP)(int);
这个问题是在看 2003年出版的pthread的书的时候看到一个 #define 宏中间的语法
#define xxx do {
\} while(0)
其实都是宏展开闹得。
ANSI C标准中有几个标准预定义宏(也是常用的):
首先是ofo不可能内部没有数据统计,不可能不知道他们制造的自行车的质量有多差。
如果这样的企业也能够成为共享单车领域的一个巨人,我真的不知道该说什么好
其实我有点奇怪的是,为什么c++整出来这么多的语法。
右值引用自己本身就是个坑,如这个楼里的一个回答,你并不能毫无精神负担的使用它
// Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#ifndef BASE_SINGLETON_H_ | |
#define BASE_SINGLETON_H_ | |
#include "base/at_exit.h" | |
#include "base/atomicops.h" | |
#include "base/dynamic_annotations.h" |