No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am getting the following errors. ../MergeSort.c:32: error: expected expression before ‘]’ token ../MergeSort.c:33: error: expected expression before ‘]’ token [CODE]void mergesortinplace (int start, int length, int array[]){ if (length >= 2){ mergesortinplace(0, (length/2), array[]); /*GETTING ERROR HERE*/ mergesortinplace((length - (length/2)), length, array[]); /*AND HERE*/ } if (length >= 1){ … |
|
So here's my situation: I have a matrix with numbers that have 3 decimal point precision and potentially any amount of numbers before the decimal point. The matrix is printed on a file in the following format. Matrix has x rows and y columns: 1.333 2.666 4.222 3.999 5.547 4.318 … |
|
Original Problem I have an existing 2D array that is already filled with data for a matrix. I also have a structure that has a pointer looking like this double ** pointer. That being said. Here's a miniature version of the problem [CODE]#include <stdio.h> int main (){ int stuff [2][2]; … |