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...
Type: Posts; User: zw_hat
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...
#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;
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:
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];
}
...
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...