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 |
Write a function that swaps the values of two integers, using int* as the argument type?
Program to check whether a word is a sub-string or not of a string typed
Which is better c++ or java?
Explain the ISA and HASA class relationships. How would you implement each in a class design?
What does ctime() do?
What is oops in c++?
Define pre-condition and post-condition to a member function in c++?
How do you define/declare constants in c++?
What is the difference between a shallow copy and a deep copy?
What is a container class? What are the types of container classes in c++?
What is object in c++ example?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?