Posted by sonnytsn on Wednesday, January 23, 2008 at 2:57pm.
Did you intend for the line:
cout<<end;
to really be:
cout<<endl;
i tried and it didn't work :<
and you email me a uncompiled answer?
sonnytsn1_@_gm_ai_l._co_m
I did a quick check using MS VS2005. The following compiles correctly. Changing the line:
cout<<endl;
to:
cout<<end;
gives a compile error
--------------------------------
Below compiles using VS2005
--------------------------------
#include <tchar.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "-Calculate the area of a circle-" << endl;
cout << endl;
cout << "Radius = " << 10 << endl;
cout << "Area = " << (3.14*10*10) << endl;
return 0;
}
missed the end
-------------------------
#include <tchar.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "-Calculate the area of a circle-" << endl;
cout << endl;
cout << "Radius = " << 10 << endl;
cout << "Area = " << (3.14*10*10) << endl;
return 0;
}
I guess the double blank lines caused the posting applet to clip the last two lines. Here they are finally, I hope.
--------------------
return 0;
}
Nope, for some reason the last lines which are not posting.
Anyway, the last lines are the same as your source.
Related Questions
c programming - To see how the four steps of the software development procedure ...
c# programming - To see how the four steps of the software development procedure...
object oriented programming 1 - write a c++ program that calculates the area of ...
8th grade math - circle A has a raduis that is twice the length og the raduis of...
math - the radius of a circle when the numeric values of the circumference and ...
Math - Cutting a circle into equal sections of a small central angle to find the...
7th grade masth asap hurry plz ms.sue somebody plz - The area of a circle is ...
math - Find the area of the partial circle, use 22/7 for pi. 1.) radius = 27 cm ...
math - HELP!! the area A of the circle in the figure can be represented by A(r)=...
Math precalculus II - The area of a sector of a circle with a central angle of ...
For Further Reading