用链表来实现栈

#include #include int num; typedef char ElemType; using namespace std; typedef struct Stack {     ElemType data;     struct Stack *next; }Stack, *...

2016-03-24 21:59:12

阅读数:199

评论数:0

单链表的增、删、改、查多种功能的实现(c++语言)

【注】以下是在单链表中进行增、删、改、查等功能的c++代码实现,代码不多,带有详细注解,希望读者能够耐心的看完,同是也希望自己的努力能帮助到初学者和对此有疑问的人,不喜勿喷,若有错误之处,请多多指点,谢谢! #include #include #define OK 1 #defin...

2016-03-23 23:31:00

阅读数:301

评论数:0

Subset sequence

Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empt...

2016-03-15 20:50:47

阅读数:250

评论数:0

QT链接SQL server

 前提: SQL Server里已经建立了相应的数据库,有对应的表和数据。 步骤: 1. Qt里新建一个空工程,添加main.cpp文件。 2. 在工程文件(.pro文件)添加一行:QT += sql。 3. 该敲代码了,代码如下: [cpp] view plai...

2016-03-11 10:33:32

阅读数:209

评论数:0

Treasure the new start, freshmen!

Treasure the new start, freshmen! Problem Description background: A new semester comes , and the HDU also meets its 50th birthday. No matter what'...

2016-03-09 21:15:00

阅读数:1195

评论数:0

简单的求和题

The sum problem Problem Description Given a sequence 1,2,3,......N, your job is to calculate all the possible sub-sequences that the sum of the sub...

2016-03-08 22:07:31

阅读数:236

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