so the Standard Template Library isn't portable\ANSI?
i'm studing C++ using the Teach Your Self C++ in 1 Hour a Day. but seems these code isn't correct for GNU compiler:
Code:
#include <string>
#include <iostream>
#include <algorithm>


int main ()
{
    using namespace std;


    cout << "Please enter a string for case-convertion:" << endl;
    cout << "> ";


    string strInput;
    getline (cin, strInput);
    cout << endl;


    transform(strInput.begin(),strInput.end(),strInput.begin(),toupper);
    cout << "The string converted to upper case is: " << endl;
    cout << strInput << endl << endl;


    transform(strInput.begin(),strInput.end(),strInput.begin(),tolower);
    cout << "The string converted to lower case is: " << endl;
    cout << strInput << endl << endl;


    return 0;
}
i get several errors:
"C:\Users\Joaquim\Documents\CodeBlocks\test\main.cpp|16|error: no matching function for call to 'transform(std::basic_string<char>::iterator, std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)'|"
so seems these book isn't the best
but can anyone advice me?