Search
 
SCRIPT & CODE EXAMPLE
 

CPP

string to upper c++

std::string data = "This is a sample string.";
// convert string to upper case
std::for_each(data.begin(), data.end(), [](char & c){
c = ::toupper(c);
});
Comment

toupper c++

int result = toupper(charecterVariable);// return the int that corresponding upper case char
//if there is none then it will return the int for the original input.
//can convert int to char after
char result2 = (char)toupper(variableChar);
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to convert string to int in c++ 
Cpp :: c++ print text 
Cpp :: c++ changing string to double 
Cpp :: how to write a template c++ 
Cpp :: length of a string c++ 
Cpp :: search by value in map in stl/cpp 
Cpp :: what do you mean by smallest anagram of a string 
Cpp :: vector of threads thread pool c++ 
Cpp :: exponent power of x using c c++ 
Cpp :: comparator priority queue c++ 
Cpp :: qt make widget ignore mouse events 
Cpp :: c++ program to convert celsius to kelvin 
Cpp :: User defined functions and variables in C++ programming 
Cpp :: print Colored text in C++ 
Cpp :: C++ Program to Find the Range of Data Types using Macro Constants 
Cpp :: power in c++ 
Cpp :: function c++ example 
Cpp :: store array in vector 
Cpp :: Basic Input / Output in C++ 
Cpp :: std::future 
Cpp :: c++ include < vs "" 
Cpp :: int to string C++ Using stringstream class 
Cpp :: ternary operator in c++ 
Cpp :: c++ create function pointer 
Cpp :: public method 
Cpp :: if else c++ 
Cpp :: bitmap 
Cpp :: ifstream file (“code2.txt”); dev C++ 
Cpp :: error C2011 
Cpp :: object inside class c++ 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =