MSFN Forum: [C++] Upper case string to lower case string - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[C++] Upper case string to lower case string Rate Topic: -----

#1 User is offline   gamehead200 

  • SEARCH!!! SEARCH!!!
  • Group: Super Moderator
  • Posts: 7,019
  • Joined: 02-September 02
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 06:09 PM

Is there a way to convert an upper case string and/or a string with upper and lower case letters to a string with just lower case letters?


#2 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 07:03 PM

.

This post has been edited by crahak: 07 November 2006 - 07:05 AM


#3 User is offline   gamehead200 

  • SEARCH!!! SEARCH!!!
  • Group: Super Moderator
  • Posts: 7,019
  • Joined: 02-September 02
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 07:05 PM

Is that a function? :}

#4 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 07:06 PM

.

This post has been edited by crahak: 07 November 2006 - 07:05 AM


#5 User is offline   gamehead200 

  • SEARCH!!! SEARCH!!!
  • Group: Super Moderator
  • Posts: 7,019
  • Joined: 02-September 02
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 07:08 PM

crahak, on Oct 13 2004, 09:06 PM, said:

yes, called like such: do_lowcase(text);

the idea is to use tolower anyways.

I tried using tolower out of a function (within the program), but it wasn't working for some weird reason...

I'll try this and let you know! ;)

#6 User is offline   gamehead200 

  • SEARCH!!! SEARCH!!!
  • Group: Super Moderator
  • Posts: 7,019
  • Joined: 02-September 02
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2004 - 07:08 PM

Quote

20 C:\DOCUME~1\Michael\Desktop\C__PRO~1\CHARAC~1\main.cpp cannot convert `std::string' to `char*' for argument `1' to  `void do_lowcase(char*)'


:realmad:


:P

Awww, crap... Did I mention it had to be a string? Calling the string doesn't work with do_lowcase(sent); ...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy