Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. KarlSciberras

    Declaring parameters in function header

    Note the following piece of code: int func (myval) int myval; { //statements... } The code below, seems to me the equivalent: int func (int myval) { //statements... } My questions are: 1. What is the difference between the two pieces of code ? 2. Are there any advantages...
  2. KarlSciberras

    Borland random() function

    The following is a small program which generates random numbers which can be either 1 or -1: #include <stdlib.h> #include <stdio.h> #include <time.h> int main(void) { int i; randomize(); printf("Ten random numbers of either -1 or 1\n\n"); for(i=0; i<10; i++)...
  3. KarlSciberras

    Splitting classes in .h files and .cpp files.

    Lately I have been experimenting with splitting classes in header files and cpp files. As far as I knew, the basic concept when splitting classes in header files and cpp files was the following: header file --> declaration of class cpp files --> implimentation / definition of class However...

Part and Inventory Search

Back
Top