Then I have these 3 functions:View more random threads:
- when we push F1 key to step into a subroutine?
- what is the difference between abstract class and concerete...
- factorial in C++ code 2011
- Programme Not Run in C++ giving erros 2011
- Here is a chunk of code prototype of Library Managment...
- Dangling pointer memory leakage Data operations
- how many malloc ,calloc and realloc take arguments in c++
- which situation we use stack.h and why we use stack.cpp
- assalam o alaikum sir Is that neccessory to use a Function...
- Is constructor necessory in c++? And if than why?
C++ Syntax (Toggle Plain Text)
Code:1. void getCatArrAndVals (char* arg[]) 2. { 3. //do something 4. } 5. 6. char * LoadCategory() 7. { 8. srand( time(NULL) ); 9. int RandIndex = rand() % 3; 10. theCategory=arrCats[RandIndex]; //category I'm interested in 11. getCatArrAndVals(colors); //I'm passing the hard-coded value of "colors" array 12. //here but I really want to pass theCategory 13. return theCategory; 14. } 15. 16. void AppMain() 17. { 18. LoadCategory();
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)