![]() |
작성한 프로그램 소스의 각 라인에 주석을 달고, 보고서 파일에 넣으시오.
#include <stdio.h> //표준 입출력 라이브러리 printf, scanf 위해 사용
#include <string.h> //문자열 복사 함수 strcpy 을 위해 사용
#pragma warning(disable:4996) // scanf 에러 발
|
|
![]() |
작성한 프로그램 소스의 각 라인에 주석을 달고, 보고서 파일에 넣으시오.
#include <stdio.h> //표준 입출력 라이브러리 printf, scanf 위해 사용
#include <string.h> //문자열 복사 함수 strcpy 을 위해 사용
#pragma warning(disable:4996) // scanf 에러 발
C, 방통대 c 대체과제,
|
|
![]() |
MD5.c
7.57KB
|
|
![]() |
columns.c
2.54KB
|
|
![]() |
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
int main()
{
int i,n,b,c,d,e,k;
double f;
double r[100000]={0};
int m[100]={0};
int a[100]={0};
double first,second=0;
f=0;
i=1;
printf("첫번째(최고차x^n)항의 제곱수를 입력하
|
|
![]() |
delay_ms(unsigned int time_ms)
{
register unsigned int i;
for(i=0;i<time_ms;i++) //4 cycle
{
delay_us(250);
delay_us(250);
delay_us(250);
delay_us(250);
}
}
SIGNAL(SIG_INTERRUPT4)
{
while((PINE & 0x10 )==0);
} 목 차
1장 제목
2장 목적
3장 구성
4장 내용
5장 소스
|
|
![]() |
열을 출력한다
printf("\n");
}
6. 다음과 같은 프로그램의 일부가 주어졌을 때 문자열 중에 ‘v'에 접근하는 가능한 방법을 보이시오.
char *p, str[20]="I love you";
p=str;
#include <stdio.h>
void main()
{
char *p, str[20]="I love you";
// 변수 p, 문자상수 atr에 초기
|
|
![]() |
#include<stdio.h>
int main()
{
float a,sum,r;
int c,d,b;
printf("=====================================\n");
printf(" 전류계산프로그램 \n");
printf("=====================================\n");
printf("전압은 몇 v인가? \n");
scanf("%f",&a); //전압 a
pri
|
|
![]() |
소스 부분
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void main()
{
int baseball[3]; //난수를 입력할 배열 선언
int count=1, i; //몇번째인지 입력할 변수와 for문에 이용할 변수 선언
int strike, ball, out; //스트라이스, 볼, 아웃을 입력할 변수
|
|
![]() |
오른쪽 32비트 : ");
for(int z=0;z<32;z++) {
System.out.print(cipher[z+32]);
if(z%8==7)
System.out.print(" ");
}
System.out.println();
System.out.println();
}
cipher = Des.change(cipher);
cipher = Des.Ip2(cipher);
}//end of main
}//end of program
|
|