自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (41)
  • 收藏
  • 关注

空空如也

c语言解析XML文件

本指南中的例子代码示范主要做到: • 解析文档 • 取得指定元素的文本 • 添加一个元素及它的内容 • 添加一个属性 • 取得一个属性的值

2015-09-22

C创建XML文档

通过xml库中的函数创建XML文档,使用dom树如何解析xml文档

2015-09-22

数据结构 C语言建立二叉树

C语言 二叉树 C 数据结构 用C语言实现建立一棵二叉树 支持插入,删除结点,画出二叉树

2015-09-22

多叉树的设计、建立、层次优先遍历和深度优先遍历

现了一个多叉树建立函数,建立函数根据用户的输入,首先建立一个新的节点,然后根据B的值进行深度递归调用。用户输入节点的顺序就是按照深度递归的顺序。另外,我们实现了一个层次优先遍历函数。该函数用一个队列实现该多叉树的层次优先遍历。首先将根节点入队列,然后检测队列是否为空,如果不为空,将队列出队列,访问出队列的节点,然后将该节点的子节点指针入队列,依次循环下去,直至队列为空,终止循环,从而完成整个多叉树的层次优先遍历。

2015-09-22

multi_thread_socket_filetrans

提供了许多线程间通信的实例程序。用linux下的C语言实现。-Provides many examples of thread communication procedures. Under linux using C language.

2013-05-13

多线程socket

linux系统下实现多线程、服务器、客户端、信号处理以及多线程讲解、源码操作说明-Linux system realize multithreading, server, client, signal processing and multithreading explanation, the source operating instructions

2013-05-13

SOCKET TCP多线程

SOCKET多线程,使用TCP连接,当有一个连接请求时候,建立一个线程。共有两个文件,一个Server,还有一个是Client-SOCKET multithreading, the use of TCP connections, when a link request, the establishment of a thread. A total of two documents, one Server, there is a Client

2013-05-13

Socket和多线程技术实现远程通信

使用Socket和多线程技术实现远程通信-The use of Socket and multithreading technology to achieve long-range communications

2013-05-13

多线程socket通信

多线程,通信开发-multi-thread Socket, writing by communications

2013-05-13

MeasureVelocityUdp

一个多线程、数据库、网络编程的综合例子,今将它公布出来与大家共享。-a multithreaded database, integrated network programming examples, announced today it out and share.

2013-05-13

80211mac详解

这是广播网的数据链路层上特有的一个子层,用于解决共享信道的分配问题。广播信道有时也称为多重访问信道(multiaccess channel)或随机访问信道(random access channel),信道也称为介质或媒体(medium),使用信道发送数据称为介质(媒体)访问,所以决定信道分配的协议就称为介质(媒体)访问控制协议。

2013-01-28

ieee802.11标准协议

IEEE standard for information technology-Telecommunications and information exchange between systems Local and metropolitan area networks-Specific requirements

2013-01-28

aomdv源代码

aomdv代码 .........\aodv .........\....\aodv.cpp .........\....\aodv.h .........\....\aodv.o .........\....\aodv.tcl .........\....\aodv_logs.cpp .........\....\aodv_logs.o .........\....\aodv_packet.h .........\....\aodv_rqueue.cpp .........\....\aodv_rqueue.h .........\....\aodv_rqueue.o .........\....\aodv_rtable.cpp .........\....\aodv_rtable.h .........\....\aodv_rtable.o .........\....\myaomdv.IAB .........\....\myaomdv.IAD .........\....\myaomdv.IMB .........\....\myaomdv.IMD .........\....\myaomdv.PFI .........\....\myaomdv.PO .........\....\myaomdv.PR .........\....\myaomdv.PRI .........\....\myaomdv.PS .........\....\myaomdv.SearchResults .........\....\myaomdv.WK3 .........\....\ns-default.tcl

2012-10-15

内核链表分析

链表的基本操作:创建、检索、插入、删除,动态、静态链表的相关数据结构

2012-10-15

内核定时器

动态和静态内核定时器机制的原理、相关的函数

2012-10-15

CCNA相关配置

网络配置、路由配置、ip配置、vlan配置等相关的CCNA配置的相关步骤

2012-10-15

linux 网络设备net_dev原理

网络设备在linux内核中的识别,相关的数据结构和函数,模块的加载和卸载,网络设备的注册和注销及相关的函数

2012-10-15

netfilter详解

本文讨论模块编写者如何利用Netfilter hook来实现任意目的以及如何将将网络通信在基于Libpcap的应用程序中隐藏。虽然Linux 2.4支持对IPv4、IPv6以及DECnet的hook

2012-09-11

Leach_Linux code

