c++
文章平均质量分 79
GGJJLLDD
这个作者很懒,什么都没留下…
展开
-
Why isn't main defined `main(int argc, std::vector<std::string> argv)`?
This question is only half tongue-in-cheek. I sometimes dream of a world without naked arrays or c strings. If you're using c++, shouldn't the preferred definition of main be something like: int m转载 2012-05-11 11:18:55 · 1424 阅读 · 1 评论 -
c++ prime+查询程序设计
TextQuery.h #include #include #include #include #include #include #include #include using namespace std; class TextQuery{ public: typedef vector::size_type line_no; v转载 2012-05-14 09:07:48 · 856 阅读 · 0 评论 -
c++prime+重虚函数设计
#include #include using namespace std; class worker{ public: int id; string name; worker(int id1=0,string name1=" ",float salary1=0.0):id(id1),name(name1),salary(salary1) {} virtual void原创 2012-05-23 16:07:19 · 878 阅读 · 0 评论 -
unix环境高编中exec函数实例
#include using namespace std; int main(int argc,char *argv[]) { cout return 0; } g++ -o ss ss.cpp extern "C"{ #include } #include using namespace std; int main() { pi原创 2012-06-15 11:32:34 · 1926 阅读 · 0 评论 -
dell 计算机笔试题 英文写作
In a few month' time you are going to graduate from university . How do you think your college years have prepared you for your future life? Write an essay of 200 words on the following topic:What I原创 2013-01-20 20:02:02 · 801 阅读 · 0 评论 -
binary tree to list
/* * tree.cpp * * Created on: 2014-2-4 * Author: aeris */ #include #include #include #include using namespace std; struct node{ int name; node * left_child; node * right_child; };原创 2014-02-04 21:13:06 · 840 阅读 · 0 评论 -
校园招聘题目分享-c/c++
1. 编写类String的构造函数,析构函数,赋值函数。已知类String的原型为: class String { public: String(const char *str = NULL); //普通构造函数 String(const String &other); //拷贝构造函数 ~String(void); //析构函数 String &oper转载 2014-03-03 18:35:37 · 971 阅读 · 0 评论