Sorry if this is obvious but I'm very new to c++, thanks in advance
#include <iostream>
bool conduct_it_support(bool on_off_attempt) {
std::cout << "Have you tried turning it off and on again? (true / false)\n";
std::cin >> on_off_attempt;
if(on_off_attempt == false) {
return false;
}
else {
return true;
}
return on_off_attempt;
}
int main() {
bool attempt;
conduct_it_support(attempt); {
std::cout << "so it was " << attempt << "?\n";
}
}
I excpect this to be either: "so it was true/false?" Sorry if this is obvious but I'm very new to c++, thanks in advance