소개글
C언어 프로그래밍에서 중요한 배열, 포인터에 대한 내용을 배우고, 서로 연관성을 익히고,string을 출력하는 프로그램을 작성한다 그리고 Call by Reference 성질을 이용하여 sorting을 구현한다.
목차
1.Introduction
2. Source Code
3. Result
본문내용
2. Source Code
#include<stdio.h>
int strFind(char *s, char *t, int sLength, int tLength, int startIndex);
void sort3(int *n1, int *n2, int *n3);
int main(void)
{
char *fullname=NULL;
char *partname=NULL;
int index=-1;
int a,b,c;
index=strFind("kojaehyun", "jaehyun",9,7,0);
printf("Result of strFind( "kojaehyun", "jaehyun", 9, 7, 0 )t is %d n", index);
index=strFind("comecomecome", "comecome",12,4,2);
printf("Result of strFind( "comecomecome", "come", 12, 8, 2 )t is %d n", index);
index=strFind("Network", "ya",7,2,2);
printf("Result of strFind( "Network", "ya", 7, 2, 2 )t is %d n", index);
참고 자료
없음
압축파일 내 파일목록
lab6.cpp
pointer예제.docx