I am a student having trouble with operators such as comma, ?, :, bitwise, and sizeof. If you could give me any help as to their meaning/use I would apreciate it. If you could direct me to any helpful websites I would be grateful.
I am a student having trouble with operators such as comma, ?, :, bitwise, and sizeof. If you could give me any help as to their meaning/use I would apreciate it. If you could direct me to any helpful websites I would be grateful.
Check out the turorial at THIS site www.cprogramming.com/tutorial.html
A good beginning book is "Learning C++ in 21 days". The book is set-up as a self-guided course. Each chapter (each "day") has the a teaching part with examples and then questions / answers and problems / solutions. This book is also a good reference book after you've worked your way through all the chapters.
sizeof() is a function in one of the header files. I dunno which one. It returns the number of bytes occupied by something (a variable, a functionn, a class, an object, etc) in the cimputer's memory.
Bitwise refers to operations that work at the binary (base two) bit-level. Everything in the computer's memory is stored in binary, but for most operations you can use decimal numbers and letters and the compiler, BIOS and operating system take care of the conversion to binary and back.
sizeof () is a macro that is expanded by the compiler (is not a preprocessor directive in any header file)Originally posted by DougDbug
sizeof() is a function in one of the header files. I dunno which one. It returns the number of bytes occupied by something (a variable, a functionn, a class, an object, etc) in the cimputer's memory.
hello, internet!
EDIT: never mind
Last edited by Sang-drax; 10-08-2002 at 06:33 PM.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
moi, Thanks for straightning me out!
OOPS... The book I meant to recommend is "Teach Yourself C++ in 21 Days" by Jesse Liberty
Sorry, Need to de-frag my memory