+ 3

Guys plz any one answer me what is user input and what is it's role and what is cin >> in it

26th Jul 2017, 9:24 AM
Mhammad
11 Answers
0
my pleasure 😃
26th Jul 2017, 10:37 AM
Harkirat Singh
Harkirat Singh - avatar
+ 3
cin>> is used to allow user to type input through keyboard and inputted value is evaluated later according to the code
27th Jul 2017, 8:35 AM
Yasir Faiz Ahmed
Yasir Faiz Ahmed - avatar
+ 2
Yes offcourse i am not asking because i want to make, i just want to know it's only curiosity
26th Jul 2017, 10:29 AM
Mhammad
+ 2
Yes brother and thanks again
26th Jul 2017, 10:35 AM
Mhammad
+ 2
That's called white hat hacker, a hacker who works for a developer and finds weaknesses in a program, so the developer can fix it
26th Jul 2017, 4:28 PM
Simone Batistini
Simone Batistini - avatar
+ 1
User input is basically a character input in console applications (command prompt like applications). So the cin >> is character input and '>>' transfers data into the variable in front of it. When cin >> variable line is executed then it waits for the character input and enter key input from user. cin collects the input and >> transfers it to the variable.
26th Jul 2017, 9:46 AM
Harkirat Singh
Harkirat Singh - avatar
+ 1
Okay guys thnx very much but one more thing people that hack something hack it by using cin>> And else...???
26th Jul 2017, 9:58 AM
Mhammad
+ 1
Hacking involves many complicated things. The cin accepts user's keyboard input data. While hacking is a different thing. Some people find some flaws in a program. And if they come to know flaws then they can hack it. And cin is declared and made in Standard Template Library of C++ (in iostream). Conclusion: Hacking different things require a lot of information about it. Hackers don't use cin to hack a thing. Because cin works in a console application and can transfer data only to a variable. And then the data may be stored in a file (let's assume). So to actually get that data, a hacker has to access that file. And hacker do this in much complicated ways. However we know that hacking is a crime so it must not practiced.
26th Jul 2017, 10:20 AM
Harkirat Singh
Harkirat Singh - avatar
+ 1
YEE I GOT MY FIRST UPVOTE
27th Jul 2017, 9:35 AM
Simone Batistini
Simone Batistini - avatar
0
user input is what the user will enter by keyboard in this case. cin >> represents the command with which you can control the input, for example storing a variable. int a; cin >> a; (the number the user will type will be stored in the variable "a") b=a+2; cout << b; (this command prints the value of b, i.e. the value of a+2)
26th Jul 2017, 9:43 AM
Matte
Matte - avatar
0
yes 😃 . it's good to have knowledge. programmers should have some basic knowledge about hacking so that they can make programs more safe and protect them from being hacked.
26th Jul 2017, 10:34 AM
Harkirat Singh
Harkirat Singh - avatar