码迷,mamicode.com
首页 >  
搜索关键字:struct option    ( 27477个结果
JS 省市区级联 修改地址操作时的默认选中方法
省市区级联JS控件下载地址http://files.cnblogs.com/bin-pureLife/%E5%B0%8F%E5%9B%BE%E6%A0%87.zipfunction update(province,city,county){ $("#s_province option").ea...
分类:Web程序   时间:2014-07-01 23:05:06    阅读次数:351
动态构造结构体数组
动态构造结构体数组# include # include struct Student{ int age; float score; char name[100];};int main(void){ int len; struct Student * pArr; ...
分类:其他好文   时间:2014-07-01 22:33:31    阅读次数:204
串口编程485
对于波特率的设置通常使用cfsetospeed和cfsetispeed函数来完成。获取波特率信息是通过cfgetispeed和 cfgetospeed函数来完成的。 cfsetospeed函数 头文件: #include 函数原型: int cfsetospeed(struct termi...
分类:其他好文   时间:2014-07-01 21:19:53    阅读次数:348
MYSQL远程登录权限设置
Mysql默认关闭远程登录权限,如下操作允许用户在任意地点登录: 1. 进入mysql,GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION; IDENTIFIED BY后跟的是密码,可设为空。 .....
分类:数据库   时间:2014-07-01 19:47:00    阅读次数:253
c语言学习之结构篇代码演示样例-输入n个同学的姓名,数学英语成绩,依照平均分从低到高排序并输出
#includevoid main(){const int count = 5;//定义数量struct student{char name[80];float math,eng;float aver;}stu[count],temp;//输入for (int i = 0; i stu[sub].a...
分类:编程语言   时间:2014-07-01 13:32:56    阅读次数:257
最短路 迪杰斯特拉.cpp
#include #include #define INITITY 999//最大值 #define VERTEX 20//最多顶点个数 #define FALSE 0 #define TURE 1 #define size 30 #define OVERFLOW -1 typedef struct ArcCell{ int adj;//权值类型 }ArcCell,AdjMatrix[VE...
分类:其他好文   时间:2014-06-30 19:44:49    阅读次数:313
哈弗曼编码和译码.cpp
#include #include #include typedef struct{ char a;//记录对应字符 int weight;//权值 int parent,lchild,rchild; }HTNode,*HuffmanTree; typedef char * *HuffmanCode;//动态分配数组存储哈夫曼编码表 void Select(H...
分类:其他好文   时间:2014-06-30 19:21:16    阅读次数:205
哈希表的简单实现
下面这个散列表的实现来自K&R,很经典。在其他场景中遇到的实现更复杂,基本原理不变,只是在hash算法,或者在快速查询上做了优化。 #include  #include  //具有相同hash值构成的链表 struct nlist{     struct nlist * next;     char * name;  //key-定义的名字     char ...
分类:其他好文   时间:2014-06-30 19:08:53    阅读次数:209
Swift属性
属性的存储 属性的主要作用是存储数据,可以常量属性和变量属 性;struct FixedLengthRange { var firstValue: Int let length: Int } var rangeOfThreeItems =FixedLengthRange(firstValue: 0, length: 3) // the range represents integer value...
分类:其他好文   时间:2014-06-30 18:53:33    阅读次数:271
UValive3268 Jamie's Contact Groups(二分+最大流)
题目地址:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1269 Jamie is a very popular girl and has quite a lot of friends, so she always keeps a v...
分类:其他好文   时间:2014-06-30 16:55:26    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!