//对象做函数参数 //1 研究拷贝构造 //2 研究构造函数,析构函数的调用顺序 //总结 构造和析构的调用顺序 #include "iostream" using namespace std; class ABCD { //this() public: ABCD(int a, int b, in
分类:
编程语言 时间:
2016-02-05 18:55:29
阅读次数:
194
#include "iostream" using namespace std; class A { public: A(int _a1) { a1 = _a1; } protected: private: int a1; }; //构造函数的初始化列表产生原因 //语法现象 class B { p
分类:
其他好文 时间:
2016-02-05 18:52:38
阅读次数:
133
#include<iostream> using namespace std; double a[2001][2001],dis[2001]={0},minn; int n,m,i,j,k,x,y,f[2001]={0}; void init() { cin>>n>>m; for(i=1;i<=m;
分类:
其他好文 时间:
2016-02-05 18:37:58
阅读次数:
157
将奇数位的数放在一起,将偶数位的放在一起并放在奇数位的后面。 #include <map>#include <iostream>#include <vector>using namespace std; struct ListNode { int val; ListNode *next; ListN
分类:
其他好文 时间:
2016-02-05 18:36:19
阅读次数:
133
1. WebApi 和WebConfig 设置 using Libaray.DAL.Services; using Libaray.Models.Entities; using System; using System.Collections.Generic; using System.Linq;
1 #include "iostream" 2 using namespace std; 3 4 5 class Location 6 { 7 public: 8 Location(int xx = 0, int yy = 0) 9 { 10 X = xx; Y = yy; 11 cout << X
分类:
其他好文 时间:
2016-02-05 12:10:31
阅读次数:
228
Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. Subscribe to see which companies asked
分类:
其他好文 时间:
2016-02-05 01:38:34
阅读次数:
132
1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <queue> 6 using namespace std; 7 8 struct node 9 { 10
分类:
其他好文 时间:
2016-02-05 01:33:16
阅读次数:
177
源代码: #include<cstdio>#include<cstring>#include<queue>using namespace std;queue <int> h;int i[1001][1001],j[1001],n,k; //要想节省空间,会不会有更好的方法呢?bool f[1001]
分类:
编程语言 时间:
2016-02-05 01:30:01
阅读次数:
205
1 # include<iostream> 2 # include<string> 3 # include<iomanip> 4 # include<cmath> 5 using namespace std; 6 int a=0,b=0,c=0; 7 void getPar(string s,int
分类:
其他好文 时间:
2016-02-05 01:13:14
阅读次数:
198