码迷,mamicode.com
首页 >  
搜索关键字:import include 引号 单书名号 objectivec    ( 160216个结果
实现淡入淡出效果的组件,继承自JComponent
由于仅贴出代码,供有缘人参考。import java.awt.AlphaComposite;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.event.ActionEvent;import java.awt.ev...
分类:其他好文   时间:2014-04-28 18:32:56    阅读次数:394
ios-表视图-demo4-内容自己适应高度
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:移动开发   时间:2014-04-28 17:25:33    阅读次数:629
ios-表视图-demo3-单选
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:移动开发   时间:2014-04-28 17:19:46    阅读次数:596
调度场算法
#include #include // 操作符// 优先级 符号 运算顺序// 1 ! 从右至左// 2 * / % 从左至右// 3 + - 从左至右// 4 = 从右至左int op_preced(const char c){ switch(c)...
分类:其他好文   时间:2014-04-28 02:09:18    阅读次数:476
引用对象做向上转换,但对虚函数不影响使用
//: WIND2.CPP -- Inheritance & upcasting#include enum note { middleC, Csharp, Cflat }; // Etc.class instrument {public: void play(note) const { // ...
分类:其他好文   时间:2014-04-28 01:35:42    阅读次数:1272
hdu 1596 find the safest road
http://acm.hdu.edu.cn/showproblem.php?pid=1596 1 #include 2 #include 3 #include 4 #define maxn 1001 5 using namespace std; 6 7 double g[maxn][maxn...
分类:其他好文   时间:2014-04-28 01:18:06    阅读次数:597
宏函数定义继承类
//: ORDER.CPP -- Order of constructor calls // with inheritance#include #define inherit(derived, base) \class derived : public base { \public: \ deri....
分类:其他好文   时间:2014-04-28 00:09:24    阅读次数:444
纯虚函数也可以有内容,并被子类调用
#include class base {public: virtual void v() const = 0; virtual void f() const = 0 { // 纯虚函数也有实现内容,但子类仍然必须实现这个虚函数 cout << "base::f()\n"; }};voi...
分类:其他好文   时间:2014-04-27 23:47:48    阅读次数:561
hdu2509
1 //Accepted 0MS 232K 2 #include 3 #include 4 int ans; 5 int t; 6 int n; 7 void slove() 8 { 9 int x;10 ans=0;11 t=0;12 for (int i=0...
分类:其他好文   时间:2014-04-27 23:08:07    阅读次数:625
Java学习作业(14.4.21)
前三次作业都是基础语法。真的好水啊。从这次开始记录。1.编写Java程序,把当前目录下扩展名为txt的文件的扩展名全部更名为back。 1 import java.io.*; 2 import java.lang.*; 3 4 5 public class Home { 6 7 ...
分类:编程语言   时间:2014-04-27 23:00:20    阅读次数:856
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!