added sqlite3 file to project

This commit is contained in:
Daniel Jones 2023-09-19 10:33:33 -05:00
parent e343f2e819
commit 1807fafb06
7 changed files with 336 additions and 331 deletions

View File

@ -10,8 +10,13 @@
#include "./ui_mainwindow.h"
#include <iostream>
#include <random>
QString verse_display();
std::string sqlite_func(int day);
std::string verse_grab(int day);
MainWindow::MainWindow(QWidget *parent)
@ -40,18 +45,18 @@ QString verse_display()
{
std::string verse_text;
int verse_day = random_verse();
verse_text = sqlite_func(verse_day);
verse_text = verse_grab(verse_day);
QString returned_string = QString::fromStdString(verse_text);
return "It is receiving text from verse_display()";
return returned_string;
}
std::string sqlite_func(int day){
std::string verse_grab(int day){
std::string my_verse;
my_verse = "Hello, this is a verse!";
return my_verse;
}

BIN
verses Normal file

Binary file not shown.