Thanks for the help guys, but I'm still having problems. So far I've got this:
int i, j;
char input_line[6];
char array[5][5]
for(i = 0; i < 5; i++) {
fgets(input_line, 6,...
Type: Posts; User: gman89
Thanks for the help guys, but I'm still having problems. So far I've got this:
int i, j;
char input_line[6];
char array[5][5]
for(i = 0; i < 5; i++) {
fgets(input_line, 6,...
Sorry, I actually didn't copy the code from the program, I just rushed it quickly. This is how it was:
#define ROWS 5
#define COLMNS 5
char array[5][5];
while(y < COLMNS) {
I've become quite frustrated trying to assign input into 2D Arrays. What's the best way to do it?
I have a 2D array of char type that is initially empty. I want to print out the array once the...
Hey thanks, that actually worked when I entered integers with comma's in between. I never would have picked that up.
Thanks for the help. But I should have stressed more that I'm trying to just use If statements. To simplify it can I create a new integer or float or something?
The output I get with my original...
Omg can someone please inform me on how I can sort 3 integers only with basic commands like printf, scanf, and if statements? No looping or switches.
I tried heaps of things, creating high and low...