Search:

Type: Posts; User: polarbear

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,078

    Bump

    Bump
  2. Replies
    16
    Views
    2,078

    Whoops! When I modified the generator to...

    Whoops! When I modified the generator to automatically put in the $ I made a mistake.
    This is the functioning generator. So now that this generator problem is solved, whats causing the map program...
  3. Replies
    16
    Views
    2,078

    it's supposed to prevent and extra . from being...

    it's supposed to prevent and extra . from being printed
  4. Replies
    16
    Views
    2,078

    I used this code to generate the oilin.txt,which...

    I used this code to generate the oilin.txt,which is the input for the map program.
    whats supposed to happen is that each day, the $ will spread in 4 directions to become *. These * will then spread....
  5. Replies
    16
    Views
    2,078

    That was not meant to be a border. I just wanted...

    That was not meant to be a border. I just wanted to make the coordinates more "natural". I corrected those errors but the same thing happens.

    #include<stdio.h>

    int main()
    {

    int i,j,h;
    ...
  6. Replies
    16
    Views
    2,078

    For 2000 by 2000, the *(oil) appears 2 steps...

    For 2000 by 2000, the *(oil) appears 2 steps above the $(initial oil) and spreads 2 squares at a time, instead of to the adjacent squares.
    R and C are the rows and columns. K is the number of days....
  7. Replies
    16
    Views
    2,078

    okay, i've tried it. The size of the map is...

    okay, i've tried it. The size of the map is variable and for numbers like 200 it works fine but for numbers like 2000, when I increment or decrement the row, it moves 2 squares instead of 1. What's...
  8. Replies
    16
    Views
    2,078

    How much do I have on the stack and how can I...

    How much do I have on the stack and how can I declare it using a heap? Will declaring on a heap make it slower?
  9. Replies
    16
    Views
    2,078

    Char array problem

    Hi all. I am trying to write a program to simulate a 2000 by 2000 map but when I declare char map[2000][2000] it crashes immediately. char map[1000][1000] works fine, though. Why is this happening?
  10. Replies
    10
    Views
    1,934

    But that happened within the range of the array....

    But that happened within the range of the array. How can it be modified by some phantom?
  11. Replies
    10
    Views
    1,934

    I fixed that issue, but some of the array values...

    I fixed that issue, but some of the array values that I set to 0 initially and subsequently did not modify, start to have values? What's going on???
  12. Replies
    10
    Views
    1,934

    Thanks a lot! I'll try to correct it...

    Thanks a lot! I'll try to correct it...
  13. Replies
    10
    Views
    1,934

    what do you mean by overflowing? what are the...

    what do you mean by overflowing? what are the ranges? To use a bigger data type do i use long unsigned int or do I increase the array size? Thanks in advance.
  14. Replies
    10
    Views
    1,934

    Funny array behaviour. Please Help!

    Dear all,

    I have been having trouble with this code :( . This program is supposed to brute-force verbal arithmetic, but when it is testing large numbers, the values in array x1 screw up badly....
Results 1 to 14 of 14