Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

My first real program

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?

Name: Anonymous 2009-03-06 15:50

So... all your doing is basically multiplexing some strings

Name: Golden Denis 2009-03-06 16:04

>>2
Yes.

Name: Anonymous 2009-08-16 17:25

Name: Anonymous 2010-12-17 1:30

Xarn is a bad boyfriend

Name: Anonymous 2010-12-27 6:40

Name: Anonymous 2011-02-03 1:36

Don't change these.
Name: Email:
Entire Thread Thread List