Im trying to make it so that the user can enter the directory of a file and that this file will be read, the problem is i can seem to get the program to use a variable as the directory, this is...
Type: Posts; User: metaljester
Im trying to make it so that the user can enter the directory of a file and that this file will be read, the problem is i can seem to get the program to use a variable as the directory, this is...
i cracked it man :D thanks for your help!
i made the binary number = index of the array
then incremented the array
so if a binary 6 was read in
i=6
array[i]++
would another way to possibly make the binary number equal to the index number of the array and add add one to each index??
AAh i thought this was going to be the answer :-(, think it will be possible to add a bit on at the end just to count the 255s?
thanks never noticed that
Hi thanks for the reply, ive tried doing this, but all this does is add another 0 to the array so that an extra 0 is counted, it still only goes up to 254
#include <iostream>
#include <algorithm>
#include <fstream>
using namespace std;
char signed_character;
unsigned char byte;
unsigned int numberofbytes;
int i, num=0, number=0;
int...