flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
äüöu 21 Apr 2014, 18:25
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 06 Oct 2014, 14:05
>> along with << are generally used for stream IO operations in C++ but they can also inherently be used for arithmetic operations.
|
|||
![]() |
|
ManOfSteel 06 Oct 2014, 17:30
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.