?? quote3.cpp
字號:
#include <iostream.h>#include "soapQuoteProxy.h" // get proxy#include "Quote.nsmap" // get namespace bindingsclass Stock : public Quote // Quote is the name of the service (see quote3.h and Quote.wsdl){ public: char *symbol; // Stock ticker Stock() : Quote() { symbol = NULL; }; Stock(char *ticker) { symbol = ticker; }; void ticker(char *ticker) { symbol = ticker; }; float quote() { float q; getQuote(symbol, q); return q; };};int main(){ Quote q; float r; // Example using the Quote proxy class directly: if (q.getQuote("AOL", r) == SOAP_OK) cout << r << endl; else soap_print_fault(q.soap, stderr); // Example using the derived Stock proxy class: Stock IBM("IBM"); cout << IBM.quote() << endl; return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -