• Structure를 이용한 프로그래밍   (1 )
    1

  • Structure를 이용한 프로그래밍   (2 )
    2

  • Structure를 이용한 프로그래밍   (3 )
    3



  • ̸
    3 Pg
    մϴ.
Ŭ : ũԺ
  • Structure를 이용한 프로그래밍   (1 )
    1

  • Structure를 이용한 프로그래밍   (2 )
    2

  • Structure를 이용한 프로그래밍   (3 )
    3




  • (ū ̹)
    ̸
    3 Page
    մϴ.
Ŭ : ݱ
X ݱ
巡 : ¿̵

Structure를 이용한 프로그래밍

레포트 > 공학기술 ٷΰ
ã
Ű带 ּ
( Ctrl + D )
ũ
Ŭ忡 Ǿϴ.
ϴ ֱ ϼ
( Ctrl + V )
 : Structure를 이용한 프로그래밍.hwp   [Size : 5 Kbyte ]
з   3 Page
  1,000

īī ID
ٿ ޱ
ID
ٿ ޱ
̽ ID
ٿ ޱ


ڷἳ
Structure를이용한프로그래밍
/
source
#include
struct house
{
int id;
long inc;
int member;
}
main()
{
struct house r[10]={
{1000,12000000,1},{1235,35000000,6},{3451,23000000,3},
{2541,23000000,2},{1432,6100000,4},{1021,1700000,5},
{9455,1200000,1},{7645,15000000,6},{6755,6600000,4},
{7131,63000000,3}
};
int i,k=0;
long p,ave,sum=0;
printf(`\\n(a)\\n`);
printf(`ID Number Annual Income(\\\\) Household Members\\n`);
for (i=0;i<10;i++) {
printf(`%4d %15ld %16d\\n\\n`,r[i].id,r[i].inc,r[i].member);
sum+=r[i].inc;
}
ave=sum/10;
printf(`\\n(b)\\n`);
printf(`Average household income = %ld\\n`,ave);
printf(`Household whose income exceed the average\\n`);
printf(` ID Number Annual Income\\n`);
for (i=0;i < 10;i++ )
if(r[i].inc>ave)
printf(`%10d %23ld \\n…(생략)

(a)

3451 23000000 3

1432 6100000 4



ڷ
ID : hatj*****
Regist : 2015-01-10
Update : 2015-01-10
FileNo : 16098479

ٱ

연관검색(#)
Structure   이용한   프로그래밍  


ȸҰ | ̿ | ޹ħ | olle@olleSoft.co.kr
÷Ʈ | : 408-04-51642 ֱ 걸 326-6, 201ȣ | ä | : 0561ȣ
Copyright ÷Ʈ All rights reserved | Tel.070-8744-9518
̿ | ޹ħ olle@olleSoft.co.kr
÷Ʈ | : 408-04-51642 | Tel.070-8744-9518