I have the following code:
#include <iostream>
using namespace std;
int main() {
string INPUT;
std::cout << "exp?:" << std::endl;
std::cout << "[1] r" << std::endl;
std::cout << "[2] j" << std::endl;
if (INPUT == "1") cout << "how your day[1]good[2] fnef" << std::endl;
if (INPUT == "1") cout << "good" << std::endl;
if (INPUT == "2") cout << "2" << std::endl;
return 0;
}
I want it to be able to take input so I can enter 1
and have it not output both "exp [1]fjrnf [2] fnef"
and "test1"
.