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 strongm 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: *

  • Users: gjpollitt
  • Content: Threads
  • Order by date
  1. gjpollitt

    quick basic function question

    OK, can anyone please explain to me why the 'VolumeCube' function has to be declared before the 'int(main)' and also why 'int width=25' etc. as when the function is called the 'int width' variable is being passed 50 and not 25? thanks Graham #include <iostream.h> int AreaCube(int length, int...
  2. gjpollitt

    anyone help with simple prog please

    Anyone tell me why regardless of value of 'op' the four 'if' statements are processed please? thanks Graham #include <iostream> int add(int a,int b); int subtract(int a, int b); int multiply(int a,int b); int divide(int a,int b); int main() { using namespace std; int numa, numb, ans...

Part and Inventory Search

Back
Top