自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Alan 的专栏

学习札记

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

原创 使用标准库类型size_type时遇到问题。

代码如下时:#include #include using std::cout;using std::cin;using std::endl;using std::string;using string::size_type;int main(){    size_type i;    string st("The expense of spirit/n");    i = st.size(); 

2008-11-12 17:37:00 439

原创 cin、cout的问题

int main(){    string word;    // read until end-of-file, writing each word to a new line    while (cin >> word)         cout     return 0;}学习这段代码的时候,输入“Hello world! Hello C++!“时,得到的结果是Helloworld!Hell

2008-11-12 16:25:00 355

原创 今天看到scope的问题

global scopelocal scopestatement scope这些理解起来并不困难,但作用域嵌套的问题好象有点饶人,以后学到这块的时候得多加注意。

2008-11-11 10:37:00 371

转载 linux下安装软件出错的解决方法

 $ sudo aptitude install scim-qtimm 解决eva 下无法使用 scim输入法的问题,~ af,g jwev}0(1)#GsnZOT`4Ka)S3{0sudo ./configure --prefix=/usr m B*T0Ady8l:v0之后出现一下错误:D#xo7myF4j0checking how to r

2008-11-07 15:44:00 1734

原创 变量名的问题

Exercise   2.14:Which, if any, of the following names are invalid? Correct each identified invalid name.(a) int double = 3.14159; (b) char _;(c) bool catch-22;        (d) char 1_or_2 =1;(e) float Fl

2008-11-06 16:08:00 310

转载 C++练习遇到问题,要注意赋值操作符“=”和比较操作符“==”的区别。

 习题1-23代码如下:#include #include "Sales_item.h"int main(){ Sales_item item, sum; int num=0; while(std::cin >> item) {  if(num = 0)   {    sum = item;   }    else   {   

2008-11-05 16:37:00 237

原创 ubuntu更新问题

问题:更新出错信息E: /var/cache/apt/archives/linux-image-2.6.27-7-generic_2.6.27-7.16_i386.deb: 无法在安装新的版本前,为“./boot/vmlinuz-2.6.27-7-generic”做一个符号链接备份解决办法:终端输入:sudo rm -fv /boot/initrd.img-2.6.27*.baksudo rm -

2008-11-05 15:58:00 489 1

原创 理解数据类型

练习1-17:Write a program to ask the user to enter a series of numbers.Print a message saying how many of the numbers arenegative numbers.自己写的代码如下:#include int main(){    int num = 0 ,val;    while (std:

2008-11-04 18:03:00 216

原创 学习c++,教材选cpp primer 4th。

每天白天利用上班的时间学,争取10周的时间把书看过来吧。

2008-11-04 18:00:00 289

UML基础、案例与应用(第三版)

UML基础、案例与应用第三版中文高清版本

2011-09-09

空空如也

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

TA关注的人

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