Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void fillInputArray(){
- int index;
- inputs = (int**) malloc(sizeof(int*) * numOfInputVars);
- for(int i = 0; i < numOfInputVars; i++){
- inputs[i] = (int*) malloc(sizeof(int) * pow(2,numOfInputVars));
- }
- for(int i = 0; i < pow(2,numOfInputVars); i++){
- for(int j = 0; j < (pow(2,numOfInputVars)-1); j++){
- index = 0;
- decToBin(j);
- for(int k = numOfInputVars; k <= 1; k--){
- inputs[i][index] = newNum[sizeof(newNum) - k];
- index++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement