http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=134 [º¹»ç]
¾Æ·¡ ¼Ò½ºµµ ¸¶Âù°¡Áö·Î..
ÁÖ¼®°ú°°Àº ¿¡·¯°¡ ³³´Ï´Ù..
ÁÖ¼®À» ºÁÁÖ¼¼¿ä...
¿ë¹ýÀÌ À߸ø‰ç³ª¿©??
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main()
{
char ch[] = "$1$vkY6sSlG$6RyUXtNMEVGsfY7Xf0wps.";
int i,j,k,tmp;
j = strlen(ch);
char cha[255][35]; //parse error before 'char'
for(k = 0; k < 255; k++)
{
for(i = 0; i < j; i++)
{
tmp = itoa(ch[i]);
cha[k][i] = (tmp + k);
/* 'cha' undeclared (first use in this function)
(Each undeclared identifier is reported only once
for each function it appears in.) */
}
}
for(k = 0; k <255; k++)
{
printf("\n\n %d = %s ", k, cha[k][0]);
}
}
/*
level9:$1$vkY6sSlG$6RyUXtNMEVGsfY7Xf0wps.:11040:0:99999:7:-1:-1:134549524
*/ |
Hit : 4192 Date : 2003/10/05 09:40
|