Search:

Type: Posts; User: scojan

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    5,195

    Yeah its working now, thanks a lot for help -...

    Yeah its working now, thanks a lot for help - even if it was probably one of the most basic problems you've seen on these boards xD


    #include "stdafx.h"
    #include <iostream>
    using namespace std;...
  2. Replies
    16
    Views
    5,195

    #include "stdafx.h" #include using...

    #include "stdafx.h"
    #include <iostream>
    using namespace std;

    int main ()
    {
    int NumEls[5] = {15, 25, 40, 50, 24};
    int * pVals;
    pVals = NumEls;
    int max = *pVals++;
  3. Replies
    16
    Views
    5,195

    Defining ‘i = 1’ in the line: for(i=1;...

    Defining ‘i = 1’ in the line:

    for(i=1; i<NumEls; ++i)

    Missing the first entry of the array out each time the function is run (first element of an array is defaulted as 0).




    Max ==...
  4. Replies
    16
    Views
    5,195

    C++ Problem Solving

    The FindMax() function given below is used to find the maximum value in an array of integers which has a start address in memory defined by the pointer pVals. The number of elements in the array is...
Results 1 to 4 of 4