hi...
I am new to programming lenguage C++.
When i try to run following program in turboc++(ver 3.0)
[code]1 // Fig. 2.1: fig02_01.cpp
2 // Text-printing program.
3
#include // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!
"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main
[/code]
then it shows an error that.
FATAL FIRST.CPP 1:unable to create output file 'C:TURBOC3SOURCEFIRST.OBJ'
can anyone please help that why is this error is coming and how to
remove this error..
thanks in advance
Comments
// Fig. 2.1: fig02_01.cpp
// Text-printing program.
#include // allows program to output data to the screen
// function main begins program execution
int main(void)
{
cout << "Welcome to C++!
"; // display message
return 0; // indicate that program ended successfully
} // end function main
Thanks for quick reply.
I have not seen any C or C++ with numbers starting each line.
I have not seen any STD::
Have you tested these?
yes i try to run it but it is same as early not running.
: I have not seen any C or C++ with numbers starting each line.
these number are number from when i copy this from book in actual when i write this on turboc++ version-3 i eliminated numbers
: I have not seen any STD::
in next u can see this is actual code
[code]1 // Fig. 2.1: fig02_01.cpp
2 // Text-printing program.
3 #include // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!
"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main
[/code]
: Have you tested these?
all i tested but it is same problem??
:
:
help any further suggestion for this problem???
yes i try to run it but it is same as early not running.
: I have not seen any C or C++ with numbers starting each line.
these number are number from when i copy this from book in actual when i write this on turboc++ version-3 i eliminated numbers
: I have not seen any STD::
in next u can see this is actual code
[code]1 // Fig. 2.1: fig02_01.cpp
2 // Text-printing program.
3 #include // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!
"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main
[/code]
: Have you tested these?
all i tested but it is same problem??
:
:
help any further suggestion for this problem???
i try it but not working yet
: I have not seen any C or C++ with numbers starting each line.
just for programming lines start from copy from book
: I have not seen any STD::
In this this is actual code you can test it here
[code]1 // Fig. 2.1: fig02_01.cpp
2 // Text-printing program.
3 #include // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!
"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main
[/code]
: Have you tested these?
yes i tested these.But problem is as it is??
:
:
any further suggestion for this problem
Thanks for Quick reply
I have downloaded Turbo C++ version 3.00 and it works with my code. Make a new free download and also download Borland C++ version 5.5 You should also test some code on Rosetta Code. It is a very good place for programmers and you can compare C++ with other languages.