Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
Added std:: before cin to allow the program to compile
  • Loading branch information
mbridgnell authored Sep 20, 2023
1 parent 21be78a commit bd81a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int main(){

do{
std::cout << "Enter a color in hex format (#RRGGBB):";
std::getline(cin, input);
std::getline(std::cin, input);

if( input.size() != RGB_HEX_LENGTH ){
std::cout << "Please enter the color in hexadecimal format, starting with # followed by six hex values\n";
Expand All @@ -17,4 +17,4 @@ int main(){
std::cout << "Your hex color is: " << input << std::endl;

return 0;
}
}

0 comments on commit bd81a46

Please sign in to comment.