摘要: #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 南屏晚钟 阅读(166) 评论(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 南屏晚钟 阅读(135) 评论(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 南屏晚钟 阅读(213) 评论(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 南屏晚钟 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 解决方法见这个链接。其中某一楼的回复如下:hey guys, i started to search out this thing for quite some time and at last i found the solution:some people might suggest you to install other Desk operating programs and some might sayinstall virtual machines etc, well, for God sake guys, this is Windows 7, the extreme of all 阅读全文
posted @ 2012-10-08 18:39 南屏晚钟 阅读(133) 评论(0) 推荐(0) 编辑