i am new to programing, i installed borland 5.5.1 c++ compiler so i practice my self.But i got some problems trying to compile, i dont know if the problem is from the i installed the compiler or something else.
Below are the program i wrote and their compilation error.
program 1
#include <iostream.h>
int main (void)
{
cout << "Hello World\n";
}
result 1
c:\Users\eddieee\Documents>bcc32 hello.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
HELLO.cpp:
Error E2209 HELLO.cpp 1: Unable to open include file 'iostream.h'
Error E2451 HELLO.cpp 5: Undefined symbol 'cout' in function main()
*** 2 errors in Compile ***
program 2
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
return 0;
}
result 2
c:\Users\eddieee\Documents>bcc32 helloworld.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
helloworld.cpp:
Error E2209 helloworld.cpp 1: Unable to open include file 'stdio.h'
Error E2268 helloworld.cpp 5: Call to undefined function 'printf' in
function ma
in()
*** 2 errors in Compile ***
can someone please help me out?