top of page

소스 코드 제출

공개·회원 71명

20250604

/*

#include <stdio.h>

#include <stdlib.h>


int main()

{

printf("Hello world!\n");

return 0;

}

*/

/*

#include <stdio.h>

#include <string.h>

int main()

{

char str[21]={};

int i;

scanf("%s",str);

for(i=0;str[i]!=NULL;i++)

{

printf("'%c'\n",str[i]);

}

return 0;

}

*/

/*

#include <stdio.h>

#include <string.h>

int main()

{

char str[101]={};

int i;

gets(str);

for(i=0;str[i]!=NULL;i++)

{

if(str[i]==' ')

{

continue;

}

printf("%c",str[i]);

}

return 0;

}

*/

/*

#include <stdio.h>

#include <string.h>

int main()

{

char str[101]= {};

int i,ce=0,cee=0;

scanf("%s",str);

for(i=0; str[i]!=NULL; i++)

{

if(str[i]=='c'||str[i]=='C')

{

ce+=1;

if(str[i+1]=='c'||str[i+1]=='C')

{

cee+=1;

}

}

}

printf("%d\n%d",ce,cee);

return 0;

}



strcmp(문자열1, 문자열2)

문자열1이 사전식순서로 앞에 있는 단어다 < 0

문자열1과 문자열2가 완전히 같은 단어면 0

문자열1이 사전식 순서로 뒤에 있는 단어다 > 0


strlen(문자열)

문자열의 길이를 알려줌

*/

/*

#include <stdio.h>

#include <string.h>

int main()

{

char str[16]={};

int i,n;

scanf("%s",str);

n = strlen(str);

for(i=0;i<n;i++)

{

printf("%c",str[i]);

}

//printf("%d",strlen(str));

//printf("%d",strcmp(str,"love"));

return 0;

}

*/


#include <stdio.h>

#include <string.h>

int main()

{

char str[21]={};

int i;

for(i=1;i<=3;i++)

{

scanf("%s",str); //unfinished

if()

}

/*

for(i=0;str[i]!=NULL;i++)

{

}

*/

return 0;

}

9회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page