Search:

Type: Posts; User: karimoftos

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    6,059

    when attempting to compile im getting this error...

    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...
  2. Replies
    19
    Views
    6,059

    so may i ask what u mean by inbounds?

    so may i ask what u mean by inbounds?
  3. Replies
    19
    Views
    6,059

    Wow quzah youve been so much help to me these...

    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...
  4. Replies
    19
    Views
    6,059

    Right ive tried doing the changes its still not...

    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...
  5. Replies
    19
    Views
    6,059

    Ok this is what ive come up with. Its not working...

    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]...
  6. Replies
    19
    Views
    6,059

    excelent thank you for the advice. as a...

    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.
  7. Replies
    19
    Views
    6,059

    yes thats what it gives. I need the program now...

    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...
  8. Replies
    19
    Views
    6,059

    adjacent points on a grid

    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...
  9. Replies
    12
    Views
    14,475

    Wow thank you all so much. ive finally managed to...

    Wow thank you all so much. ive finally managed to do it after 8 hours of solid work :)

    All this help is much appreciated.
  10. Replies
    12
    Views
    14,475

    Ok its generating a grid and randomizing the...

    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...
  11. Replies
    12
    Views
    14,475

    @ commontater: yea sorry for not replying last...

    @ 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...
  12. Replies
    12
    Views
    14,475

    Ok well ive tried to get random numbers in there,...

    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;
  13. Replies
    12
    Views
    14,475

    Ok thank you both for the insight. Problem is im...

    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...
  14. Replies
    12
    Views
    14,475

    generating random points in a grid

    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...
  15. Replies
    6
    Views
    3,157

    o great thanks you all so much it works fine now...

    o great thanks you all so much it works fine now :)
  16. Replies
    6
    Views
    3,157

    hmmm ok. Ive put a new line in the loop but 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?
  17. Replies
    6
    Views
    3,157

    Help with a grid

    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...
Results 1 to 17 of 18