|
;
*a = *b;
*b = tmp;
}
int main(void)
{
char a[SIZE];
int i, len;
scanf(\"%s\", a);
len = mystrlen(a);
for(i=0; i<len/2; i++)
swap_char(&a[i], &a[len-i-1]);
printf(\"%s\\n\", a);
return 0;
}
/* 실습과제4 */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void rand_array
|
- 페이지 7페이지
- 가격 4,200원
- 등록일 2012.11.16
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
izeof(serv_addr))<0 ) {
perror("connect to WEB server error!!!"); return -1;
}
/* make newURL and send it to WEB server */
if( !nextflag )
sprintf( buf, "%s %s %s \n%s\n\n", method, newURL, HTTPver, buf2 );
else
sprintf( buf, "%s %s %s \n%s", method, newURL, HTTPver, buf2 );
if( write( servsd, bu
|
- 페이지 7페이지
- 가격 1,300원
- 등록일 2002.01.07
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
KILO);
return(0);
}
▤ 프로그램 4.18
/* Program to bitwise AND, OR, NAND, NOR and EX-OR two hexadecimal values */
#include <stdio.h>
intmain(void)
{
int value1, value2;
/* &- bitwise ANDoperator*/
/* |- bitwise ORoperator*/
/* ^- bitwise EX-ORoperator*/
/* ~- bitwise NOToperator*/
printf("Enter
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
, c;
a = -1;
b = 2;
c = a >> b;
printf(%d \n", c);
}
프로그램 3.12 /* 증감 연산자 사용 */
#include <stdio.h>
main()
{int i, j, ip, jp, is, js;
i = 5;
ip = 10 + ++i; /* i를 먼저 증가시킨후 이 값에 10를 더하는 문장 */
j = 10;
jp = 10 + --j; /* j를 먼저 감소시킨후 이 값
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
프로그램 5.11
/*Program to determine TTL ICs for a given function*/
#include <stdio.h>
int main(void)
{
enum{AND=1,OR,NAND,NOR,NOT} gate_type;
puts("Enter logic gate required");
puts("1 - 2-input AND gate");
puts("2 - 2-input OR gate");
puts("3 - 2-input NAND gate");
puts("4 - 2-input NOR gate
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|