欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
RudeServer
来自开放百科 - 灰狐
RudeServer: Professional C++ CGI Development Libraries
Libraries
- C++ CGI Parser Library
- C++ Config File Library
- C++ Socket Library
- C++ Database Library
- C++ Session Library
- Sentry RBAC Library
- Wordlet Library
Examples
#include <rude/database.h> #include <iostream>
using namespace std; using namespace rude;
void doStuff(void) { Database *database = Database::instance("mycontext"); if(database->executeQuery("select * from test")) { cout << "Successful\n" } else { cout << database->getError() << "\n"; } } int main(void) { Database::addContext("mycontext","test","root","huihoo","localhost",3306); doStuff(); Database::finish(); return 0; } g++ -o testmysql testmysql.cpp /usr/lib/rudedatabase.lib /usr/lib/libmysqlclient.so debian:/var/www/cgi-bin# ./testmysql Successful
分享您的观点