dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > C++ > Functions

Functions

11 of 11     Previous     Next
Using Cin.ignore() and Cin.get() Functions
by Octavia Anghel
Language: C++, Expertise: Intermediate — Learn how to not leave a terminating character in the stream.
Find All User-Defined Functions in a SQL Server Database
by Jaya Nehru
This query returns all the user-defined functions in the specified database.
Nested Functions in C++
by Alexander Ocher
Although C++ does not allow nested function declaration, you can simulate it using a structure with a static function.
Overloading the const and non-const Member Functions
by Prashanth Narayanaswamy
We all know about the function overloading feature in C++, which allows us to have the same name given for a function with different signatures. But what about overloading based on the const-ness of a member function?
Calculate the Angle Between Two Lines
by Richard Bunt
This code shows you how to calculate the angle between two lines using vectors and an inverse cosine function.
The Added Benefit of Using New Instead of Malloc
by Pankaj Mishra
Not only does new allocate memory, it also calls the appropriate constructor.
Convert Descriptive Flex Fields to Numbers
by Kamlesh Jethwa
Often, data in Oracle applications is stored in extended columns known as Descriptive Flex Field (DFF) columns.
Avoiding Ambiguity in Math.h functions While Porting from 32-bit to 64-bit
by C.V. Ram
Modifying your existing 32-bit code for explicit parameters works with both 32-bit and 64-bit code and helps make porting be a bit less painful.
Overloading a Constructor or Method
by MV Prem Kumar
Overloading a constructor or a method in order to take an extra argument based upon the requirement can result in duplicate code.
Safely Downcast Pointers Without dynamic_cast Overhead
by Dick King
Try writing virtuals in the root class to do the downcasting to NULL for each of the subclasses.
Arrays of Functions
by David Bandel
Creating arrays of function pointers lets you pass functions as arguments at runtime even when you don't know the exact function needed at design time.
11 of 11     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date