-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
32 lines (25 loc) · 915 Bytes
/
main.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
#include <iostream>
#include <string>
#include "User.h"
#include "LLMRecommendation.h"
int main() {
// User input
std::string name;
int age;
std::string favoriteActivity;
std::cout << "Welcome! Let's figure out what you might like to do in life." << std::endl;
std::cout << "Please enter your name: ";
std::getline(std::cin, name);
std::cout << "Please enter your age: ";
std::cin >> age;
std::cin.ignore(); // Ignore newline left in the input buffer.
std::cout << "What is your favorite activity? ";
std::getline(std::cin, favoriteActivity);
// Create User object
User user(name, age, favoriteActivity);
user.displayUserInfo();
// Get LLM recommendation
std::string recommendation = LLMRecommendation::generateRecommendation(user);
std::cout << "\nHere is the recommendation for you: " << recommendation << std::endl;
return 0;
}