zoukankan
html css js c++ java
Macro 小总结
如果在C++中使用Macro,要注意:
1. parameter要加括号: #define ADD(x,y) ((x)+(y))
2. result要加括号: #define ADD(x,y) ((x)+(y))
3. 多行要加花括号: #define INCREASE(a, b) {++(a);++(b);}
这里有个例子:https://github.com/fresky/MacroExample
查看全文
相关阅读:
Unique path
*Jump Game
Valid Palindrome
*Reverse Words in a String
Min Stack
[?]*Simplify Path
*Valid Parentheses
*Sqrt(x)
String to Integer (atoi)
Add Digits
原文地址:https://www.cnblogs.com/fresky/p/2584120.html
最新文章
多表数据查询
表的查询
day34作业
数据库表记录操作
感谢
第十周----例行报告
pycharm Django
android 开发 出错
第九周-----例行报告
第八周---例行报告
热门文章
感谢
Thunder团队--Alpha发布用户报告
Thunder团队Alpha周贡献分规则及贡献分分配结果
第七周-----例行报告
Codeforces Round #486 (Div. 3)-C. Equal Sums
AtCoder Beginner Contest 053
Codeforces Round #485 (Div. 2)-B-High School: Become Human
Codeforces Round #485 (Div. 2)-C-Three displays
CONTINUE...?模拟分情况
分解质因数FZU
Copyright © 2011-2022 走看看