C++을 이용하여 섭씨화씨로 변환
본 자료는 미만의 자료로 미리보기를 제공하지 않습니다.
닫기
  • 1
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

C++을 이용하여 섭씨화씨로 변환에 대한 보고서 자료입니다.

목차

없음

본문내용

using std::cin;
using std::endl;
using std::setprecision;
using std::setiosflags;

void change_ctof(double a);
void change_ftoc(double b);

void change_ctof(double a)
{
double temp1;
temp1 = (9.00 / 5.00) * a + 32.00;
cout << setprecision (2)<< setiosflags( ios::fixed | ios::showpoint ) << a
<< " --> "
< }

void change_ftoc(double b)
{
double temp2;
temp2 = (b - 32.00) * (5.00 / 9.00);
cout << setprecision (2)<< setiosflags( ios::fixed | ios::showpoint ) << b
<< " --> "
< }

int main()
{
int choice, loop;
double in1, in2;

for(loop=1 ; loop<=5 ; ++loop)
{
cout << endl;
cout << endl;
cout << "========== Menu ==========\n";
cout << "0. Program END\n";
cout << "1. celsius -> fahrenheit\n";
cout << "2. fahrenheit -> celsius\n";
cout << "==========================\n\n";
cout << "choice the number: ";
cin >> choice;
cout << endl;

if(choice==0)
break;
  • 가격500
  • 페이지수1페이지
  • 등록일2006.04.18
  • 저작시기2003.3
  • 파일형식기타(txt)
  • 자료번호#344732
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니