Turbo-C
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
터보-C 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
Lua 게시판
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C/C++ Q/A
[1507] STL이 제대로 컴파일이 안되는...ㅡ.ㅡ;;
exkarion [] 1384 읽음    2002-11-09 15:02
//---------------------------------------------------------------------------
#include <cctype>
#include <iostream>
#include <string>
#pragma hdrstop
#include <algorithm>
using namespace std;

//---------------------------------------------------------------------------

#pragma argsused
int main(int argc, char* argv[])
{
    string s("The zip code of 38108");
    cout << "original : " << s << endl;

    transform( s.begin(), s.end(), s.begin(), tolower );
    cout << "lowered : " << s << endl;

    transform( s.begin(), s.end(), s.begin(), toupper );
    cout << "uppered : " << s << endl;

    return 0;
}
//---------------------------------------------------------------------------

간단해 보이는데.....
[C++ Error] Unit1.cpp(17): E2285 Could not find a match for 'transform<InputIterator1,InputIterator2,OutputIterator,BinaryOperation>(char *,char *,char *,charT (*)(charT,const locale &))'

맞는 형식을 찾지 못한다는 메세지가 나오네요....

좋은 답변 부탁드립니다.

+ -

관련 글 리스트
1507 STL이 제대로 컴파일이 안되는...ㅡ.ㅡ;; exkarion 1384 2002/11/09
1508     저는 잘 되는데요? 김백일 1448 2002/11/09
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.