能够实现在Linux上的仿真,仿真比较全面,值得学习

2012-09-11

网络编程之SOCKET

Socket在所有网络操作系统和网络应用程序中都是必不可少的,它是网络通信中应用进程和网络协议之间的接口。在Linux操作系统中,socket属于文件系统的一部分,网络通信可以看作是对文件的读取。这就使得用户对网络的控制像对文件的控制一样方便。

2012-08-07

Linux系统iocl使用示例

程序1:检测接口的 inet_addr,netmask,broad_add 程序2:检查接口的物理连接是否正常 程序3:更简单一点测试物理连接 程序4:调节音量

2012-08-03

Linux 系统命令及其使用详解

比较全的Linux命令全在这里了 对查找命令比较方便

2012-08-02

C语言预处理命令大全

#define #error #include 条件编译命令 #pragma等等

2012-08-02

AODV源代码

AODV源代码 在Linux、ns-2上能够成功实现 AODV里面的每一个步骤也给的非常详细

2012-08-02

C语言暴击编程及实例解刨

本书以深化程序设计语言C语言为目的,以具体常见的计算机硬件与操作系统、为背景,讲述在微机上编写精巧、美观、友好的应用软件。

2012-07-31

C语言程序第二版

学习C语言必不可少的一本教程 里面消息讲解了C语言基本命令和实际应用示例 对于程序员来说是一本很不错的书

2012-07-28

C语言深度解刨

解开程序员面试笔试的秘密 以含金量勇敢挑战国内外同类书籍 超值

2012-07-28

C语言笔试题库

总结了历年C语言笔试试题,有助于学习者更好的学习C语言

2012-07-23

C语言程序设计

C语言程序设计(第三版)-谭浩强[开始免费了]PPT

2012-07-23

C语言按位编程

题目:学习使用按位与 & 。   1.程序分析:0&0=0; 0&1=0; 1&0=0; 1&1=12.程序源代码:#include "stdio.h"main(){int a,b;a=077;b=a&3;printf("\40: The a & b(decimal) is %d \n",b);b&=7;printf("\40: The a & b(decimal) is %d \n",b);}

2012-07-23

define应用

题目:宏#define命令练习(1)   1.程序分析:2.程序源代码:#include "stdio.h"#define TRUE 1#define FALSE 0#define SQ(x) (x)*(x)void main(){int num;int again=1;printf("\40: Program will stop if input value less than 50.\n");while(again){printf("\40:Please input number==>");scanf("%d",#);printf("\40:The square for this number is %d \n",SQ(num));if(num>=50)  again=TRUE;else  again=FALSE;}}

2012-07-23

c语言画图示例2

【程序63】题目:画椭圆ellipse   1.程序分析:2.程序源代码:#include "stdio.h"#include "graphics.h"#include "conio.h"main(){int x=360,y=160,driver=VGA,mode=VGAHI;int num=20,i;int top,bottom;initgraph(&driver;,&mode;,"");top=y-30;bottom=y-30;for(i=0;i<num;i++){ellipse(250,250,0,360,top,bottom);top-=5;bottom+=5;}getch();}

2012-07-23

c语言画图示例

题目:一个最优美的图案。   1.程序分析:2.程序源代码:#include "graphics.h"#include "math.h"#include "dos.h"#include "conio.h"#include "stdlib.h"#include "stdio.h"#include "stdarg.h"#define MAXPTS 15#define PI 3.1415926struct PTS {int x,y;};double AspectRatio=0.85;void LineToDemo(void){struct viewporttype vp;struct PTS points[MAXPTS];int i, j, h, w, xcenter, ycenter;int radius, angle, step;double rads;printf(" MoveTo / LineTo Demonstration" );getviewsettings( &vp; );h = vp.bottom - vp.top;w = vp.right - vp.left;xcenter = w / 2; /* Determine the center of circle */ycenter = h / 2;radius = (h - 30) / (AspectRatio * 2);step = 360 / MAXPTS; /* Determine # of increments */angle = 0; /* Begin at zero degrees */for( i=0 ; i<MAXPTS ; ++i ){ /* Determine circle intercepts */rads = (double)angle * PI / 180.0; /* Convert angle to radians */points[i].x = xcenter + (int)( cos(rads) * radius );points[i].y = ycenter - (int)( sin(rads) * radius * AspectRatio );angle += step; /* Move to next increment */}circle( xcenter, ycenter, radius ); /* Draw bounding circle */for( i=0 ; i<MAXPTS ; ++i ){ /* Draw the cords to the circle */for( j=i ; j<MAXPTS ; ++j ){ /* For each remaining intersect */moveto(points[i].x, points[i].y); /* Move to beginning of cord */lineto(points[j].x, points[j].y); /* Draw the cord */} } }main(){int driver,mode;driver=CGA;mode=CGAC0;initgraph(&driver;,&mode;,"");setcolor(3);setbkcolor(GREEN);LineToDemo();}

