Converter.h
上传用户:sz0451
上传日期:2022-07-29
资源大小:256k
文件大小:1k
- // Converter.h
- #pragma once
- #using <System.Web.Services.dll>
- using namespace System;
- using namespace System::Web;
- using namespace System::Web::Services;
- namespace Converter
- {
- [WebServiceAttribute(Namespace="http://VCSBS/WebServices/",
- Description="A Web Service for converting temperatures"
- "between Fahrenheit and Celsius")]
- public __gc class TemperatureConverter : public WebService
- {
- public:
- [WebMethod(Description=
- "Converts temperatures from Fahrenheit to Celsius")]
- double ConvertF2C(double dFahrenheit);
- [WebMethod(Description=
- "Converts temperatures from Celsius to Fahrenheit")]
- double ConvertC2F(double dCelsius);
- };
- }