Like many who post here, I am new and quite crappy with c++. I have to perform a ratio for my homework. Essentially, if someone plugs in "4 shoes" and "8 Laces," my final ratio/output should say "shoe-to-lace ratio .5" i.e., "shoes" has to become "shoe," no s. Here is my current code, but I don't know crap about substrings:
cout << "How many in the first category? ";
cin >> first_category >> category_1;
cout << "How many in the second category? ";
cin >> second_category >> category_2;
cout << "\n ";