共享全局变量实例:#include #include #include #include int key=100;void *helloworld_one(char *argc){ printf("the message is %s\n",argc); key=10; printf...
分类:
编程语言 时间:
2014-06-19 06:19:28
阅读次数:
494
int x , y,z; x = 0; y = z = -1; x += -z ---y; printf(“x=%d\n”,x) x = 2 为什么? x + = -z - - -y 相当于 x = x + ((-z)--)-y; 这里-z—是先用-z然后再(-z)- -运算 这里需要注意的是操作符...
分类:
编程语言 时间:
2014-06-18 20:04:46
阅读次数:
316
sprintf(vFilter->szOverLay,"movie=%s[wm];[in][wm]overlay=%d:%d[out]",szOverlay,x,y);当szOverlay = “d:\\xxx\xxx.png”; 时返回-2,貌似ffmpeg处理不了路径中的冒号。。。用当前路径下的...
分类:
其他好文 时间:
2014-06-18 19:04:31
阅读次数:
1066
#includevoid equal(int a[],int N){ int i; for(i=0;i<N;i++) { if(i<a[i]) { printf("no exist\n"); printf("%...
分类:
其他好文 时间:
2014-06-18 17:49:42
阅读次数:
191
广播模型broadcast.c 1 #include 2 3 #define PORT 8088 4 5 int main(int argc,char **argv) 6 { 7 if(argc!=2) 8 { 9 printf("%s \n",argv[0])...
分类:
其他好文 时间:
2014-06-18 15:55:32
阅读次数:
189
#include"stdio.h"int main(){int a;int n=0;scanf("%d",&a);n++;a=a/10;while(a>0){n++;a=a/10;}printf("%d",n);return 0;}
分类:
其他好文 时间:
2014-06-18 13:43:35
阅读次数:
201
1. sizeof(literal-string) is number of bytes plus 1 (NULL is included), while strlen(literal-string) is number of bytes.2. Printf and scanf formatBefo...
分类:
其他好文 时间:
2014-06-18 10:14:22
阅读次数:
226
前言 我相信有很多像我一样的小菜朋友在纠结,写程序就像记一本流水账,偶尔用点基础数据结构改进一下程序效率,这完全看不到技术的存在,看不到成长,在下不才,愿做一个敢出头的小菜,分享一下我的体悟,欢迎各路大神来指点、敲打。 正文:我观象山多妩媚 象山本无奇,多情观之现妩媚。 对我们的程序也是这样的,同....
分类:
其他好文 时间:
2014-06-17 15:02:57
阅读次数:
246
#import
int main(int argc, const char * argv[])
{
// int a[2][3]={
// {1,2,3},
// {4,5,6}
// };
// int a[2][3]={1,2,3,4,5,6};
// //打印单个元素
// printf("%d",a[1][1]);
// ...
分类:
编程语言 时间:
2014-06-16 23:05:14
阅读次数:
395
int b = 0;
int c = 0;
int main(int argc, const char *argv[])
{
printf("%d %d %d %d %d",b,b++,b,++b,b);
printf("%d %d %d %d %d",c,++c,c,c++,c);
return 0;
}
结果为 2 1 1 1 0 2 2 1 0 0
这个可以理解,因为p...
分类:
其他好文 时间:
2014-06-16 18:44:35
阅读次数:
170