
abstraction c++
文章平均质量分 79
火车上遇见
这个作者很懒,什么都没留下…
展开
-
使用斯坦福的库计算机绘图
这里需要安装QT,之前的篇章中有介绍,专门用于C++的图形库。下载斯坦福的库地址https://pan.baidu.com/s/1qYS6Pqs库主要包含一个empty-project.pro就是文件的目录结构,qt的专用格式,相当于目录树的形式。包含各个子类文件夹collections 容器类的库graphics 图形相关的库io原创 2017-03-28 11:40:46 · 1596 阅读 · 2 评论 -
string类的基本使用,编写一个字符串处理程序
这是一个字符串处理程序,按照老外的注释的意思就是将英文单词按一定的规则转换成为某种拉丁文字。运用到截取字符串,合并字符串,遍历字符串等规则,感觉它的结构非常清晰。/* * This program converts lines from English to Pig Latin * This dialect of Pig Latin applies the following ru原创 2017-03-29 09:52:33 · 2444 阅读 · 0 评论 -
C++标准输入输出流stream介绍
This chapter begins by giving you more insight into the features provided by the > operators. It then moves on to introduce the notion of data files and shows you how to implement file-processing appl原创 2017-03-29 13:03:02 · 1407 阅读 · 0 评论 -
C++ collection容器基础知识
最常见的类为vector,基本上可以取代C的array,而且比array好用很多。下面这个例子,是从文件中读取所有的行存入到lines中,然后输出。不用去管promptUserForFile以及readEntireFile怎么实现的,包含那个库很重要。#include #include #include #include "filelib.h"#include "vecto原创 2017-03-31 10:12:49 · 2077 阅读 · 0 评论 -
c++ 标准输入输出流基础
有三个重要的对象cin cout cerr以及一些manipulator有的带参数,有的不带参数。/* * This program demonstrates various options for floating-point output * by displaying three different constants (pi, the speed of light原创 2017-04-12 10:33:23 · 884 阅读 · 0 评论 -
c++ 标准库中的容器collection基础
主要有五个容器This chapter introduces five classes - Vector, Stack, Queue, Map, and Set - each of which represents an important abstract data types.Being able to separate the behavior of a class from it原创 2017-04-12 13:05:18 · 2676 阅读 · 0 评论 -
c++基础 类的设计
Designing ClassesWhen you work with structures or classes in C++, it is important to keep in mid that the definition introduces a new types and doesn't in itself declare any variables.Once you hav原创 2017-04-12 20:03:59 · 530 阅读 · 0 评论