|
for(i=0; i<size; i++)
{
printf("%5d%2s", arr[i], (i==size-1) ? "}" : ",");
}
printf("\n");
}
void add(int *arr, int size, int n)
{
int i;
for(i=0; i<size; i++)
{
arr[i] = arr[i] + n;
}
}
* 실행 결과 *
|
- 페이지 2페이지
- 가격 600원
- 등록일 2006.12.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
("%d",&con);
}
}
*결론*
1. #include<stdlib.h>헤더파일을 추가한다.
2. 화면을 클리어 시킬 위치에 system("cls");명령어를 사용한다.
|
- 페이지 1페이지
- 가격 800원
- 등록일 2006.12.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
SIZE || y<0 || y>=MAPSIZE) return OK;
if(xy[y][x]==OtherPlayer) return OK;
if(xy[y][x]==NONE) return NO;
cnt=0;
result=NO;
map[y][x]=OK;
if(TestFlag(x,y-1)==FLAGFALSE) {
if(SefeDeleteTest(x,y-1,OtherPlayer)) {
cnt=cnt + 1;
}
} else {
cnt=cnt+1;
}
if(TestFlag(x-1,y)==FLAGFALSE) {
if(SefeDeleteT
|
- 페이지 14페이지
- 가격 2,000원
- 등록일 2006.12.13
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
cessInput(void) /*키보드를 입력받아서 움직인다*/
{
int ch = getch();
switch(ch)
{
case 0xe0:
switch (getch())
{
case LEFT:
MovePlayer(-1, 0);
break;
case RIGHT:
MovePlayer(1, 0);
break;
case UP:
MovePlayer(0, -1);
break;
case DOWN:
MovePlayer(0, 1);
break;
}
break;
case 'q':
case 'Q':
return 1; //
|
- 페이지 10페이지
- 가격 1,000원
- 등록일 2006.12.13
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
**************************************************\n");
printf("%7s%18s%17s%18s\n", "학점계", "평 점 계", "평점평균", "백분율환산");
printf("\n*************************************************************\n");
printf("%7d%17.1f%14.2f/4.5%17.1f\n", totalcredit, totalpoint,
(totalpoint/totalcredit), 1
|
- 페이지 3페이지
- 가격 1,000원
- 등록일 2006.12.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
;
if(num == res)
{
printf("\n\t결과: 비겼습니다\n");
}
else if((num==1) && (res==2))
{
printf("\n\t결과: 컴퓨터 승리\n");
}
else if((num==1) && (res==3))
{
printf("\n\t결과: 사용자 승리\n");
}
else if((num==2) && (res==1))
{
printf("\n\t결과: 사용자 승리\n");
}
else if((num==2) && (res==3)
|
- 페이지 3페이지
- 가격 800원
- 등록일 2006.12.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
",num1-num2);
}
void mul(int num1,int num2)
{
printf("= %d\n",num1*num2);
}
void div(int num1,int num2)
{
if(num2)
printf("= %d\n",num1/num2);
else
printf("어떤 숫자를 0으로 나눌수는 없자나.~!!");
}
|
- 페이지 2페이지
- 가격 600원
- 등록일 2006.12.11
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
<<"날짜를 잘못입력하였습니다.\n";
return false;
}
break;
}
return true;
};
Calander::desti(Cal &data){
int total=count(date,data);
cout<<total<<" 일 남았습니다.\n";
}
char* Calander::substring(int ch, int i){
char a[5]=" ";
char aa[5];
itoa(ch,aa,10);
char *temp;
int len=strlen(a)+
|
- 페이지 9페이지
- 가격 1,000원
- 등록일 2006.12.13
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
m_Max=a;
else Num_Max=b;
if(c>Num_Max)Num_Max=c;
return Num_Max;
}
int Num_Min(int a,int b, int c)
{
int Num_Min;
if(a<b)Num_Min=a;
else Num_Min=b;
if(c<Num_Min)Num_Min=c;
return Num_Min;
}
*실행 결과*
|
- 페이지 2페이지
- 가격 800원
- 등록일 2006.12.09
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
],int result[][2])
{
int i=0,j=0,k=0;
for(i=0; i<2; i++)
{
for(j=0; j<2; j++)
{
for(k=0; k<3; k++)
{
*(result[i]+j) += mat1[i][k] * mat2[k][j];
}
}
}
}
void mult_print(int (*result)[2])
{
int i=0,j=0;
printf("\t ★두 행렬의 곱셈 결과★\n\n");
for(i=0; i<2; i++)
{
for(j=0; j<2; j++)
{
pr
|
- 페이지 3페이지
- 가격 600원
- 등록일 2006.12.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|