Frank Schönmann: C++ strtolower

Beitrag lesen

hi!

ausgezeichnete hilfe.

Ich weiß nicht genau, was ihr da programmiert, aber das ist weder C++ noch
ANSI-C. In C++ sähe das ungefähr so aus:

  
#include <iostream>  
#include <string>  
  
using namespace std;  
  
int main(int argc, char **argv) {  
  string s = "HALLO WELT!";  
  cout << "Before: " << s << endl;  
  transform(s.begin(), s.end(), s.begin(), ::tolower);  
  cout << "After:  " << s << endl;  
}  

bye, Frank!

--
Never argue with an idiot. He will lower you to his level and then
beat you with experience.