超长字符串换行处理
2016-02-13 11:00
225 查看
方法如下:
char create[] =
"create table npcinfo"
"("
"id int unsigned not null auto_increment primary key,"
"name char(8) not null,"
"sex char(4),"
"hp int unsigned,"
"mp int unsigned,"
"tel char(12) not null default ' - '"
");";
不能使用
char *,会被认为是long long 赋值到char*。
char create[] =
"create table npcinfo"
"("
"id int unsigned not null auto_increment primary key,"
"name char(8) not null,"
"sex char(4),"
"hp int unsigned,"
"mp int unsigned,"
"tel char(12) not null default ' - '"
");";
不能使用
char *,会被认为是long long 赋值到char*。
相关文章推荐
- 母牛问题
- <climits>头文件
- 加油小白
- URL结构
- leetcode:Largest Number
- HDU【3038】How Many Answers Are Wrong
- 最优布线问题
- 图(邻接矩阵)
- pig: ERROR 1070
- 2776 寻找代表元(匈牙利算法)
- Android Fragment完全解析,关于碎片你所需知道的一切
- C#里面Attribute的使用方法
- dx11学习笔记-1.创建一个空窗口
- 《笨办法学Python》 第38课手记
- PHP操作Mysql疑问?
- Nmap
- Codeforces Round #342 (Div. 2) 625C K-special Tables(脑洞)
- 【翻译自mos文章】怎么startup/shutdown PDB?
- UITableView如何撤销移动操作
- UITableView如何撤销移动操作