I know im not good...just trying to help
Code:
#include <iostream>
#include <string> 
#include <ctime>

using namespace std;

void RndWord(long iLen){
	char ch;
	string mystr;
	char i=0;
		while (i < iLen){
			ch = (rand()%(('Z'-'A'))+'A');
			mystr += ch;
			i++;
		}
		cout << mystr << "\n";
}

int main(void){
	long lenword;
	srand(time(NULL));
			cout << "Word length?\n";
			cin >> lenword;
			 RndWord(lenword);
		return 0;
}