Toupper problem

The following code does not build
// Short progeam to test use of toupper function

#include "stdafx.h"
#include <string>
#include <iostream>
#include <ctype.h>
using namespace std;

int main()
{
string fin = "doctype" ;
string Fin = toupper(fin);
cout << Fin << endl;

return 0;
}
I get the message
1 IntelliSense: no suitable constructor exists to convert from "int" to "std::basic_string<char, std::char_traits<char>, std::allocator<char>>" c:\CPP2013\Consoletoupper\Consoletoupper\Consoletoupper.cpp 15

Topic archived. No new replies allowed.