- 博客(7)
- 收藏
- 关注
原创 函数和结构体
#include using namespace std; /** * 当结构比较小时使用值传递 */ void print_order(const order order) { cout "order_num = " << order.order_num << endl; cout "user_name = " << order.user_name << endl; } /
2017-02-21 16:48:31
386
原创 函数和C风格字符串
将C风格字符串作为参数的函数要将C风格字符串作为函数的参数,表示方法有如下几种: - char数组 - 用引号括起来的字符串常量 - char指针 将字符串作为参数来传递,实际传递的是字符串第一个字符的地址。因此形参可声明为 char* 。#include <iostream> using namespace std; /** * 计算字符串中s有多少个c字符 */ int c_i
2017-02-21 13:23:13
319
原创 函数和二维数组
include include using namespace std;void subfun(int n, int subargs[][5]) { int i; for (i = 0; i < n; i++) { for (int var = 0; var < 5; ++var) { printf(“subargs[%d][%d] =
2017-02-21 11:33:40
399
原创 android开发WARNING处理_Application does not specify an API level requirement!
WARNING: [2014-02-13 18:04:00 - project-name] WARNING: Application does not specify an API level requirement! [2014-02-13 18:04:00 - project-name] Device API version is 19 (Android 4.4) 解决办法:
2014-02-13 18:10:15
901
原创 android开发BUG处理_Unable to execute dex: java.nio.BufferOverflowException.
BUG: [2014-02-13 17:18:46 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. [2014-02-13 17:18:46 - Chapter_4_Compass] Conversion to Dalv
2014-02-13 17:31:35
826
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人