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

C/C++ Q/A
[1422] Re:Re:Re: 정말 죄송합니다만 마지막으로 질문입니다 ㅜ_ㅜ
김백일 [cedar] 1728 읽음    2002-10-24 22:57
울프 님이 쓰신 글 :
: #include <iostream.h>
: int add (int x , int y)
: {
:    
:     cout << "In Add() , received " << x << " and " << y << "\n";
:     return (x+y);
: }
:
: int main()
: {
:     cout << "I'm in main()!\n";
:     int a ,b,c;
:     cout << "Enter two numbers: ";
:     cin >> a;
:     cin >> b;
:     cout << "\nCalling add()\n";
:     c=add(a,b);
:     cout << "\nBack in main().\n";
:     cout << "c was set to" << c;
:     cout << "\nExiting..\n\n";
:     return 0;
: }
:
: 정말 간단하죠?-_-;;
: 이틀전부터 공부한지라..-_-;;
: 헤더파일을 conio.h로 바꾸고

바꾸는게 아니라, 추가하는 겁니다.

: main() 제일 아래부분에 getch()문을 삽입해도 안되네요
: 이런 에러가 나요ㅠ_ㅠ
:
: Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
: func.cpp:
: Error E2451 func.cpp 5: Undefined symbol 'cout' in function add(int,int)
: Error E2451 func.cpp 11: Undefined symbol 'cout' in function main()
: Error E2451 func.cpp 14: Undefined symbol 'cin' in function main()
: Warning W8066 func.cpp 22: Unreachable code in function main()
: Warning W8004 func.cpp 23: 'c' is assigned a value that is never used in function main()
: *** 3 errors in Compile ***
:
: 제발 설명좀 ㅠ_ㅠ

그리고 헤더파일 선언 다음에
using namespace std;
문장을 넣어보세요.

+ -

관련 글 리스트
3671         Re:Re: 그래도 안되요 ㅠ_ㅠ 이영우 1572 2002/10/24
3670         Re:Re: 그래도 안되요 ㅠ_ㅠ 이영우 1635 2002/10/24
3669         Re:Re: 그래도 안되요 ㅠ_ㅠ 이영우 1484 2002/10/24
1421         Re:Re: 정말 죄송합니다만 마지막으로 질문입니다 ㅜ_ㅜ 울프 1683 2002/10/24
1422             Re:Re:Re: 정말 죄송합니다만 마지막으로 질문입니다 ㅜ_ㅜ 김백일 1728 2002/10/24
1423                 Re:Re:Re:Re: 감사합니다 울프 1445 2002/10/25
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.