Its useful when you don't know for sure what type of data that pointer will be pointing to. For example, the fwrite function takes a void* argument so you will be able to write anything to the file:...
Type: Posts; User: Duck-billed Pla
Its useful when you don't know for sure what type of data that pointer will be pointing to. For example, the fwrite function takes a void* argument so you will be able to write anything to the file:...
you might want to use the function member function 'get(char *, int)', (or since you seem to be inputting a single character at a time, 'get(char &ch)') to read in data.
while(!cfile.eof())
{...
lol
SOME_TYPE *myDynamicArray;
int t;
.
.
.
myDynamicArray = new SOME_TYPE[t];
.
.
.
.
make sure you have "i.h" #include-d in your "2.cpp"
hint: use an array of long's, 256 elements long...
long t[256] = {0};
int ch;
.
.
.
t[ch]++;