Horje
C++ fill string with random uppercase letters Code Example
C++ fill string with random uppercase letters
#include <string>

using namespace std;

string CreateRandomChars(std::size_t ItemCount) {
    string str; 
    for(unsigned i=0;i<ItemCount;++i)
       str.push_back((rand() % 26) + 'A');
    return str;
}




Cpp

Related
CSES Problem Labyrinth Code Example CSES Problem Labyrinth Code Example
time complexity calculator online Code Example time complexity calculator online Code Example
"how we write a program for" time swap" in c plus plus only with string" Code Example "how we write a program for" time swap" in c plus plus only with string" Code Example
find the smallest window in a string containing all characters of another string Code Example find the smallest window in a string containing all characters of another string Code Example
ue4 c++ add tag Code Example ue4 c++ add tag Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10