摘要:
//C++对双链表的操作#include <iostream>using namespace std;typedef struct node{ int data; struct node *left; struct node *right;}node;typedef struct single{ int data; struct single *next;}single;/*创建一个双链表*/node* Create(){ struct node *head; struct node *p; struct node *s; head = (node*)malloc(sizeof(n 阅读全文
posted @ 2012-08-05 19:50
CBDoctor
阅读(196)
评论(0)
推荐(0)
摘要:
// 22.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <time.h>using namespace std;struct node{ int data; int x; int y; int nx; int ny;}node[45];int _tmain(int argc, _TCHAR* argv[]){ const int NUM = 10; //定义点对的数目 int array[2][NUM]; const int n = NUM*(NUM-1)/ 阅读全文
posted @ 2012-08-05 11:12
CBDoctor
阅读(378)
评论(0)
推荐(0)
浙公网安备 33010602011771号