글 수 3,386
#include <iostream>
#include <string>
using namespace std;
string mytoupper(string a);
int main()
{
string ch;
string mun;
cout<<"문자를 입력하세요"<<endl;
cin>>ch;
mun=mytoupper(ch);
cout<<mun<<"\n";
return 0;
}
string mytoupper(string a)
{
//cout<<a[0]<<"\n";
if(a[0]>=65 && a[0]<= 90)
a[0]=a[0]+32;
return a;
}
#include <string>
using namespace std;
string mytoupper(string a);
int main()
{
string ch;
string mun;
cout<<"문자를 입력하세요"<<endl;
cin>>ch;
mun=mytoupper(ch);
cout<<mun<<"\n";
return 0;
}
string mytoupper(string a)
{
//cout<<a[0]<<"\n";
if(a[0]>=65 && a[0]<= 90)
a[0]=a[0]+32;
return a;
}
본 게시물은 2011.01.04일 복구된 게시물 입니다. 첨부파일 및 이미지파일은 복구 되지 않았습니다. [자세한 내용 보기]



