-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
59 lines (43 loc) · 1.38 KB
/
Copy pathmain.cpp
File metadata and controls
59 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/******Developer notes******
Cbot is an *intelligent* chatting bot. Cbot is designed to make conversation based on sentence structure utilizing a knowledge database.
*/
/// TODO: Create logic conditionals for the sentence types in think.cpp ...
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <vector>
#include <sqlite3.h>
#include <sqldatabase.h>
#include <converse.h>
#include <think.h>
using namespace std;
int main()
{
vector<word> sentence;
bool userLeaving = false;
//Initial greeting, maybe move this into converse.h
cout << "Hello world, I am cbot!" << endl;
cout << "I have been designed to enjoy conversations, say whatever's on your mind!" << endl;
do
{
//Get the user sentence and place into vector
getUserSentence(sentence);
///Determine the sentence type utilizing a database of vocabulary
parseSentence(sentence);
//Function to structure a response here
//Function to output a response here
for(unsigned i = 0; i < sentence.size(); i++)
{
cout << sentence.at(i).type << endl;
}
for(unsigned i = 0; i < sentence.size(); i++)
{
cout << sentence.at(i).name << endl;
}
cout << sentence.size();
///PLACE THIS SOMEWHERE ELSE, IT IS UGLY!!!
}
while(!userLeaving);
return 0;
}