English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

For encryption, if you mean the file that contains the line of text, I don't know, but look it up online for simple encryption code.

As for encoding decoding, simply write an algorithm that replaces the letters of a line of text with other letters and characters, using the 'key', and have it able to, decode by reverse-applying the key.

Sorry I can't give you actual code, but it's late. Try those concepts though.

2006-10-10 20:15:36 · answer #1 · answered by TwilightWalker97 4 · 0 0

What compiler and what working equipment? ANSI C has a function equipment(char *) in stdlib.h (which you would be able to get right of entry to in c++ by making use of #which comprise cstlib. It takes as a controversy an ASCIIZ string (0 deliminated char array) which you would be able to build on the fly making use of sstreams. for DOS of course you ought to use reproduction file1 file2 or circulate file1 file2 for the string (i'm an previous c programmer) for Unix or GNU/Linux you ought to use cp file1 file1 or mv file1 file2 yet whilst the latter of course is in a similar itemizing then it is a similar using fact the dos ren command. to apply command line arguments in a C or C++ software then only do a: int important(int argc char *argv) { and argc shops the style of command line arguments so attempt to ascertain whether this is decrease than 3. if so difficulty an errors message and go out. If not, argv[0] is the call of this technique you're working. argv[a million] may be file1 in the above occasion. argv[2] may be file2 in the above examples. and of course you ought to use fstreams to do the circulate.

2016-10-19 04:46:13 · answer #2 · answered by ? 4 · 0 0

The question is not clear.

2006-10-10 20:11:10 · answer #3 · answered by akela 2 · 0 0

Don't be silly.

2006-10-10 20:12:30 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers