how to print the result of the mysql querry in c++
myc codes are :
#include<iostream>
#include<mysql/mysql.h>
#include<stdio.h>
#define DATABASE "vobd_db"
using namespace std;
int main()
{
MYSQL_RES *result;
MYSQL *connect;
MYSQL_ROW row;
connect = mysql_init(NULL);
connect = mysql_real_connect(connect, "localhost", "root", "" ,
"database" ,0,NULL,0);
if (connect)
{
cout << "connected successfully\n";
}