Object Oriented Programming (oop) Tutorial Explains the basics of OOP. [Part-I]
Posted 21 December 2004 - 03:02 AM
Replies To: Object Oriented Programming (oop) Tutorial
Posted 13 January 2005 - 09:54 AM
PART 2 will contain Inheritance and a few advanced concepts of OOP.
Here's the PART-1 Version of the Tutorial.
Number of downloads: 12707
Posted 13 November 2005 - 03:32 AM
Posted 17 January 2006 - 07:04 AM
Sorry for late reply...looks like I should keep an eye on the Tutorials Section too.
Thanks for your appreciation...I makes me write more and more.
Currently I'm writing a tutorial on Recursion...It's going to be real exhaustive and informative.
I hope I'll be able to finish that soon because as I'm writing it, I feel its the best one so far.
Posted 16 March 2006 - 12:48 AM
Jessehk, on 18 Jan, 2006 - 02:32 AM, said:
Though I could be wrong...
Other than that, great tutorial.
no...just a matter of convention and choice...some people stick to that convention...
Posted 25 May 2006 - 10:08 PM
Any number that's suffixed with an 'f' just shows that its expected type is a floating point.
Here are the other Conversion-type characters.
d Integer signed decimal integer
i Integer signed decimal integer
o Integer unsigned octal integer
u Integer unsigned decimal integer
x Integer unsigned hexadecimal int (with a, b, c, d, e, f)
X Integer unsigned hexadecimal int (with A, B, C, D, E, F)
f Floating point signed value of the form [-]dddd.dddd.
e Floating point signed value of the form [-]d.dddd or e
g Floating point signed value in either e or f form, based on given value and precision. Trailing zeros and the decimal point are printed if necessary.
E Floating point Same as e; with E for exponent.
G Floating point Same as g; with E for exponent if e format used
c Character Single character
s String pointer Prints characters until a null-terminator is pressed or precision is reached
% None Prints the % character
n Pointer to int Stores (in the location pointed to by the input argument) a count of the chars written so far.
p Pointer Prints the input argument as a pointer; format depends on which memory model was used. It will be either XXXX:YYYY or YYYY (offset only).
Source : Borland Help
Posted 09 September 2006 - 11:32 PM
this is nice tutorial
Posted 12 September 2006 - 02:51 PM
where can i get the PART 2 of this .....????can u send as soon as possible
Posted 13 September 2006 - 09:49 AM
And more than that, thanks for reminding me that I have to write the second part of this tutorial. I'm really sorry I totally forgot that I had this pending.
I'll start working on it.
And just in case if somone is already familiar with Inheritance in C++, be sure to check out my Polymorphism Tutorial in the C++ Tutorials Section.
I've even included how the compiler implements polymorphism internally.
Will be back soon with Part-2.
Sorry to keep you guys waiting.
And once again, thanks for reminding me about the second part.
Posted 28 September 2006 - 07:10 AM
I am a little confused by the "void main()".
Shouldn't it be "int main()" for C++?
Not a big issue but good to get people off on the right foot. But not to take away from your great work in putting this together. Thank you again.
The C++ Standard requires that main() returns type int. A program which uses any other return type for main() is technically not Standard C++, although many compilers do not enforce this strictly.
Posted 28 September 2006 - 09:16 AM
Unfortunately at the time of writing this tutorial, I did not realize this. And by the time I did, I was too lazy to change all voids to ints.
Glad to hear that you enjoyed the tutorial.