test.h classtest1 { public: int declare(-----); int add(-----); int multiply(----); }; now in main a variable void main(){ int array[]={1230,12,89,67}; i pass array as argument in calling of declare(--,array); return 0; } now i want to pass it array variable as argument in other functions like add and multiply this function is // class name test3.cpp #include test.h int test::add() { // here in the coding i am using array variable how to access this variable from main }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)