View Single Post
Old May 31st, 2006, 6:13 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Nah, it wasn't the first post to contain that. Anyway, Blood is right about the int keyword. It's part of the pattern or prototype or declaration that tells the compiler how the function is supposed to be interfaced with. int myFunc (double x, char y); states that the function requires two arguments, one double and one char, and will return an int.

As for your other question, you need to develop a perception of the difference between an absolute value, binary in the case of the processor, such as fifteen. Now, "fifteen" is just a word, but we use it to express an absolute quantity. Count the fingers on both hands and the toes on one foot. Presuming you're equipped normally, that's the quantity we're talking about. Decimal, octal, hexadecimal, binary, are just numeric bases. We can express that quantity in all of them, with different symbols. Binary: 00001111 (8 bits, could be more), octal 017, decimal 15, hexadecimal 0f. As you can see, the larger the base, the fewer symbols are needed. Efficiency and ease of comprehension.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote