自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 C++中从文件中读出字符流,以及向文件中输入字符流

#include #include #include #include //读文件using namespace std;int main(){ ifstream f; f.open("file1.txt"); string s; vector vec; //getline第三个参数表示终止符 while(getline(f, s, '\n')) //fscanf()

2015-04-25 20:06:28 705

转载 13、Roman to Integer

//罗马数字转换为阿拉伯整型#include #include using namespace std;class Solution {public: int map_c(const char c) { switch(c) { case 'I': return 1; case 'V': return 5; case 'X': return 10;

2015-04-03 16:59:57 399

转载 12、Integer to Roman

//注意罗马数字的表示方法#include #include using namespace std;class Solution {public: string intToRoman(int num) { if(num == 0) return 0; string re; //为什么4, 9, 40, 900等会出现, 是应为一个罗马数

2015-04-03 16:56:56 438

转载 11、Container with most water

大概是要找到条纵线然后这两条线以及X轴构成的容器能容纳最多的水。下面以例子:   [4,6,2,6,7,11,2] 来讲解。1.首先假设我们找到能取最大容积的纵线为 i , j (假定i2.下面我们看这么一条性质:①: 在 j 的右端没有一条线会比它高! 假设存在 k |( j aj) ,那么  由 ak> aj,所以 min( ai,aj, ak) =min(ai

2015-04-03 13:58:18 335

原创 centos6.5 安装 Qt5.3.2

直奔主题吧,安装之前,先看看gcc的版本,gcc-v , g++ -v  如果是4.4.7的话建议更新到4.8.2, 如果没有安装g++的话, 建议 yum install gcc  gcc-c++  然后下载源码升级到4.8.2, 网上有很多教程,吐槽一下,其中make占用了很长时间之后就是在http://www.qt.io/download/ 下载Qt了, 自己玩的话一般安装f

2014-12-06 20:26:56 1337

原创 UVa - 445 - Marvelous Mazes(AC)

Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic characters A-Z, * (asterisk), and spaces.Input and OutputYour program will ge

2014-11-17 19:05:51 400

原创 UVa - 414 - Machined Surfaces(AC)

An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.A digital i

2014-11-15 22:21:32 1473

原创 UVa - 490 - Rotating Sentences (AC)

In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program wil

2014-11-15 20:08:36 482

原创 makefile 文件编写

最近在研究plasma库的的使用,

2014-10-20 14:59:08 489

photoshop 实用资源

photoshop 实用资源,适用于初学者和自学者

2010-11-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除