is this right?
[CODE=cpp]void loadArray(const int*, const int);
int main()
{
//Declare variables
int myArray[5]; //IN: holds the array of integers
loadArray(myArr ay, 5); //IN: invokes loadArray
system("pause") ;
return 0;
}
void loadArray(const int *myArray, const int size)
{
//Increments...
User Profile
Collapse
-
-
its hard when you're going by Daniel Liang's style....its so computer science based and they're learning how to just hack at code--...Leave a comment:
-
i'm in deltamami's class and this is what the teacher told us about those problems: well, about number one
first of all... this should not be a main( ) function...
second... the function should have an array passed to it (by passing a pointer to the first element), and an integer value that you will search for in the array, and one other variable that you will need for the loop control
third... the...Leave a comment:
-
can someone explain this to me?
I'm a beginner in C++ and my teacher is not explaining the material correctly. I was wondering if I could get help
No activity results to display
Show More
Leave a comment: