test-datetime.cpp
来自「LiteSQL is a C++ library that integrates」· C++ 代码 · 共 18 行
CPP
18 行
#include "litesql.hpp"#include <iostream>using namespace std;using namespace litesql;int main(int argc, char **argv) { FieldType dummy("", "", ""); Field<Date> fd(dummy); fd = string("1233"); Field<DateTime> fdt(dummy); fdt = string("123"); Field<Time> ft(dummy); ft = string("123"); cout << fd.value().asString() << endl; cout << fdt.value().asString() << endl; cout << ft.value().asString() << endl; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?