Brief explaination about #include<iostream.h>,
cin and cout
Answers were Sorted based on User's Feedback
Answer / geetha
#include<iostream.h> is a header file .it helps to perform
the cin,cout statements.
1.iostream-input output stream.
2.cin is like a scanf statement in "C" but it do not need a
format specification.this also called as right in operator
(ie)scanf("%d,%d",&a,&b)
cin>>a>>b
3.cout is like a printf statement in "C" but it do not need
a format specification.this also called as left out
operator
(ie)printf("%d,%d",a,b)
cout<<a<<b
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / prabakaran
iostream-input and output stream
contain-cin,out(input and output stream)
cin-get data value from user
cout-put data value to screan
| Is This Answer Correct ? | 5 Yes | 0 No |
Differentiate between the manipulator and setf( ) function?
What is 'Copy Constructor' and when it is called?
What is the Difference between "vector" and "array"?
15 Answers Covansys, Gambit, TCS, Wipro,
Write a program which uses Command Line Arguments
What is private public protected in c++?
What is "strstream" ?
is throwing exception from a constructor not a good practice ?
Do you know about C++ 11 standard?
0 Answers Agilent, ZS Associates,
Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.
What is the main function c++?
What are punctuators in c++?
What is the role of copy constructor in copying of thrown objects?