c++ - Error 'LC_TYPE' was not declared in this scope -


i'm writing program in c++ supposed change letters in text uppercase letters(program works, setlocale not working). giving me error. [error] 'lc_type' not declared in scope. "should" work because official faculty literature.

#include <iostream> #include <string> using namespace std; int main() { cout << "write something: " << endl; string tekst; //tekst=text getline(cin, tekst);  setlocale(lc_type, "croatian"); // here problem...  (char znak : tekst){  //znak=char, symbol...     char velikoslovo = toupper(znak); // velikoslovo=uppercaseletter     cout << velikoslovo; } cout << endl;    return 0; } 

anyone knows how fix this?? i'm using orwell dev c++ 5.9.2. language standard (-std) iso c++ 11. here picture.

don't need include #include <clocale> said here

edit: #include <locale.h> should preferred <clocale> reduce portability issues. @cheers mentioning in comments.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -