도와주세요....... ㅠㅠ
핫레드
2023.04.01
뭔지 한개도 모르겟어요..-_-;이 소스코드에서, 알기쉽게 설명좀해주세요 .,, 질문 내용 :
#include stdio.h
#include memory.h
#include string.h
int main(void)
{
int i,j;
char smsg[80];
char stmp[80];
char sbuf[] = ;
char sstr[] = ******************************;
for(i=1;i=10;i++)
{
memset( smsg, 0x00, sizeof(smsg));
memset( stmp, 0x00, sizeof(stmp));
memcpy( stmp, sbuf, 10-i);
strcpy( smsg, stmp);
memset( stmp, 0x00, sizeof(stmp));
memcpy( stmp, sstr, i);
strcat( smsg, stmp);
printf(%s\n,smsg);
} /* end for */
getchar();
}
========================================
여기까지인데요 .. 기껏해야 알아먹는게 for문,,, printf 문이네요 -_-; 이거 알기쉽게 풀이좀 해주실분.ㅠㅠ
-
게자리
님께서 실력이 for문, printf문이라고 하셨는데, 실제로 그렇다면 이건 좀 어려운 소스 같군요.