2012-07-23

C语言初学者

题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续    判断第二个字母。1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。2.程序源代码:#include <stdio.h>void main(){char letter;printf("please input the first letter of someday\n");while ((letter=getch())!='Y')/*当所按字母为Y时才结束*/{ switch (letter){case 'S':printf("please input second letter\n");      if((letter=getch())=='a')       printf("saturday\n");      else if ((letter=getch())=='u')          printf("sunday\n");        else printf("data error\n");      break;case 'F':printf("friday\n");break;case 'M':printf("monday\n");break;case 'T':printf("please input second letter\n");      if((letter=getch())=='u')       printf("tuesday\n");      else if ((letter=getch())=='h')          printf("thursday\n");        else printf("data error\n");      break;case 'W':printf("wednesday\n");break;default: printf("data error\n");   }  }}

2012-07-23

C语言创建列表

题目:创建一个链表。1.程序分析:           2.程序源代码:/*creat a list*/#include "stdlib.h"#include "stdio.h"struct list{ int data;struct list *next;};typedef struct list node;typedef node *link;void main(){ link ptr,head;int num,i;ptr=(link)malloc(sizeof(node));ptr=head;printf("please input 5 numbers==>\n");for(i=0;idata=num;  ptr->next=(link)malloc(sizeof(node));  if(i==4) ptr->next=NULL;  else ptr=ptr->next;}ptr=head;while(ptr!=NULL){ printf("The value is ==>%d\n",ptr->data);  ptr=ptr->next;}}

2012-07-23

c语言函数调用

main()#include "stdio.h"main(){float peven(),podd(),dcall();float sum;int n;while (1){  scanf("%d",&n);  if(n>1)   break;}if(n%2==0){  printf("Even=");  sum=dcall(peven,n);}else{  printf("Odd=");  sum=dcall(podd,n);}printf("%f",sum);}float peven(int n){float s;int i;s=1;for(i=2;i<=n;i+=2)  s+=1/(float)i;return(s);}float podd(n)int n;{float s;int i;s=0;for(i=1;i<=n;i+=2)  s+=1/(float)i;return(s);}float dcall(fp,n)float (*fp)();int n;{float s;s=(*fp)(n);return(s);}

2012-07-23

C语言排序代码

main(){int number[10];input(number);max_min(number);output(number);}input(number)int number[10];{int i;for(i=0;i<9;i++)  scanf("%d,",&number;[i]);  scanf("%d",&number;[9]);}max_min(array)int array[10];{int *max,*min,k,l;int *p,*arr_end;arr_end=array+10;max=min=array;for(p=array+1;p<arr_end;p++)  if(*p>*max) max=p;  else if(*p<*min) min=p;  k=*max;  l=*min;  *p=array[0];array[0]=l;l=*p;  *p=array[9];array[9]=k;k=*p;  return;}output(array)int array[10];{ int *p;for(p=array;p<array+9;p++)  printf("%d,",*p);printf("%d\n",array[9]);}

2012-07-23

学习C语言示例

#include "math.h"main(){  int m,i,k,h=0,leap=1;  printf("\n");  for(m=101;m<=200;m++)   { k=sqrt(m+1);    for(i=2;i<=k;i++)      if(m%i==0)       {leap=0;break;}    if(leap) {printf("%-4d",m);h++;         if(h==0)         printf("\n");        }    leap=1;   }  printf("\nThe total is %d",h);}

2012-07-23

c语言经典列子

main(){long int i;int bonus1,bonus2,bonus4,bonus6,bonus10,bonus;scanf("%ld",&i);bonus1=100000*0.1;bonus2=bonus1+100000*0.75;bonus4=bonus2+200000*0.5;bonus6=bonus4+200000*0.3;bonus10=bonus6+400000*0.15;  if(i<=100000)   bonus=i*0.1;  else if(i<=200000)      bonus=bonus1+(i-100000)*0.075;     else if(i<=400000)         bonus=bonus2+(i-200000)*0.05;        else if(i<=600000)            bonus=bonus4+(i-400000)*0.03;           else if(i<=1000000)               bonus=bonus6+(i-600000)*0.015;              else               bonus=bonus10+(i-1000000)*0.01;printf("bonus=%d",bonus);}

2012-07-23

家庭财务管理和文件合并

通过创建和执行家庭财务管理的用法已及将分开的两个文件合并起来。

2012-07-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除