![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ Data Structure
文章平均质量分 81
neuwjh88
Email:wangjihang88@gmail.com;
Carnegie Mellon University;立体视觉及应用
展开
-
C++ Data Structure 学习笔记 (2011.5.2)——Cin的用法详解以及文件的读取
今天主要学习Pointer和Array的相关内容,这些问题对我来说都是老生常谈了,较为感兴趣的是那个例子。#include #include using namespace std;int main( ){ int inputVal; vector array; cout while(cin>>inputVal){ array.push_back( inputVal ); } for( int i = 0; i cout system("pause");原创 2011-05-03 12:33:00 · 976 阅读 · 0 评论 -
C++ Data Structure 学习笔记 (2011.5.3)——传值,指针,引用的区别及Vector与String的详细用法
今天学的第一个内容是传值,传引用的问题。在Mark Weiss的书中,他非常简明扼要的对此作了说明:Call by reference is required for objects that may be altered by the function.Call by value is appropriate for small objects that should not be altered by the function.Call by constant reference is appropri原创 2011-05-04 07:58:00 · 1578 阅读 · 0 评论