Click here to Skip to main content
16,019,593 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Need suggestion on the S-box. Pin
73Zeppelin4-May-08 1:46
73Zeppelin4-May-08 1:46 
QuestionHI ALL Pin
johnzfrebbies@24-Apr-08 15:17
johnzfrebbies@24-Apr-08 15:17 
GeneralRe: HI ALL Pin
cp987624-Apr-08 18:04
cp987624-Apr-08 18:04 
GeneralRe: HI ALL Pin
CPallini25-Apr-08 9:59
mveCPallini25-Apr-08 9:59 
GeneralRe: HI ALL Pin
Tim Craig25-Apr-08 20:52
Tim Craig25-Apr-08 20:52 
GeneralHI there Pin
johnzfrebbies@27-Apr-08 14:20
johnzfrebbies@27-Apr-08 14:20 
GeneralCross post Pin
MarkB77726-Apr-08 21:38
MarkB77726-Apr-08 21:38 
GeneralRe: HI ALL Pin
Roger Wright28-Apr-08 5:56
professionalRoger Wright28-Apr-08 5:56 
Okay, just this once since you're a newbie.

Read ANSWERS.DAT into a 20x1 array. Read the applicant's answers into the first column of a 20x2 array. Step through both arrays, comparing the values in the first column. If they agree, set the corresponding element in the second column of the applicant's array to 1; if not, set it to 0. After comparing all 20 answers, sum the values of the applicant's array second column and cout the total as the number of correct answers.

As an algorithm, this should do it. For C++ help, you're on your own. It confuses the hell out of me, so I've given up trying to learn it. Programming rached its epitome with Pascal, and languages have been declining ever since.

"A Journey of a Thousand Rest Stops Begins with a Single Movement"

GeneralRe: HI ALL Pin
johnzfrebbies@28-Apr-08 14:51
johnzfrebbies@28-Apr-08 14:51 
QuestionRe: HI ALL Pin
David Crow28-Apr-08 6:20
David Crow28-Apr-08 6:20 
GeneralRe: HI ALL Pin
johnzfrebbies@28-Apr-08 15:03
johnzfrebbies@28-Apr-08 15:03 
GeneralRe: HI ALL Pin
David Crow29-Apr-08 3:36
David Crow29-Apr-08 3:36 
GeneralRe: HI ALL Pin
johnzfrebbies@29-Apr-08 15:35
johnzfrebbies@29-Apr-08 15:35 
GeneralRe: HI ALL Pin
73Zeppelin28-Apr-08 22:02
73Zeppelin28-Apr-08 22:02 
GeneralRe: HI ALL Pin
johnzfrebbies@29-Apr-08 15:27
johnzfrebbies@29-Apr-08 15:27 
QuestionRe: HI ALL Pin
David Crow29-Apr-08 16:32
David Crow29-Apr-08 16:32 
AnswerRe: HI ALL Pin
johnzfrebbies@29-Apr-08 16:42
johnzfrebbies@29-Apr-08 16:42 
AnswerRe: HI ALL Pin
73Zeppelin29-Apr-08 20:21
73Zeppelin29-Apr-08 20:21 
GeneralRe: HI ALL Pin
johnzfrebbies@30-Apr-08 2:06
johnzfrebbies@30-Apr-08 2:06 
GeneralRe: HI ALL Pin
David Crow30-Apr-08 3:08
David Crow30-Apr-08 3:08 
AnswerRe: HI ALL Pin
73Zeppelin30-Apr-08 3:19
73Zeppelin30-Apr-08 3:19 
AnswerRe: HI ALL Pin
johnzfrebbies@29-Apr-08 16:43
johnzfrebbies@29-Apr-08 16:43 
GeneralRe: HI ALL [modified] Pin
73Zeppelin29-Apr-08 20:02
73Zeppelin29-Apr-08 20:02 
GeneralRe: HI ALL Pin
johnzfrebbies@30-Apr-08 11:28
johnzfrebbies@30-Apr-08 11:28 
AnswerRe: HI ALL Pin
73Zeppelin1-May-08 0:11
73Zeppelin1-May-08 0:11 

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.