以下记载了在初学结构体时犯下的一些错误。先来一些杂识struct f{ string name;};struct students{ int num; string name; students *next; students friends;// f fri;}...
分类:
其他好文 时间:
2014-07-12 13:14:01
阅读次数:
206
队列的数组和链表实现队列的单链表实现queue.h#ifndef QUEUE_H_#define QUEUE_H_typedef int ElementType;#ifndef _QUEUE_LIST_#define _QUEUE_LIST_struct QNode;typedef struct Q...
分类:
其他好文 时间:
2014-07-11 22:28:41
阅读次数:
306
SGU链接:时间限制:0.25s空间限制:4M题意: 给出一个树(节点数#include #include #include #include #include #define INF 16666using namespace std;struct node { int v, ne;} edge.....
分类:
其他好文 时间:
2014-07-11 20:28:32
阅读次数:
250
话说今天这个1个同学2002的题目真的有可总结性吗。今天的结论是我的暴力又进化了,现在可以长达5KB,一节更比六节强。明天再来听评讲。#include#include#include#includeusing namespace std;struct edge{ long long to,d; ed...
分类:
其他好文 时间:
2014-07-11 09:46:51
阅读次数:
153
Desktop的API,用于切换或者系统桌面环境。扩展起来可以做一个锁屏程序或者多桌面程序。模块部分: 1 'desktop.bas 2 'too much struct and declare unused, shame~ 3 Public Declare Function GetThrea...
分类:
其他好文 时间:
2014-07-10 14:50:31
阅读次数:
314
访问类成员函数(cin.getline())方式是从访问结构成员变量方式衍生而来;C++结构体变量申明 struct关键字可省略;c++结构体变量声明初始化, = 可省略;但此需用在c++,大家都知道C++ 11有很多的新 特性C++结构体可以讲String Object作为其成员;struct R...
分类:
编程语言 时间:
2014-07-10 14:46:04
阅读次数:
327
#include "mainwindow.h"#include #include #include #include #include #include #include #define MAX_BUFFER_SIZE (200)typedef unsigned cha...
分类:
数据库 时间:
2014-07-10 14:34:54
阅读次数:
211
协议是为方法、属性等定义一套规范,没有具体的实现。协议能够被类、结构体等具体实现(或遵守)。 protocol SomeProtocol {
// protocoldefinition goes here
}
struct SomeStructure: FirstProtocol, AnotherProtocol {
// structure defin...
分类:
其他好文 时间:
2014-07-09 11:07:07
阅读次数:
180
题目大意:Codeforces 444C DZY Loves Colors
题目大意:两种操作,1是修改区间上l到r上面德值为x,2是询问l到r区间总的修改值。
解题思路:线段树模板题。
#include
#include
#include
#include
using namespace std;
const int maxn = 5*1e5;
typedef long ...
分类:
其他好文 时间:
2014-07-09 10:28:24
阅读次数:
153
//函数原型:版本linux-3.0.8
struct task_struct *__switch_to(structtask_struct *,
struct thread_info *, struct thread_info *);
#define switch_to(prev,next,last) ...
分类:
其他好文 时间:
2014-07-09 09:28:09
阅读次数:
362