개발자 노트
C++ 본문
반응형
#include <iostream>
using namespace std;
typedef struct Body
{
int tall;
int weight;
}body;
int main()
{
body person[2];
cout << "민수의 키와 몸무게 입력 ";
cin >> person[0].tall >> person[0].weight;
cout << "기영이의 키와 몸무게 입력 ";
cin >> person[1].tall >> person[1].weight;
if(person[0].tall > person[1].tall && person[0].weight > person[1].weight)
{
cout << 1;
}
else{
cout << 0;
}
return 0;
}
반응형
'▶ INBOX ◀' 카테고리의 다른 글
윈도우 10 단축키 모음 (0) | 2020.12.04 |
---|---|
C++]소수점 자리 지정해서 출력 (0) | 2016.10.10 |
word 단축키 (0) | 2016.10.04 |
메모리 번지 지정시 세그먼트 레지스터 사용 (0) | 2016.09.29 |
C언어의 함수를 어셈블리어와 연계할 때 어셈블리어에서만 함수 앞에 언더바를 붙이는 이유 (0) | 2016.09.29 |
Comments