1
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
The only obvious problem that I am seeing, is that you are passing an object of type string to your convertToUpper() function that takes a parameter of type char *.
Your convertToUpper() function should be called like this :
convertToUpper(s.c_str());
EDIT : In your comment, you have mentione...