+ 3
Guys plz any one answer me what is user input and what is it's role and what is cin >> in it
11 ответов
0
my pleasure 😃
+ 3
cin>> is used to allow user to type input through keyboard and inputted value is evaluated later according to the code
+ 2
Yes offcourse i am not asking because i want to make, i just want to know it's only curiosity
+ 2
Yes brother and thanks again
+ 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
+ 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.
+ 1
Okay guys thnx very much but one more thing people that hack something hack it by using cin>>
And else...???
+ 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.
+ 1
YEE I GOT MY FIRST UPVOTE
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)
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.