码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果
Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * struct Point { * ...
分类:其他好文   时间:2014-06-07 00:31:01    阅读次数:233
C语言程序代写(QQ:928900200)
1.学生成绩统计 要求描述: 用结构数组实现学生信息的统计功能。 struct student { long no; /*学号*/ char name[10]; /*姓名*/ char sex; /*性别*/ int age; /*年龄*/ float score; /*平均成绩*/ } 完成下列任...
分类:编程语言   时间:2014-06-07 00:11:26    阅读次数:305
Sort List
Sort a linked list inO(nlogn) time using constant space complexity./** * Definition for singly-linked list. * struct ListNode { * int val; * L...
分类:其他好文   时间:2014-06-06 20:01:30    阅读次数:333
结构与类的区别
1、结构中可以声明字段,但是不能够给字段初始值public struct Point { private int x; x = 1; //错误 1 类、结构或接口成员声明中的标记“=”无效 public Point(int x)...
分类:其他好文   时间:2014-06-06 15:57:00    阅读次数:215
C 语言静态链表实现
C 语言静态链表实现可运行源代码staticlink.h#include #include #define OK 1#define TRUE 1#define FALSE 0#define ERROR 0#define MAX_SIZE 100 typedef int Status;typed...
分类:其他好文   时间:2014-06-06 14:14:15    阅读次数:220
基于mindwave脑电波进行疲劳检测算法的设计(4)
上一次的实验做到可以从pc端读取到MindWave传输过来的脑电波原始数据了。 我是先定义一个结构体,该结构体对应保存所有能从硬件中取到的原始数据。 1 struct FD_DATA 2 { 3 int battery;//电量 4 int poor_signal;//连接质量...
分类:其他好文   时间:2014-06-06 13:14:57    阅读次数:492
ac1097
判断线段与直线的相交 这里有个地方需要注意的就是在 转换的时候容易报错 在叉积完后的判断符号的时候需要注意 这个地方会超出int 的范围2014-06-0320:14:04#include #include #include #include using namespace std;struct p...
分类:其他好文   时间:2014-06-05 12:54:04    阅读次数:238
map中erase函数的使用
STL的map表里有一个erase方法用来从一个map中删除掉指令的节点eg:map mapTest;typedef map::iterator ITER;ITER iter=mapTest.find(key);mapTest.erase(iter);像上面这样只是删除单个节点,map的形为不会出现...
分类:其他好文   时间:2014-06-03 16:11:29    阅读次数:239
linux 统计 程序 运行时间
测试 代码运行时间linux 中的 中 有个函数可以获取当前时间,精确到 微秒 ----> gettimeofday() 1 #include // int gettimeofday(struct timeval *tv, struct timezone *tz); 2 /***...
分类:系统相关   时间:2014-06-02 19:08:37    阅读次数:337
LeetCode --- Partition List
题目链接又是一个考察对链表基本操作的题目附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * Lis...
分类:其他好文   时间:2014-06-02 12:00:52    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!