Hey guys

Im doing a project thats due pretty soon, and im on easter break so i dont have much access to help.


This is my program here, please remember we are at a pretty simple stage so if you could use simple code please do.

This is what i have so far, i have // at the front of the part i need help with, thanks!

Code:
#include<iostream>
#include<string>
#include<ctime>
using namespace std;
int main()
{
 
 
 
 
 
int numofchar;
    
string words [12] = ("blue","red","green","yellow","white","black","pink","orange","purple","brown");
 

//get a random word fromthe array each time the program starts
//find the random word picked from array then put that into its own variable
//then find numofchar of that, then find wordlength of numofchar
numofchar = wordlength.length();
 
cout<<wordlenght.length();
 
 
cout<<"\n\n";   
system ("pause");    
return 0;    
}