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 IamaSherpa 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. gjpollitt

    quick basic function question

    thanks for the quick reply so would you still include your function prototypes before 'int main' even if there were 100 of them? Is there not a module similar to VB that you can add to your workspace/project whereby you can store your functions and/or prototypes? Im sure I'll get the grasp of...
  2. 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...
  3. gjpollitt

    anyone help with simple prog please

    ah, thanks Im used to VB and moving to C++, hence the '=' mistake. thanks again Graham
  4. 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