应一些人之邀。。。发一篇代码 1 #include 2 #include 3 #include 4
#include 5 6 using namespace std; 7 struct node 8 { 9 int data; 10 int key;
11...
分类:
其他好文 时间:
2014-05-23 05:17:06
阅读次数:
246
#include#include#include#includeusing namespace
std;struct city{char name[50];int jd;int jf;int jm;int wd;int wf;int wm;string
jdf;float a;float b;int...
分类:
其他好文 时间:
2014-05-23 04:20:29
阅读次数:
600
#include#includeusing namespace std;struct G{float
W;float V;char N[10];}g[100];void wenzi(int & m){cout>m;}int main(){int
M;wenzi(M);int i,j,k,p=0,A[...
分类:
其他好文 时间:
2014-05-23 04:08:15
阅读次数:
240
一:学生信息的录入二:学生信息的打印三:学生信息的增加四:学生信息的查询五:学生信息的修改及复位六:学生信息的删减#include#include#define
NULL 0#define STU struct studentusing namespace std;STU{int num;float...
分类:
其他好文 时间:
2014-05-23 03:52:30
阅读次数:
271
1、典型的Point结构体 1 struct point { 2 double x, y; 3
point(double _x = 0, double _y = 0): x(_x), y(_y) { 4 } 5 void input() { 6
sca...
分类:
其他好文 时间:
2014-05-23 03:40:15
阅读次数:
362
【7.4】 1 #include 2 #include 3 #include 4 using
namespace std; 5 #define MAXN 100 6 7 typedef struct node{ 8 char data; 9 node
*lchild;10 ...
分类:
其他好文 时间:
2014-05-23 03:26:20
阅读次数:
260
题目说:Try to do this in one pass
只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode...
分类:
其他好文 时间:
2014-05-23 01:52:29
阅读次数:
331
在C++中struct类型(结构体)属于类类型。 class student {} 与
strcut student
{}是一样的,唯一的区别就是class中如果未对成员进行public、private或protected等访问限定声明则默认为private的,而struct中则默认为publ...
分类:
编程语言 时间:
2014-05-21 17:55:05
阅读次数:
231
一:数据库的概念数据库:一个用于储存数据并可以对之进行管理和使用的软件系统。sql:struct(结构) query(查询) language(语言)
结构化查询语言: 其实是一种国际化语言标准,在这个基础上开发数据库产品数据库产品:mysql oracle db2 mssql......需要记住的...
分类:
数据库 时间:
2014-05-21 17:52:24
阅读次数:
234
(1)分配函数
void *malloc(sizeof(unsigned size)
功能:在内存的动态存储区中分配一块长度位size的连续空间。
返回值:指针,存放被分配内存的起始地址。若未申请到空间,则返回NULL(0)。
void *:指向任何类型的数据,在使用时,要进行强制类型转换。
例如:int *malloc(sizeof(int))
struct student *mal...
分类:
其他好文 时间:
2014-05-21 17:10:29
阅读次数:
231