Linked Questions

4 votes
1 answer
16k views

I want to convert a std::string to uppercase. I am aware of the function toupper(), however in the past I have had issues with this function and it is hardly ideal anyway as use with a string would ...
Manish Kumar's user avatar
1 vote
3 answers
2k views

Possible Duplicate: Convert a String In C++ To Upper Case Hi, I need a portable function to convert string in c++ to upper case. I'm now using toupper( char); function. Is it a standard function? ...
kangcz's user avatar
  • 305
1 vote
2 answers
349 views

I want to replace all of the Uppercase letters in string with lowercase letters is there any function to do so because the replace function is not giving any result. Here is my code.. for (int i = ...
Ayoub's user avatar
  • 25
0 votes
1 answer
237 views

I am originally a Java programmer and I have a deep love of the syntax, especially regarding the String object. With C++, I have tried to recreate the toUpperCase() method that Java has. The only ...
Mackenzie's user avatar
-6 votes
1 answer
233 views

I'm working on a side assignment for fun and want to capitalize the output from whatever the user entered using ::toupper but I'm struggling. This is what I have so far; #include <cctype> #...
FindMeTheArrayGuy's user avatar
0 votes
1 answer
105 views

I am writing a program that can count the number of times a word is found in a external file. The words that are to be searched for are also in an external file but I am able to retrieve those just ...
jayoguntino's user avatar
147 votes
10 answers
22k views

I was solving some problem on codeforces. Normally I first check if the character is upper or lower English letter then subtract or add 32 to convert it to the corresponding letter. But I found ...
Devon 's user avatar
  • 1,263
211 votes
6 answers
145k views

In the book "Complete Reference of C" it is mentioned that char is by default unsigned. But I am trying to verify this with GCC as well as Visual Studio. It is taking it as signed by default. Which ...
C Learner's user avatar
  • 2,367
30 votes
25 answers
20k views

In our legacy code, as well as our modern code, we use macros to perform nifty solutions like code generations, etc. And we make use of both the # and ## operators. I am curious how other developers ...
39 votes
7 answers
155k views

I need to convert a string in C++ to full upper case. I've been searching for a while and found one way to do it: #include <iostream> #include <algorithm> #include <string> ...
ThomasW's user avatar
  • 531
6 votes
17 answers
2k views

This simple solution popped into my mind quickly. #include <ctype.h> int digit_exists_in ( const char *s ) { while (*s) { if (isdigit(*s)) { return 1; ...
EvilTeach's user avatar
  • 29k
20 votes
10 answers
25k views

How we can convert a multi language string or unicode string to upper/lower case in C or C++.
Pankaj's user avatar
  • 366
51 votes
2 answers
6k views

Many methods found in high-performance algorithms could be (and are) simplified if they were allowed to read a small amount past the end of input buffers. Here, "small amount" generally ...
BeeOnRope's user avatar
  • 66.3k
8 votes
9 answers
65k views

So I'm following the tutorials on this page: http://www.cplusplus.com/doc/tutorial/control/ But I'm having trouble doing a range/based for loop. I found this page: GNU GCC compiler updatingThe answer ...
Sindre's user avatar
  • 377
13 votes
3 answers
8k views

Are SIMD instructions built for vector numerical calculations only? Or does it lend itself well to a class of string manipulation tasks like, writing rows of data to a text file where the order of the ...
sprkv5's user avatar
  • 167

15 30 50 per page
1
2 3 4 5