C++
文章平均质量分 68
u010799939
从事电信BOSS运营系统的开发,能熟练使用C/C++编程、熟悉shell脚本语言、熟悉Oracle\TT数据库,熟悉电信计费的业务流程,具有通信知识背景,能快速的定位问题、解决问题,具有大型项目开发经验、熟悉开发流程,能够及时、准确的完成需求。肯吃苦,适应出差。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++动态绑定和模板的简单配合使用(virtual关键字)
对于C++新人来说,virtual就能把我们搞的一头雾水,就更别提牛B闪闪、功能如霸王龙般强大的模板了,有的事情从简单着手,未必不是一个好的策略!下面是对virtual和template的简单使用#includeusing namespace std;class A {public:virtual void printPrice(string _string){原创 2013-06-08 17:31:51 · 1730 阅读 · 0 评论 -
初次使用流迭代器从标准输入读取整型数据,根据奇、偶性写入不同文件
#include #include #include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ //此处为模板,初次使用容易漏掉 istream_iterator inIter(cin),eof; ofstream原创 2013-10-29 16:35:41 · 1025 阅读 · 0 评论 -
在类外定义的函数,被成员函数调用时,报运行时错误error LNK2005:已经在 classinfo.obj 中定义
问题描述:为了确定作用域的查找过程,在类体外定义了一个函数,当函数为普通函数时,被成员函数调用可以通过编译 得出结论:查找函数声明的过程为,在成员函数实现之前,会先查找类定义,然后查找全局声明,即便全局声明在类体后声明,也可以被找到但运行时则程序报错,将普通函数改为inline函数后,链接错误消失,没搞明白为什么,有知道的大牛可以给解释一下,先谢过了!报错信息如下原创 2013-10-30 16:21:48 · 1716 阅读 · 0 评论 -
打开文件读取信息,统计单词长度大于指定值的个数
#include #include #include #include #include #include #include using namespace std;typedef vector::const_iterator VecIter;const int ELEMENTLENGTH = 5;//指定元素长度的判定值//打印指定容器内的元素值v原创 2013-10-29 14:37:09 · 1341 阅读 · 0 评论 -
从文件中读取作者和书籍信息,存入multimap,使用find查找指定作者并删除
#include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ ifstream input("inputfile.txt"); string author,bookname; multimap bookInfo; //将文件中信息原创 2013-10-29 09:43:53 · 1312 阅读 · 1 评论 -
从一个文件中读取明密对照表,翻译密文(注释部分为c++primer标准答案,非注释部分自己写的)
// stringconvert.cpp : 定义控制台应用程序的入口点。//#include #include #include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){// string key,value;//原创 2013-10-28 17:44:33 · 1155 阅读 · 0 评论 -
一组数据,copy一份至list,一份至vector,list中erase奇数,vector中erase偶数
#include "stdafx.h"#include #include #include #include #include int main(){ int ia[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 55, 89 }; int lengthArray = sizeof(ia)/sizeof(int);原创 2013-10-26 15:37:14 · 818 阅读 · 0 评论 -
C++,输入一组数据,降序排列后,删除三个连续元素的中间值
#include #include #include #include using namespace std;//获取输入的数据int getInputData(vector &ivec, string s1){ size_t comma = s1.find(','); int num1 = atoi(s1.substr(0,comma).c_原创 2013-10-26 15:40:08 · 1173 阅读 · 0 评论 -
C++,输入一组数字,并对其升序排序,删除指定范围内的元素
#include #include #include #include using namespace std;int main(){ string inputString; vector sVec; cout<<"Please input the input string :"; while (cin>>inputString) { sVec.p原创 2013-10-26 15:38:55 · 1997 阅读 · 0 评论 -
C++,输入字符串,删除重复次数最多的字符
#include #include #include #include #include #include using namespace std;typedef map fMap;//从原始数据中,获取包含字母出现次数的mapint getMap(vector cVec, fMap &mapList){ vector::const_iterator原创 2013-10-26 15:41:17 · 1415 阅读 · 0 评论 -
容器的比较和字符串的比较
容器的比较和字符串的比较是相同的容器的比较:优先判断字符串的长度ivec1:5,1,2,3,4ivec2:0,1,2,3,4,5string1 "51234"string2 "012345"容器:ivec2 比 ivec1长,所以ivec1 > ivec2字符串:string1的第一数字比string2的第一个数字大,所以string1 > string2相等判断:原创 2013-07-04 08:17:58 · 935 阅读 · 0 评论 -
对指定大小的容器使用类类型对象进行初始化的理解
One example of an operation that imposes a type constraint is the constructors that take a single initializer that specifies the size of the container. If our container holds objects of a class type,原创 2013-07-01 19:23:33 · 870 阅读 · 0 评论 -
每天学点C++
---------------------------------不积小流,无以成江海;不积跬步,无以至千里-------------------------------------1.explicit主要用于 "修饰 "构造函数. 指明构造函数只能显示使用,目的是为了防止不必要的隐式转化2.基类派生子类时,希望派生类重写哪些函数,需要由基类指定,指定方法为加virtual修饰,不加vir原创 2013-06-08 14:37:16 · 816 阅读 · 0 评论 -
每天学点C++(二)
1、派生类与基类的关系之一class A {};class B : public A { void print( A&a ) {} void printCopy( A a ) {} }; B b; print(b);将B的对象传给接受基类引用的函数,并非将a对象转换为b对象,b本身也未被复制,只是将引用直接绑定到b对象(理解可能有点误差)B b原创 2013-06-18 18:46:22 · 753 阅读 · 0 评论 -
(找到原因了)(又改了下,感觉有个最下面那块函数,应传入指针的指针)求求哪位大神给看看吧,为何注释部分放开竟然会出错,琢磨一天了啊,万分感谢!!!!!!!!!!!!!!!!!!!!
SharedPtr.h#pragma once#include #include using namespace std;class SharedPtr{public: friend class NoName; SharedPtr(string* p):sharedPtr(p),count(1){} ~SharedPtr(void);private:原创 2013-11-02 15:44:02 · 1280 阅读 · 1 评论
分享