📄 test.c
字号:
#include<string.h>#include"socket.h"main(){ int i; char cod[100]="",codtr[100]=""; int Come_code[5]={11,22,33,44,55}; // int Come_code[5]; printf("size=%d\n",sizeof(Come_code)); printf("val=%d\n",Come_code); // char Come_code[]="1000#12#45#89#78"; for(i=0;i<5;i++) { snprintf(cod,sizeof(cod),"%d ",Come_code[i]); // strcat(cod,"#"); strcat(codtr,cod); } printf("%s\n",codtr);//int buf[10]={}; //char *sp=" ";// char *p;//// printf("%d\n",atoi(strtok(codtr,sp)));// while(p=strtok(NULL,sp)) printf("%d\n",atoi(p)); socket_com("192.168.1.5",8000,codtr); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -