operators

This is a discussion on operators within the C++ Programming forums, part of the General Programming Boards category; I am a student having trouble with operators such as comma, ?, :, bitwise, and sizeof. If you could give ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    1

    Question operators

    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.

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Tutorial at this site!

    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.

  3. #3
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946

    Re: Tutorial at this site!

    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.
    sizeof () is a macro that is expanded by the compiler (is not a preprocessor directive in any header file)
    hello, internet!

  4. #4
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    EDIT: never mind
    Last edited by Sang-drax; 10-08-2002 at 07:33 PM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    moi, Thank's for clarifing!

    moi, Thanks for straightning me out!

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    CORRECTION CORRECTION CORRECTION

    OOPS... The book I meant to recommend is "Teach Yourself C++ in 21 Days" by Jesse Liberty

    Sorry, Need to de-frag my memory

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical Operators in C++
    By Flecto in forum C++ Programming
    Replies: 4
    Last Post: 05-15-2009, 08:17 AM
  2. Bolean Operators hurt my head. (Trouble understanding) :(
    By Funcoot in forum C++ Programming
    Replies: 3
    Last Post: 01-20-2008, 07:42 PM
  3. operators???
    By arjunajay in forum C++ Programming
    Replies: 11
    Last Post: 06-25-2005, 05:37 AM
  4. Operators
    By George in forum C++ Programming
    Replies: 3
    Last Post: 04-02-2003, 07:35 PM
  5. operators operands
    By verb in forum C Programming
    Replies: 6
    Last Post: 02-13-2002, 07:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21