11 2012 档案

摘要:#include <iostream>using namespace std;class PhoneState;//定义电话类 class Phone{ private: PhoneState *state;//记录状态 public: Phone(PhoneState *_state){this->state=_state;}; void setState(PhoneState *_state);//设置状态 void openPhone();//开机 ... 阅读全文
posted @ 2012-11-21 11:26 南屏晚钟 阅读(168) 评论(0) 推荐(0)
摘要:#include<iostream>using namespace std;//基类,接口 class SortBase{ public: SortBase(){}; virtual void datasort(){};};// QuickSort 子类 class QuickSort:public SortBase{ public: void datasort();};void QuickSort::datasort(){ cout<<"This is QuickSort!"<<endl;... 阅读全文
posted @ 2012-11-19 14:54 南屏晚钟 阅读(137) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include<stdlib.h>//定义结构体Node,链表结点 struct Node{ int data; struct Node *next;};//新建一个节点 struct Node * createNode( int data){ struct Node * node= (struct Node *)malloc( sizeof(struct Node)); node->data=data; return node;} /* //新建一个带头结点的空链表,返回头指针 struct N... 阅读全文
posted @ 2012-11-18 14:51 南屏晚钟 阅读(216) 评论(0) 推荐(0)
摘要:1.建立两个页面Tab1.aspx 和 Tab2.aspx,这两个页面将在tabs中显示.后台DefaultController.cs代码: public class DefaultController : Controller{ //get Index public ActionResult Index() { return View(); } //get Tab1 public ActionResult Tab1() { return View(); ... 阅读全文
posted @ 2012-11-15 14:00 南屏晚钟 阅读(668) 评论(0) 推荐(0)