flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
äüöu
i have a qest for you:
find out what in c++ std::cin>>somethin; take and why its a bit shift operator >>? thanx y0u advice. |
|||
![]() |
|
typedef
>> along with << are generally used for stream IO operations in C++ but they can also inherently be used for arithmetic operations.
|
|||
![]() |
|
ManOfSteel
It's straightforward: << (AKA the insertion operator) and >> (AKA the extraction operator) show the direction taken by data, i.e. going to a stream or coming from a stream.
Code: std::cout << "Hello World!"; writes the Hello World! string to the standard output (usually the screen). Code: std::cin >> inVar; reads the contents of the standard input (usually the keyboard) into the inVar variable. It all depends on the context. These operators become bitshift operators if the part on the left is an int or char variable. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.