lundi 24 février 2020

How to get the number of words from string with c++ from maria db data

** I want to get the number of words from a string, with the data from mariadb**

but I got a warning like this: no matching function for call to

if(!qstate){
        res = mysql_store_result(conn);

        while(row = mysql_fetch_row(res)){
        string hadis = row[0];
        cout<<hadis<<endl;
        if(isspace (hadis) || ispunct (hadis))
                {
                    spasi++;
                }
            cout << "\t Jumlah Kata = "<< spasi +1 <<"\n\n";

Aucun commentaire:

Enregistrer un commentaire