[code:1]
#include<mysql++.h>
#include<iostream>
#include<iomanip>
#define HOST "localhost"
#define USER "root"
#define PASS ""
#define DATABASE "test"
using namespace std;
int main(int argc,char *argv[])
{
int i;
mysqlpp::Connection con(DATABASE,HOST,USER,PASS);
mysqlpp::Query query = con.query();
query << "select * from address";
mysqlpp::Result res=query.store();
if(res) {
mysqlpp::Row row;
mysqlpp::Row::size_type i;