|
oid get_menu_number()
{
int n;
do {
print_menu();
scanf(\"%d\", &n);
} while( n < 1 || n > 4 );
if( n == 1)
do_1();
else if( n == 2 )
do_2();
else if( n == 3 )
do_3();
else
do_4();
}
(c)
void do_1()
{
printf(\"1번 메뉴가 호출되었습니다.\\n\");
}
void do_2()
{
printf(\"2번 메뉴가 호출되었
|
- 페이지 15페이지
- 가격 2,000원
- 등록일 2011.12.19
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
c) 10
(d) ***************
2.
(a)
while(i<10)
{
printf(\"%d\\n\", I);
I++;
}
(b)
printf(\"i = %d\\n\", i); ->printf(\"i = %d\\n\", I)
3.
(a) for(i=0; i<10; i++)
(b)
i=0;
while(i<=20)
{
printf(\"%d\\n\", i);
i++;
}
4.
x=0, y=0
x=0, y=1
x=0, y=2
x=1, y=0
x=1, y=1
x=1, y=2
x=2, y=0
x=2,
|
- 페이지 31페이지
- 가격 3,000원
- 등록일 2011.11.04
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
[2-1]
#include <stdio.h>
int main(void)
{
int x, y, z, avg;
printf("정수를 입력하시오 :");
scanf("%d",&x);
printf("정수를 입력하시오 :");
scanf("%d",&y);
printf("정수를 입력하시오 :");
scanf("%d",&z);
avg = (x + y + z) / 3;
printf("평균은 %d입니다.\n",avg);
return 0;
}
|
- 페이지 6페이지
- 가격 1,000원
- 등록일 2011.10.07
- 파일종류 아크로벳(pdf)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
le b;
double c;
double x1;
double x2;
printf(\"계수 a를 입력하시오 : \");
scanf(\"%lf\", &a);
printf(\"계수 b를 입력하시오 : \");
scanf(\"%lf\", &b);
printf(\"계수 c를 입력하시오 : \");
scanf(\"%lf\", &c);
if(a==0)
{
x1=-c/b;
printf(\"\\n\");
printf(\"방정식의 근은 %.3lf입니다.\\n\", x
|
- 페이지 9페이지
- 가격 2,500원
- 등록일 2011.12.30
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
10, 8, 16 진수로 출력
/*
#include<stdio.h>
int main(void)
{
char ch=\'a\';
printf(\"%c의 10 진수 : %d, 8진수 : %o, 16진수 : %x\\n\", ch, ch, ch, ch);
printf(\"%c의 10 진수 : %d, 8진수 : %o, 16진수 : %x\\n\", ch+1, ch+1, ch+1, ch+1);
printf(\"%c의 10 진수 : %d, 8진수 : %o, 16진수 : %x\\n
|
- 페이지 6페이지
- 가격 2,000원
- 등록일 2011.12.30
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
brary[], int count);
void menu();
int get_input();
void search_record(BOOK library[], int count);
void print_record(BOOK library[], int count);
void sort_record(BOOK library[], int n);
int main(void)
{
int num, count = 0;
BOOK library[30] = {\'\\0\'};
while(1)
{
menu();
num = get_input();
switch(num
|
- 페이지 63페이지
- 가격 3,000원
- 등록일 2014.11.14
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
수 입력 : \");
scanf(\"%d\", &num3);
printf(\"\\n\");
printf(\"세 개의 수 중 최대값은 %d입니다.\\n\", (num1>num2)?num1:(num2>num3)?num2:num3);
return 0;
}
*/
//수식의 값 출력
/*
#include<stdio.h>
int main(void)
{
int num;
double result;
printf(\"정수 입력 : \");
scanf(\"%d\", &num)
|
- 페이지 7페이지
- 가격 2,000원
- 등록일 2011.12.30
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
다.
- 알고리즘 순서도 이용
시작 → READ X → READ Y → READ Z → AVG<-(X+Y+Z) /3 → WRITE AVG → 종료
다음 단계는 순서도를 프로그램으로 변환한 것이다. 빈칸을 채워라.
#include<stdio.h>
int main(void)
{
int x;
int y;
int z;
int avg; // 정수 변수 x, y, z, avg
|
- 페이지 5페이지
- 가격 500원
- 등록일 2011.05.02
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
1. (3)
2. ADT Set
객체 정의: 집합은 원소(element)라 불리우는 데이터 요소들의 모임
연산 정의:
Create() := 집합을 생성하여 반환한다.
Insert(S, item) := 원소 item을 집합 S에 저장한다.
Remove(S, item) := 원소 item를 집합 S에서 삭제한다.
Is_In(S, item) :=
|
- 페이지 1페이지
- 가격 1,900원
- 등록일 2010.11.22
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
(X1, Y1) and (X2, Y2). Your program must then calculate the distance between these two points using the formula below.
d= √(〖(X2-X1)〗^2+(Y2-〖Y1)〗^2 ) 1. C언어로 거리구하기 공식 과제 설명
2. C언어 코딩 지침
3. C언어 거리 구하기 공식 솔루션
|
- 페이지 3페이지
- 가격 1,300원
- 등록일 2012.07.23
- 파일종류 워드(doc)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|