Click here to Skip to main content
15,920,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with return value of private variable within class Pin
Michael Randolph25-Mar-09 20:40
Michael Randolph25-Mar-09 20:40 
GeneralRe: Problem with return value of private variable within class Pin
Cedric Moonen25-Mar-09 21:14
Cedric Moonen25-Mar-09 21:14 
GeneralRe: Problem with return value of private variable within class Pin
Niklas L26-Mar-09 1:25
Niklas L26-Mar-09 1:25 
AnswerRe: Problem with return value of private variable within class Pin
Stuart Dootson25-Mar-09 23:41
professionalStuart Dootson25-Mar-09 23:41 
GeneralRe: Problem with return value of private variable within class Pin
Michael Randolph26-Mar-09 19:14
Michael Randolph26-Mar-09 19:14 
GeneralRe: Problem with return value of private variable within class Pin
Stuart Dootson26-Mar-09 21:32
professionalStuart Dootson26-Mar-09 21:32 
GeneralRe: Problem with return value of private variable within class Pin
Michael Randolph27-Mar-09 2:40
Michael Randolph27-Mar-09 2:40 
QuestionHow can I remove vertical scrollbar from Microsoft web browser? Pin
Md. Ali Naser Khan25-Mar-09 17:54
Md. Ali Naser Khan25-Mar-09 17:54 
AnswerRe: How can I remove vertical scrollbar from Microsoft web browser? [modified] Pin
Yajnesh Narayan Behera26-Mar-09 3:35
Yajnesh Narayan Behera26-Mar-09 3:35 
Question"game" fast fingers Pin
Aljaz11125-Mar-09 8:18
Aljaz11125-Mar-09 8:18 
AnswerRe: "game" fast fingers Pin
Cedric Moonen25-Mar-09 8:21
Cedric Moonen25-Mar-09 8:21 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 8:26
Aljaz11125-Mar-09 8:26 
JokeRe: "game" fast fingers Pin
CPallini25-Mar-09 8:30
mveCPallini25-Mar-09 8:30 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 8:40
Aljaz11125-Mar-09 8:40 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 8:46
mveCPallini25-Mar-09 8:46 
GeneralRe: "game" fast fingers Pin
led mike25-Mar-09 9:35
led mike25-Mar-09 9:35 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 9:50
mveCPallini25-Mar-09 9:50 
GeneralRe: "game" fast fingers Pin
ThatsAlok25-Mar-09 17:44
ThatsAlok25-Mar-09 17:44 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 9:45
Aljaz11125-Mar-09 9:45 
GeneralRe: "game" fast fingers Pin
led mike25-Mar-09 10:02
led mike25-Mar-09 10:02 
GeneralRe: "game" fast fingers Pin
Cedric Moonen25-Mar-09 21:07
Cedric Moonen25-Mar-09 21:07 
GeneralRe: "game" fast fingers Pin
led mike26-Mar-09 5:35
led mike26-Mar-09 5:35 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 10:09
mveCPallini25-Mar-09 10:09 
Well, I'm used to consider 26 letters in the alphabet.
You may use one array to store both letters and digits (it would better than using two arrays) and then randomly select the index or you may do something like (consider it a welcome-in the-forum-code-snippet):
char getRandomSymbol()
{
  int i = (int) (rand() / (RAND_MAX + 1.0) * 36;
  if (i < 10) return '0' +i;
  return 'A'+(i-10);
}



Aljaz111 wrote:
Next how to show them depending on time?

As you said, this would be the next step.


BTW at the moment your project looks a bit too ambitious.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 10:25
Aljaz11125-Mar-09 10:25 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 11:25
Aljaz11125-Mar-09 11:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.