3034ccom/final/War.cpp
string War::assignVal(string in) {

  if (in == "A") return "0";
  else if (in == "J") return "11";
  else if (in == "Q") return "12";
  else if (in == "K") return "13";
  return in;

}
// assignVal:
//  input: string in
//  output:: a string with the corresponding
//  numeric representation of in
string in
output:: a string with the corresponding
numeric representation of in
string in output :: a string with the corresponding numeric representation of in
string War::assignVal(string in) {
  if (in == "A") return "0";
  else if (in == "J") return "11";
  else if (in == "Q") return "12";
  else if (in == "K") return "13";
  return in;
}
string War :: assignVal ( string in ) { if ( in == " " ) return " " ; else if ( in == " " ) return " " ; else if ( in == " " ) return " " ; else if ( in == " " ) return " " ; return in ; }
assignVal:
input: string in
output:: a string with the corresponding
numeric representation of in
assignVal : input : string in output :: a string with the corresponding numeric representation of in