会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
秋月的私语
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
下一页
2014年4月25日
C# 截取图像的一部分
摘要: /// /// 截取图像的矩形区域 /// /// 源图像对应picturebox1 /// 矩形区域,如上初始化的rect /// 矩形区域的图像 public static Image Acq...
阅读全文
posted @ 2014-04-25 14:51 秋月的私语
阅读(2336)
评论(0)
推荐(0)
2014年4月13日
C++ 控制输出格式
摘要: #include using namespace std;int main(int argc, char *argv[]){ int a = 10; cout.width(10); cout.fill('#'); cout << a << endl; cout.widt...
阅读全文
posted @ 2014-04-13 22:58 秋月的私语
阅读(263)
评论(0)
推荐(0)
2014年4月12日
C++ 指定输出宽度和填充
摘要: #include using namespace std;int main(int argc, char *argv[]){ cout << 123 << endl; cout.width(10); cout << 123 << endl; cout << 123 << endl; cout.width(1); cout << 123 << endl; cout.width(10); cout.fill('*'); cout << 123 << endl; c
阅读全文
posted @ 2014-04-12 23:11 秋月的私语
阅读(2721)
评论(0)
推荐(0)
2014年4月2日
C++ 文件IO get()
摘要: 1 #include 2 using namespace std; 3 int main(int argc, char *argv[]) 4 { 5 cout 2 using namespace std; 3 #include 4 #include 5 int main(int argc, char *argv[]) 6 { 7 ifstream fin("D:\\a.txt"); 8 char ch; 9 while(fin.get(ch))10 {11 cout << ch << flush;12 time...
阅读全文
posted @ 2014-04-02 22:33 秋月的私语
阅读(455)
评论(0)
推荐(0)
2014年4月1日
C++ 文件IO
摘要: 1 #include 2 #include 3 using namespace std; 4 int main(int argc, char *argv[]) 5 { 6 ofstream fout("D:\\a.txt"); 7 fout 2 #include 3 #include 4 using namespace std; 5 6 int main(int argc, char *argv[]) 7 { 8 string stContent = ""; 9 ifstream fin("D:\\a.txt");10 getlin.
阅读全文
posted @ 2014-04-01 21:29 秋月的私语
阅读(160)
评论(0)
推荐(0)
2014年3月26日
C++ 运算符重载 类型转换
摘要: 1 #include 2 using namespace std; 3 4 class Good 5 { 6 public: 7 int member; 8 Good(int a): member(a) 9 {10 cout << "调用构造" << endl;11 cout << "member =" << member << endl;12 }13 void show()14 {15 cout << member << endl;16 }17 18 operator.
阅读全文
posted @ 2014-03-26 23:02 秋月的私语
阅读(218)
评论(0)
推荐(0)
C++ 运算符重载++
摘要: 1 #include 2 using namespace std; 3 4 class Good 5 { 6 public: 7 int member; 8 Good(int a): member(a) 9 {10 cout << "调用构造" << endl;11 cout << "member =" << member;12 }13 void show()14 {15 cout << member << endl;16 }17 Good operator+(const Go...
阅读全文
posted @ 2014-03-26 22:54 秋月的私语
阅读(241)
评论(0)
推荐(0)
C++ 运算符重载<<
摘要: 1 #include 2 using namespace std; 3 4 class Good 5 { 6 public: 7 int member; 8 Good(int a): member(a) 9 {10 cout << "调用构造" << endl;11 }12 void show()13 {14 cout << member << endl;15 }16 Good operator+(const Good& obj)17 {18 return Good(m...
阅读全文
posted @ 2014-03-26 22:01 秋月的私语
阅读(224)
评论(0)
推荐(0)
2014年3月25日
C++ 运算符重载
摘要: 1 #include 2 using namespace std; 3 4 class Good 5 { 6 public: 7 int member; 8 Good(int a): member(a) 9 {10 cout << "调用构造" << endl;11 }12 void show()13 {14 cout << member << endl;15 }16 Good operator+(const Good& obj)17 {18 return Good(m...
阅读全文
posted @ 2014-03-25 21:13 秋月的私语
阅读(207)
评论(0)
推荐(0)
2014年3月22日
C++ 复制构造函数
摘要: 1 #include 2 using namespace std; 3 4 class ClassA 5 { 6 int member; 7 8 public: 9 ClassA (int x):member(x)10 {11 cout << ...
阅读全文
posted @ 2014-03-22 21:23 秋月的私语
阅读(234)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
下一页
公告