Horje
getting a random letter in c++ Code Example
c++ generate random char
char cch = 'a' + rand()%26;
getting a random letter in c++
    char c;
    int r;

    srand (time(NULL));    // initialize the random number generator
    for (i=0; i<num; i++)
    {    r = rand() % 26;   // generate a random number
          c = 'a' + r;            // Convert to a character from a-z
          cout << c;
    }




Cpp

Related
call by value in c++ Code Example call by value in c++ Code Example
Making content editable Code Example Making content editable Code Example
ifstream ofstream fstream c++ Code Example ifstream ofstream fstream c++ Code Example
inpout in Array c++ Code Example inpout in Array c++ Code Example
ngrok http Code Example ngrok http Code Example

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