Search:

Type: Posts; User: zw_hat

Search: Search took 0.00 seconds.

  1. i came from c to c++, and the real impact was in...

    i came from c to c++, and the real impact was in using `templates` instead of `void *` or `classes`/`structures with functions` instead of `structures with only members`.
    moreover, each language has...
  2. #include #include #define...

    #include <stdio.h>
    #include <ctype.h>
    #define MAX_ROWS 25
    #define MAX_COLS 20
    #define MAX_SIZE 200

    int main() {
    char array[25][20] = {0};
    int i = 0;
    int j = 0;
  3. haa not much.. it's just the rest of the...

    haa not much.. it's just the rest of the implementation (copying mem to your array[i] and etc). if you're not sure, i can give more details.

    cheers. :cool:
  4. Replies
    13
    Views
    3,813

    for (x = 0; x < arraysize; x++) { ptrHeltal[x]...

    for (x = 0; x < arraysize; x++) {
    ptrHeltal[x] = (rand() % high + low);
    ptrHeltal[x] = ptrHeltal[i]; // that's why you keep getting the same value
    std::cout << "\n" << ptrHeltal[x];
    }

    ...
  5. regarding the first question, it's easier to work...

    regarding the first question, it's easier to work with fgets function, it reads entire line instead of reading character by character. it will save you time and headache, in my opinion. in the...
Results 1 to 5 of 6