I
Ioannis Vranos
Ioannis said:What compiler are you using? Doesn't this compile to your compiler?
#include <cctype>
#include <string>
#include <algorithm>
#include <iostream>
#include <ostream>
int main()
{
using namespace std;
string s="THiS iS a TeST STRiNG";
transform(s.begin(), s.end(), s.begin(), tolower);
cout<<s<<endl;
}
C:\c>cl /clr temp.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.41013
for Microsoft (R) .NET Framework version 2.00.41013.0
Copyright (C) Microsoft Corporation. All rights reserved.
temp.cpp
Microsoft (R) Incremental Linker Version 8.00.41013
Copyright (C) Microsoft Corporation. All rights reserved.
/out:temp.exe
temp.obj
C:\c>temp
this is a test string
C:\c>