I'm supposed to enter either a 16 or 9 letters in the program.
For example: "great job you got it"
The program is supposed to output: "gtyorjoteouiabgt"
I'm supposed to enter either a 16 or 9 letters in the program.
For example: "great job you got it"
The program is supposed to output: "gtyorjoteouiabgt"
Last edited by mgz887; 06-24-2009 at 05:48 AM.
>> The program is supposed to output: "gtyorjoteouiabgt"
Sounds like you've got your work cut out for you then. Post the code you're having trouble with and we'll try to point you in the right direction.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Caesar cipher - Wikipedia, the free encyclopedia
sounds really easy
╔╗╔══╦╗
║║║╔╗║║
║╚╣╚╝║╚╗
╚═╩══╩═╝
There are a zillion examples of this out there, here's mine:
ROT13.c
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
So far as I can tell, there's not any actual Caesar cipher here? You're just putting the characters in the columns of a matrix, then printing them out by rows. (Edit: This is directed at OP, not other solutions.)
Last edited by tabstop; 06-24-2009 at 10:33 AM.
Last edited by MK27; 06-24-2009 at 10:31 AM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside