
C/C++
Jerome_Song
Neither a talker nor a thinker,only a geeker.
展开
-
error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i //doing something here.when compile it using gcc it gives: error: ‘for’ loop initial declarations are only allowed in C99 mode.==In case you’re declaring the loo转载 2013-06-08 14:05:09 · 1166 阅读 · 0 评论 -
JNI的某些数组和字符串类型转换
jbytearray转c++byte数组 C代码 jbyte * arrayBody = env->GetByteArrayElements(data,0); jsize theArrayLengthJ = env->GetArrayLength(data); BYTE * starter = (BYTE *)arrayBody;转载 2013-06-07 14:39:45 · 786 阅读 · 0 评论 -
C语言字符串函数大全
程序开头要声明#include 函数名: stpcpy功 能: 拷贝一个字符串到另一个用 法: char *stpcpy(char *destin, char *source);程序例:#include #include int main(void){ char string[10]; char *str1 = "abcdefghi"; stpcpy转载 2013-06-06 22:49:24 · 860 阅读 · 0 评论