C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
분야별 포럼
C++빌더
델파이
파이어몽키
C/C++
프리파스칼
파이어버드
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

자유게시판
세상 살아가는 이야기들을 나누는 사랑방입니다.
[4352] 안녕하세요 c언어를 배우게된학생입니다 도와주세요(냉유)
뱀프 [] 2371 읽음    2002-04-15 23:56
혼자 c언어를 배워보겠다고 책한권달랑사서 해보려니
예문이 이해가 안갑니다 간단하게 4개 정도 뽑아서 왔는데요..
아시는분 있으시면 주석점 달아주세요.. 주석달려진거보면 쉽게 이해할수있을거 같습니다

#include <stdio.h>
void main(void)
{
float grade1;   /* declare grade1 as a float variable */
float grade2;   /* declare grade2 as a gloat variable */
float total;     /* declare total as a gloat variable */   
float average;  /* dealare average as a gloat variable */

grade1 = 85.5;
grade2 = 97.0;
total = grade1 + grade2;
average = total/2.0;
printf("The average grade is %f\n",average);
}

#include <stdio.h>
void main (void)
{
int mun1;

printf("bytes of storage used by an integer: %d/n", sizeof(num1));
}

#include <stdio.h>
void main (void)
{
  float radius, circumference;

radius = 2.0;
circumference = 2.0 * 3.1414 * radius;
printf("The circumference of the circle is %f\n", circumference)'
}

#include <stdio.h>
void main (void)
{
  float time, length, pi;

pi = 3,1416
time = 1.0;
length = 12.0 * 32.2 * time/(2.0*pi) * time/(2.0*pi);
prientf("The iength is %4.2f inches. \n", length);
}

정말 감솨여
박지훈.임프 [cbuilder]   2002-04-16 02:39 X
숙제인 것 같군요. 스스로 해결하시길 바랍니다.

+ -

관련 글 리스트
4352 안녕하세요 c언어를 배우게된학생입니다 도와주세요(냉유) 뱀프 2371 2002/04/15
4355     Re:안녕하세요 c언어를 배우게된학생입니다 도와주세요(냉유) 임양규 2278 2002/04/16
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.