-
Notifications
You must be signed in to change notification settings - Fork 0
/
Functions.cpp
52 lines (43 loc) · 853 Bytes
/
Functions.cpp
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
#include <vector>
#include <algorithm>
#include <string>
#include <iostream>
#include <pqxx/pqxx>
#include <io.h>
#include "Functions.h"
using namespace std;
string Work ::display(const string &col) // Displays Column Name Normally
{
int n = col.size();
string display;
for (int i = 0; i < n; i++)
{
if (i == 0 || col[i - 1] == '_')
display += toupper(col[i]);
else if (col[i] == '_')
display += ' ';
else
display += col[i];
}
return display;
}
void Work ::checkIn(pqxx::connection &conn)
{
;
}
int Work::maxVal(pqxx::connection &conn, const std::string &col)
{
return 0;
}
void Modify ::createHabit(pqxx::connection &conn)
{
;
}
void Modify ::updateHabit(pqxx::connection &conn)
{
;
}
void Modify ::dropHabit(pqxx::connection &conn)
{
;
}