cout<<"Enter your weight in kgs: "<<flush;if(!(cin>>weight)){cout<<"You did not enter a correct number!"<<endl;// Leave the program, or do something appropriate:}
Also make sure to add the #help tag to reach more visibility
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Does this work ?
Also make sure to add the #help tag to reach more visibility