3 votes
Accepted

pset2 vigenere error "incompatible integer to pointer conversion"

The types char, short, int, long int, and long long int are often referred to as integer types. Per its manual, the function atoi takes a value of type const char *. I assume your variable named k is ...
user avatar
  • 17.4k
2 votes
Accepted

What does the try and catch block do inside query()?

An exception is sort of a tolerable error. When you write some code that might throw an exception, you better enclose it with a try block. If an exception occurred, you may catch it with a catch block....
user avatar
  • 17.4k

Only top scored, non community-wiki answers of a minimum length are eligible