std::string s("Hello world");
for (char & c : s)
{
std::cout << "One character: " << c << "
";
c = '*';
}
Code Example |
---|
Cpp :: all of the stars lyrics |
Cpp :: format string cpp |
Cpp :: how to get input in cpp |
Cpp :: mpi_bcast |
Cpp :: bit c++ |
Cpp :: c++ lcm |
Cpp :: cpp map iterate over keys |
Cpp :: how to check is some number is divisible by 3 in c++ |
Cpp :: delete file cpp |
Cpp :: switch case with string c++ |
Cpp :: convert long int to binary string c++ |
Cpp :: queue in c++ |
Cpp :: difference between lower and upper bound |
Cpp :: max of two elements c++ |
Cpp :: how to do nCr in c++ |
Cpp :: cpp convert vector to set |
Cpp :: max value of double c++ |
Cpp :: int_max cpp |
Cpp :: if vector is empty c++ |
Cpp :: how to get an element in a list c++ |
Cpp :: less than operator overloading in c++ |
Cpp :: bitwise count total set bits |
Cpp :: set was not declared in this scope |
Cpp :: check if char in string c++ |
Cpp :: migration meaning |
Cpp :: c++ triple |
Cpp :: print a string with printf in c++ |
Cpp :: what is thread in c++ |
Cpp :: reverse order binary tree in c++ |
Cpp :: 3d vector c++ resize |