Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Having trouble compiling a SAW routine

  1. Jun 14, 2006 #1
    I am trying to compile a sample self-avoiding random walk routine, but my compiler doesn't compile and it gives me error messages due to this line.

    error 86 - Incomplete expression
    error 142 - Void type not permitted here
    error 192 - An object of type 'void' cannot be assigned to an object of int

    Here's the program:

    Any help is appreciated. Thank you.
  2. jcsd
  3. Jun 15, 2006 #2
    int ipos[4] = {};
    int ipos[4];

    i dont see why the array needs to be zero'd out, if thats what your attempting
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook