when attempting to compile im getting this error wich i cant fix:
gridtest2.c: In function âinboundsâ:
gridtest2.c:46: error: expected expression before â=â token
Also im having trouble...
Type: Posts; User: karimoftos
when attempting to compile im getting this error wich i cant fix:
gridtest2.c: In function âinboundsâ:
gridtest2.c:46: error: expected expression before â=â token
Also im having trouble...
so may i ask what u mean by inbounds?
Wow quzah youve been so much help to me these past few days really appreciate it.
Im trying very hard to understand the code youve just written there i will try to look over it for a bit and then...
Right ive tried doing the changes its still not working. By not working i mean it compiles and gives the same grid as earlier. The whole part with all the if's is not changing anything to the output...
Ok this is what ive come up with. Its not working and i cant figure out were ive gone wrong:
# include <stdio.h>
# include <math.h>
# include <stdlib.h>
# include <time.h>
char grid [5]...
excelent thank you for the advice. as a clarification diagonals are not considered adjacent. I will give this a try and see how it goes. might need more help later :p
Thanks again.
yes thats what it gives. I need the program now to recognize the x's adjacent to the 1 and print them as 2's and then recognize the x's adjacent to the 2's and print them as 3's etc... until there...
I have generated the following 6 by 5 grid with x's at certain points, dots in the others and a 1 in a specific point. I need to make a program which chooses the 1 as a initial point and recognises...
Wow thank you all so much. ive finally managed to do it after 8 hours of solid work :)
All this help is much appreciated.
Ok its generating a grid and randomizing the positions of the x's so thats great :)
Now i have to make it generate as many x's as the scanned n value. For instance, say i insert 5 for n, there...
@ commontater: yea sorry for not replying last time, the users that will be testing my program most likely wont go higher than 10 by 10. Maybe once i have completed the important parts i will come...
Ok well ive tried to get random numbers in there, but now the grid isnt printing at all.....
# include <stdio.h>
# include <math.h>
# include <stdlib.h>
# include <time.h>
int lx;
int ly;
Ok thank you both for the insight. Problem is im very new to c programming so a lot of this is gibberish :p
I can sort of understand what you mean. I have read a lot of FAQ's about generating...
I have created a grid wich allows the user to type in a width and height and then prints to the screen with that width and height as dots. Now i need to randomly generate points in the grid to come...
o great thanks you all so much it works fine now :)
hmmm ok. Ive put a new line in the loop but now its outputing the same thing but in a long column... how do i input the lines to be just after every row?
Hello,
I am completely new to C programming so this may be a very trivial question but i cannot do it. I have to make a simple grid wich displays dots. The tricky part is that the user enters a...