hikyuu2/hikyuu_cpp/demo/demo.cpp

19 lines
347 B
C++
Raw Normal View History

// demo.cpp : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨Ӧ<CCA8>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ㡣
//
#include <hikyuu/hikyuu.h>
using namespace hku;
int main(int argc, char* argv[])
{
//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
hikyuu_init("c:\\stock\\hikyuu_win.ini");
StockManager& sm = StockManager::instance();
Stock stk = sm.getStock("sh000001");
std::cout << stk << std::endl;
return 0;
}