c++언어 완전 초보인데요 ㅠㅠ
문제가 (섭씨와 화씨 간의 변환) 다음 두 항수를 포함하는 헤더파일을 작성하여라 인데요
//섭씨를 화씨로 변환
double celsiuctofahrenheit(double celsius)
//화씨를 섭씨로 변환
double fahrenheittocelsius(double fahrenheit)
입니다.
#include
using namespace std;
double celsiuctofahrenheit(double celsius)
{
double fahrenheit = (celsius * 1.8) + 32;
}
double fahrenheittocelsius(double fahrenheit)
{
double celsius = (fahrenheit - 32) / 1.8;
}
int main()
{
double celsius;
double fahrenheit;
double celsiuctofahrenheit;
double fahrenheittocelsius;
double i;
cin>> celsius;
i= celsiuctofahrenheit(celsius);
cout<< double(celsiuctofahrenheit)<
double j;
cin>> fahrenheit;
j= fahrenheittocelsius(fahrenheit);
cout<
return 0;
}
제가 여기까진 했는데요 main부분에서 오류가 납니다 ㅠㅠ 제발좀 도와주세요 ㅠㅠ
숙제는 스스로
숙제는 스스로
코드를 쓸
소스 코드를 쓸 때는
https://kldp.org/filter/tips/1#filter-bbcode-0
참고하셔요.
세벌 https://sebuls.blogspot.kr/
댓글 달기