Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My DllMain is not getting invoked. Pin
Matthew Busche11-Dec-03 14:07
Matthew Busche11-Dec-03 14:07 
GeneralRe: My DllMain is not getting invoked. Pin
Peter Molnar11-Dec-03 14:40
Peter Molnar11-Dec-03 14:40 
GeneralSUCCESS!!! Pin
Matthew Busche12-Dec-03 18:08
Matthew Busche12-Dec-03 18:08 
GeneralRe: My DllMain is not getting invoked. Pin
Mike Dimmick12-Dec-03 2:03
Mike Dimmick12-Dec-03 2:03 
GeneralFloating CDialogBar Pin
Jon Sagara11-Dec-03 11:38
Jon Sagara11-Dec-03 11:38 
GeneralRe: Floating CDialogBar Pin
Jon Sagara11-Dec-03 19:46
Jon Sagara11-Dec-03 19:46 
QuestionHelp? Pin
Anonymous11-Dec-03 11:34
Anonymous11-Dec-03 11:34 
AnswerRe: Help? Pin
Terry O'Nolley11-Dec-03 15:23
Terry O'Nolley11-Dec-03 15:23 
Anonymous wrote:
I am having a difficult time with the following project:

Are you having a difficult time, or have you not started and are running out of time?


The encyption algorithm has been given to you:

"For a given message, we substitute each lowercase character to the other character
whose ASCII code is less than 6."

This tells you that you can ignore any characters that aren't lower case letters (ie you only need to encrypt chars whose ascii values are between 97 and 122, inclusive)

So, a high-level step-by-step process list could be:

1) Get next character
2) Is it a lower case letter?
No: Store it as is
Yes: subtract 6 and then store it
3) Is it the last character?
No: GOTO #1
Yes: EXIT

In pseudocode:

OPEN input file
LOOP
GET character from file

IF character is lower case letter
subtract 6 from it

STORE character

IF end of file
EXIT LOOP
END LOOP

CLOSE input file

OPEN output file

LOOP
GET encypted character

WRITE encrypted character

IF end of encypted characters
EXIT LOOP
END LOOP

CLOSE output file






GeneralDLL question Pin
Diarrhio11-Dec-03 11:18
Diarrhio11-Dec-03 11:18 
GeneralRe: DLL question Pin
Diarrhio11-Dec-03 12:52
Diarrhio11-Dec-03 12:52 
Generalmight be a dumb question... Pin
l a u r e n11-Dec-03 11:07
l a u r e n11-Dec-03 11:07 
GeneralRe: might be a dumb question... Pin
Jörgen Sigvardsson11-Dec-03 11:11
Jörgen Sigvardsson11-Dec-03 11:11 
GeneralRe: might be a dumb question... Pin
l a u r e n11-Dec-03 11:19
l a u r e n11-Dec-03 11:19 
GeneralRe: might be a dumb question... Pin
Matthew Busche11-Dec-03 11:17
Matthew Busche11-Dec-03 11:17 
Generalresource DLL Pin
alex.barylski11-Dec-03 10:03
alex.barylski11-Dec-03 10:03 
GeneralRe: resource DLL Pin
Jörgen Sigvardsson11-Dec-03 11:08
Jörgen Sigvardsson11-Dec-03 11:08 
GeneralRe: resource DLL Pin
Michael Dunn11-Dec-03 14:46
sitebuilderMichael Dunn11-Dec-03 14:46 
GeneralRe: resource DLL Pin
alex.barylski11-Dec-03 15:09
alex.barylski11-Dec-03 15:09 
GeneralCStatusbar and an afxMsg question Pin
ns11-Dec-03 9:06
ns11-Dec-03 9:06 
GeneralRe: CStatusbar and an afxMsg question Pin
Ravi Bhavnani11-Dec-03 9:35
professionalRavi Bhavnani11-Dec-03 9:35 
GeneralRe: CStatusbar and an afxMsg question Pin
ns11-Dec-03 9:41
ns11-Dec-03 9:41 
GeneralWindows app command line args Pin
act_x11-Dec-03 8:19
act_x11-Dec-03 8:19 
GeneralRe: Windows app command line args Pin
David Crow11-Dec-03 9:00
David Crow11-Dec-03 9:00 
GeneralRe: Windows app command line args Pin
Michael Dunn11-Dec-03 9:48
sitebuilderMichael Dunn11-Dec-03 9:48 
GeneralRe: Windows app command line args Pin
act_x11-Dec-03 9:50
act_x11-Dec-03 9:50 

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.