php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
difference of cin and cout statemenet,i have no computer back gronud i want to learn
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Subject: difference b/w cin ,cout ststement
sir pl tell me the difference of cin and cout statemenet,i have no computer back gronud i want to learn c++ language properly pl guide me
Reply
#2
Dear Student,
Both cin and cout statements are stream input and output statements respectively. These statements are one of the most basic statement in any simple C/C++ program. cin statement is used to get some value from the keyboard during the program execution. On the other hand, we use cout statement to print something on the output screen. For example, if we declare a variable in our program and we want to get its value from the user, we will be using cin statement that will read the value entered from the keyborad. Here is the example below

int x;
cout<<"Enter Number";
cin>>x;

in the above code, you can see that we have used one cin statement and one cout statement. cout statement in above code will print the line "Enter Number" on the screen whenever our program is executed. cin statement will be used to take some value from the keyboard and store it in variable x.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is the difference among calloc function ,malloc function and recalloc function? Vuhelper 0 34,660 05-31-2012, 01:46 AM
Last Post: Vuhelper
  What is difference among Binary Tree, Complete Binary Tree and Binary Search Tree? Vuhelper 2 4,426 03-18-2012, 12:47 AM
Last Post: Xpert
  std::cout<<"---"; " and also for cin " std::cin>>x; in C++ 2012 Vuhelper 0 3,199 01-14-2012, 05:46 PM
Last Post: Vuhelper
  Explain the difference b/w Null Pointer and Null Nodes? C++ 2012 Vuhelper 0 1,994 01-06-2012, 12:24 AM
Last Post: Vuhelper
  What is the difference b/w Inorder Traversal and Inorder Successor? 2012 Vuhelper 0 1,828 01-06-2012, 12:23 AM
Last Post: Vuhelper
  what is the difference between 1. Double Right-Left Rotation 2. Double Left-Right Rot Vuhelper 0 2,067 01-04-2012, 10:37 PM
Last Post: Vuhelper
  What is the difference between “object = this->object” and “this->object=object”? Vuhelper 0 4,093 01-04-2012, 10:17 PM
Last Post: Vuhelper
  What is difference between a complete binary tree and strictly binary tree? Vuhelper 0 4,534 11-05-2011, 05:24 PM
Last Post: Vuhelper
  what is difference between *a.b and (*a).b ? Vuhelper 0 2,739 11-05-2011, 05:23 PM
Last Post: Vuhelper
  what is difference between int* b and int *b? Vuhelper 0 2,238 11-05-2011, 05:20 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support