c++与SQL数据库的简单例子

来源:百度知道 编辑:UC知道 时间:2024/05/28 20:55:33
求一个例子.
要手把手教我做
不满意,我不懂的是SQL,你给我HELLO WORLD干什么

#include <iostream>
#include <sstream>
#include <string>
#include <cstdio>
using namespace std;
int main()
{
string name="Niels Stroustrup";
string s=name.substr(6,10);
name.replace(0,5,"Nicholas");
printf("name:%s\n",name.c_str());
}
试试

楼上的,不会吧,这也行,
------------------------------
楼主:手把手恐怕很难找到人教,