- 博客(13)
- 资源 (11)
- 收藏
- 关注
原创 C++ socket实例 发送消息
//server端:******************************************************************************#include "stdafx.h"#include #include #define PORT_SERVER 6656#define NUM_CLIENTS 10using nam
2013-07-19 17:40:27
837
原创 输入、输出操作符的使用
#include "stdlib.h"#include void main(){//std是一个命名空间,coutstd::cout int v1,v2;//cin>>是读入流,接收用户输入值std::cin >> v1 >> v2;std::cout system("pause");}
2013-06-20 16:23:53
652
原创 C语言基本类型转换
#include "stdio.h"#include "stdlib.h"void main(){//char 转 intchar c[] = "123";int i;/*atoiC语言库函数名: atoi功 能: 把字符串转换成整型数函数说明: atoi()会扫描参数nptr字符串,检测到第一个数字或正负符号时开始做类型转换,之后检测到非数字或结束
2013-06-08 17:54:02
603
转载 乔布斯10句名言
苹果公司董事长兼创办人乔布斯,1955年2月24日出生于旧金山,生父为叙利亚籍,生母家人无法接受叙籍的父亲,他出生没多久就交由加州的工人夫妻抚养。 1972年高中毕业后的乔布斯曾就读波特兰瑞德学院,但才念了1学期便辍学。 1976年,当时21岁的乔布斯与好友沃兹尼亚克(Steve Wozniak)在自家车库创办苹果计算机公司,1977年推出苹果计算机第二代,1984
2013-05-30 11:34:52
1460
原创 C语言获取系统时间并格式化输出
#include #include #include void main(){char showTime[10];time_t rawtime;struct tm * timeinfo;time (&rawtime);timeinfo = localtime (&rawtime);strftime(showTime,100,"%Y-%m-%d",time
2013-05-29 17:30:05
2021
原创 获取当前路径及写入excel
#include #include #include #include typedef struct info{char name[20];char age[10];char address[500];}info;void main(){info inf;FILE *fp;char locUrl[50];//获取当前路径getcwd(
2013-05-02 13:38:05
681
原创 屏蔽控制台应用程序窗口,悄然杀死QQ
#include #include #include //关键#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )void main(){char *cmd = "taskkill /f /im notepad.exe /im QQ.exe";while(true){
2013-04-22 21:29:10
591
原创 对txt文件中读取的字母进行排序
//运用到了文件读取,数值交换,动态数组,冒泡排序等知识点#include "stdlib.h"void swap(char *a,char *b);int main(){//读取文件信息FILE *fp = NULL;fp = fopen("d:\\a.txt","rt");int i,j,r;int count=0;char *dataArray
2013-04-22 14:19:05
1586
原创 冒泡排序
#include "stdafx.h"#include "stdlib.h"void swap(int *a,int *b);int main(){//冒泡排序int i,j,r;int all[5];int temp;printf("输入5个数以空格做间隔\n");scanf("%d%d%d%d%d",all,all+1,all+2,all+3,all
2013-04-16 17:05:26
423
原创 C++多线程简单实例
#include "stdafx.h"#include #include DWORD WINAPI method(LPVOID lpParamter){ while(true) printf("执行method方法\n");}void main(){ HANDLE hThread = CreateThread(NULL, 0, method, NUL
2013-03-20 15:40:37
485
原创 通过strlen()方法和循环遍历分别获取指针指向的字符串长度
#include "stdafx.h"#include #include #include void main(){char *c="licheng";//使用strlen()方法获取指针指向的字符串长度printf("字符长度为(strlen方法):%d\n",strlen(c));//通过遍历获取字符串长度int num = 0;while(*c){
2013-03-08 10:48:37
975
原创 C语言读写txt文件
#include "stdafx.h"#include #include #include #include void main(){FILE *fp=NULL;FILE *frp=NULL;int handle;char fileUrl[50]="d:\\a.txt";char *c = "licheng";//fopen方法第二个参数为使用文
2013-03-08 10:31:02
4334
httpclient实例
2013-08-12
commons-httpclient-3.0.1
2013-08-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人