cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Syntax Meaning of (x)(y) and x | y
Syntax Meaning of (x)(y) and x | y
Feb 20, 2015 at 7:50pm UTC
CoozyMcMillan
(5)
What do these two types of syntax mean?
wndClass.hbrBackground = ( HBRUSH )( COLOR_WINDOW + 1 );
wndClass.style = CS_HREDRAW | CS_VREDRAW;
Feb 20, 2015 at 10:43pm UTC
LB
(13399)
1. Cast the result of the expression on the right to type
HBRUSH
http://www.cplusplus.com/doc/tutorial/typecasting/
This is a C-style cast and is discouraged in C++
2. Bitwise OR operatation
http://www.cplusplus.com/doc/tutorial/operators/#bitwise
Rarely used in C++
Last edited on
Feb 20, 2015 at 10:44pm UTC
Topic archived. No new replies allowed.