|
역순 출력 :\");
for(i=count; count>=0; count--)
{
printf(\"%c\",str[count]);
}
printf(\"\\n\");
return 0;
}
|
- 페이지 1페이지
- 가격 600원
- 등록일 2006.12.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
s\\\"을 >> \\n\", str3);
printf(\"구분자 [%s]를 이용하여 토큰을 추출 >> \\n\", delimiter);
ptoken = strtok(str3, delimiter);
while(ptoken != NULL)
{
printf(\"%s\\n\", ptoken);
ptoken = strtok(NULL, delimiter);
}
return 0;
}
|
- 페이지 2페이지
- 가격 800원
- 등록일 2006.12.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
lena=strlen2(a);
lenb=strlen2(b);
printf("strlen 실행결과 <헤더파일 이용> <a>: %d\n",strlen(a));
printf("strlen 실행결과 <함수 작성 이용> <a>: %d\n",lena);
printf("strlen 실행결과 <헤더파일 이용> <b>: %d\n",strlen(b));
printf("strlen 실행결
|
- 페이지 2페이지
- 가격 500원
- 등록일 2010.07.22
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
, hi반환 이런식으로 순서대로 반환
}
for(i=0;i<10;i++){
if(cut[i] != NULL){
printf(\"%s\\n\",cut[i]);//0부터 다 써주기!!
}
}
return 0;
} ㅁ C언어 문자열 자르기
- for 문을 이용하여 ' ' 검색후 줄넘김
- strtok을 이용하여 구분문자를 찾아 각각 단어 리턴
|
- 페이지 2페이지
- 가격 700원
- 등록일 2009.09.10
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
문자열의 끝을 나타내는 널 문자를 넣는다. */
}
비교.
1) Call by value
#include \"stdio.h\"
main()
{
int a=10, b=20;
printf(\"Before : %d, %d\\n\", a, b);
swap(a, b);
printf(\"After : %d, %d\\n\", a, b);
}
swap(int p, int q)
{
int temp;
temp = p;
p = q;
q = temp;
printf(\"In swap : %d, %d\\n\", p, q);
|
- 페이지 9페이지
- 가격 1,300원
- 등록일 2003.02.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|