码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
第13周上机实践项目1——动物这样叫
下面是给出的基类Animal声明和main()函数。 [cpp] view plaincopyprint? class Animal   {   public:     virtual void cry()       {         cout"不知哪种动物,让我如何学叫?"     }   };   int main( ){  ...
分类:其他好文   时间:2015-05-31 18:32:45    阅读次数:114
指定范围的随机数产生!!!!
import java.util.*; public class RandomNum { public static void main(String[] args) { int min=99999999; int max=-1; int randomNum=0; Scanner sc=new Scanner(System.in); int num=sc.nextInt();...
分类:其他好文   时间:2015-05-31 18:28:16    阅读次数:85
我也不知道我到底在干什么之——girlfriend类
girlfriend.h class girlfriend { public: string name; int age; face look; string education_background; protected: void making_food(boyfriend &me); void go_shopping(boyfriend &m...
分类:其他好文   时间:2015-05-31 18:26:41    阅读次数:94
第2章商场促销(3)——策略与简单工厂结合
/*shop.h文件*/#ifndef _SHOP_#define _SHOP_#include#include//现金收费抽象类class Cashsuper{public: virtual double acceptcash(double money);};//正常收费子类class cashn...
分类:其他好文   时间:2015-05-31 18:24:19    阅读次数:89
几个简单的基础类
最近没时间捣鼓啥,也没什么内容可写。先把自己捣鼓的几个基础类放上来,已做记录namespace DEF{ class Noncopyable { protected: Noncopyable() {} ~Noncopyable() {} priva...
分类:其他好文   时间:2015-05-31 18:23:55    阅读次数:99
第2章商场促销(2)——策略模式
/*shop.h文件*/#ifndef _SHOP_#define _SHOP_#include#include//现金收费抽象类class Cashsuper{public: virtual double acceptcash(double money);};//正常收费子类class cashn...
分类:其他好文   时间:2015-05-31 18:22:22    阅读次数:86
Html辅助方法 之 Form表单标签
一、Html.BeginForm 标签//视图代码 @using (Html.BeginForm("search", "home", FormMethod.Get),new { target="_black",@class="form1" }){ } //生成的HTML代码 ne...
分类:Web程序   时间:2015-05-31 18:21:40    阅读次数:135
Java笔记--枚举&注解
1、自定义枚举类的实现,例:class Season{ //1,提供类的属性,声明为rivate final private final String name; private final String Desc; //2,声明为final的属性,在构造器中初始化,构造器为...
分类:编程语言   时间:2015-05-31 18:19:22    阅读次数:121
[UIAlertController & UIAlertAction] 简介
AUIAlertControllerobject displays an alert message to the user. This class replaces theUIActionSheetandUIAlertViewclasses for displaying alerts. After...
分类:其他好文   时间:2015-05-31 18:17:15    阅读次数:127
IOS 屏幕截图 UIScrollview
//截图UIView:截全图-(UIImage*)captureView:(UIView *)theView{ CGRect rect = theView.frame; if ([theView isKindOfClass:[UIScrollView class]]) { ...
分类:移动开发   时间:2015-05-31 18:15:07    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!