以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 期货人生 (http://222.73.7.161/bbs/list.asp?boardid=7) ---- ctp (http://222.73.7.161/bbs/dispbbs.asp?boardid=7&id=50885) |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/4/10 10:12:23 -- ctp
|
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/4/16 14:47:40 -- ReqQrySettlementInfoConfirm OnRspQrySettlementInfoConfirm ///////////////////////////////////////////////////////////////////// ReqSettlementInfoConfirm OnRspSettlementInfoConfirm ///////////////////////////////////////////////////////////////////// ReqQrySettlementInfo OnRspQrySettlementInfo
|
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/4/28 11:10:41 -- int main(){ int* a = new int(2); cout << "a指向的对象的地址=" << a << endl; system("pause"); |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/4/28 11:19:34 -- #include <iostream> void swap1(int a,int b){ cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; int temp = a; cout << "--------------" << endl; cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; void swap2(int* a,int* b){ cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; int temp = *a; cout << "--------------" << endl; cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; void swap3(int& a,int& b){ cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; int temp = a; cout << "--------------" << endl; cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl;
int main(){ cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; //swap1(a,b); cout << "--------------" << endl; cout << "a的地址=" << &a << endl; cout << "b的地址=" << &b << endl; system("pause"); |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/4/28 11:41:51 -- #include <iostream> using std::cout; using std::endl; void swap1(int a,int b){ cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; //cout << "a指向的对象的地址=" << &(*a) << endl; //cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; //cout << "b指向的对象的地址=" << &(*b) << endl; //cout << "b指向的对象的值=" << *b << endl; int temp = a; a = b; b = temp; cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; //cout << "a指向的对象的地址=" << &(*a) << endl; //cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; //cout << "b指向的对象的地址=" << &(*b) << endl; //cout << "b指向的对象的值=" << *b << endl; } void swap2(int* a,int* b){ cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; cout << "a指向的对象的地址=" << &(*a) << endl; cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; cout << "b指向的对象的地址=" << &(*b) << endl; cout << "b指向的对象的值=" << *b << endl; int temp = *a; *a = *b; *b = temp; cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; cout << "a指向的对象的地址=" << &(*a) << endl; cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; cout << "b指向的对象的地址=" << &(*b) << endl; cout << "b指向的对象的值=" << *b << endl; } void swap3(int& a,int& b){ cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; //cout << "a指向的对象的地址=" << &(*a) << endl; //cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; //cout << "b指向的对象的地址=" << &(*b) << endl; //cout << "b指向的对象的值=" << *b << endl; int temp = a; a = b; b = temp; cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; //cout << "a指向的对象的地址=" << &(*a) << endl; //cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; //cout << "b指向的对象的地址=" << &(*b) << endl; //cout << "b指向的对象的值=" << *b << endl; } int main(){ int* a = new int(2); int* b = new int(3); cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; cout << "a指向的对象的地址=" << &(*a) << endl; cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; cout << "b指向的对象的地址=" << &(*b) << endl; cout << "b指向的对象的值=" << *b << endl; //swap1(*a,*b); //swap2(a,b); swap3(*a,*b); cout << "---------------------------" << endl; cout << "a的地址=" << &a << endl; cout << "a的值=" << a << endl; cout << "a指向的对象的地址=" << &(*a) << endl; cout << "a指向的对象的值=" << *a << endl; cout << "b的地址=" << &b << endl; cout << "b的值=" << b << endl; cout << "b指向的对象的地址=" << &(*b) << endl; cout << "b指向的对象的值=" << *b << endl; system("pause"); } |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/5/3 22:24:38 -- #include <string> using namespace std; class Point{ ~Point(){ int main(){ Point(1); {Point b(2);} Point* c = new Point(3); delete c; c = nullptr; system("pause");
|
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/5/4 15:11:06 -- #include <iostream> class Point private: }; Point::Point() Point::~Point() int main(){ Point* p = new Point[2]; delete [] p; p = nullptr; system("pause"); |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/5/17 13:39:55 -- 仓位,杠杆,风险
80%,5倍,1% |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/5/30 11:54:03 -- 按交易标的分:价格投机,价差套利 按是否顺势分:趋势投机,逆势投机,趋势套利,逆势套利 按持仓周期分:高频,短线,中线,长线 |
|||||||||||||||
-- 作者:z7c9 -- 发布时间:2013/5/30 11:59:26 -- 强者恒强 弱者恒弱 强弱转换 套利 |