Name: Golden Denis 2009-03-06 15:44
Hello everybody,
I have really no experience in programming, but I've wanted to get into it for a long time. After reading some stuff online, now and then, and after trying persistently today, I have finally completed my first ever program.
When I was younger I used to keep a diary, which I wrote in a cipher. My cipher was a very simple letter scramble system. I long since stopped keeping the diary, but I still remember the system I used. Although it was really simple and easy to break, I enjoyed making it.
So I decided to write a program to put text into this cipher. Here is the program code:
#include <stdio.h>
int main(void)
{
int Denis=0;
char X1[17];
char X2[17];
char X3[17];
char X4[17];
printf("1234567890123456 Enter text\n");
gets(X1);
gets(X2);
gets(X3);
gets(X4);
printf("\n\nResult:\n");
for(Denis = 0; Denis < 16; Denis++)
{
printf("%c", X1[Denis]);
printf("%c", X2[Denis]);
printf("%c", X3[Denis]);
printf("%c", X4[Denis]);
}
printf("\n\nOK\n");
}
I know it's not great, but I'm glad that it works.
What do you think?
I have really no experience in programming, but I've wanted to get into it for a long time. After reading some stuff online, now and then, and after trying persistently today, I have finally completed my first ever program.
When I was younger I used to keep a diary, which I wrote in a cipher. My cipher was a very simple letter scramble system. I long since stopped keeping the diary, but I still remember the system I used. Although it was really simple and easy to break, I enjoyed making it.
So I decided to write a program to put text into this cipher. Here is the program code:
#include <stdio.h>
int main(void)
{
int Denis=0;
char X1[17];
char X2[17];
char X3[17];
char X4[17];
printf("1234567890123456 Enter text\n");
gets(X1);
gets(X2);
gets(X3);
gets(X4);
printf("\n\nResult:\n");
for(Denis = 0; Denis < 16; Denis++)
{
printf("%c", X1[Denis]);
printf("%c", X2[Denis]);
printf("%c", X3[Denis]);
printf("%c", X4[Denis]);
}
printf("\n\nOK\n");
}
I know it's not great, but I'm glad that it works.
What do you think?