Firstly I wanted to share this free c++ udemy course coupon worth £9.99. :
https://www.udemy.com/cpp-course/?couponCode=CPP_FREE you should paste it into the URL bar.
Another if you are interested in cocos 2d game development!
https://www.udemy.com/cocos2d-x-v3-cpp/?couponCode=CCDX-FREE again you should paste it into the URL bar.
now to my C++ question, In the world of app development, while experimenting I wondered, is this how they get their app to generate random words(for example the caption during a loading screen):
#include<iostream>
#include <ctime>
#include <cstdlib>
usingnamespace std;
int main () {
srand(time(0));
int Juki = 1+rand()%9;
Juki;
if(Juki == 1)
{cout<<"We are gonna do Diving";}
elseif(Juki == 2)
{cout<<"We are gonna do Lapping";}
elseif(Juki == 3)
{cout<<"We are gonna do Cannonballing";}
elseif (Juki == 4)
{cout<<"We are gonna do Butterfly kicking";}
elseif (Juki == 5)
{cout<<"We are gonna do Paddling";}
elseif (Juki == 6)
{cout<<"We are gonna do Swimming";}
elseif (Juki == 7)
{cout<<"We are gonna do sidestroke";}
elseif (Juki == 8)
{cout<<"We are gonna do front crawl";}
elseif (Juki == 9)
{cout<<"We are gonna do breast stroke";}
return 0;
}