Computer Science Canada Indent Problem |
Author: | Masta_911 [ Sun Jan 14, 2007 11:19 am ] |
Post subject: | Indent Problem |
Iam having this little problem with indenting. everytime i presss F2 it gives me this error message: INDENT Failed Not enough memory to indent file PLz help |
Author: | CodeMonkey2000 [ Sun Jan 14, 2007 11:44 am ] |
Post subject: | RE:Indent Problem |
that means that your program is too big for the editor to indent |
Author: | Masta_911 [ Sun Jan 14, 2007 11:52 am ] |
Post subject: | RE:Indent Problem |
no its jus 1 line dats 661 colomns long its somthing like if z = 100 and k = 100 and....... is there a way to shorten that line and maybe put that line in 3 or 4 lines for example if z = 100 and then continue that same line in the next line after like 100 colomns if i take that line offf it indents perfectly |
Author: | CodeMonkey2000 [ Sun Jan 14, 2007 12:05 pm ] |
Post subject: | RE:Indent Problem |
Sorry I don't understand what you are saying, can you please post the code segant that is long? |
Author: | Masta_911 [ Sun Jan 14, 2007 12:10 pm ] | ||
Post subject: | Re: Indent Problem | ||
heres the if statement dats 2 loooooong and i tried making it an array it not going to work for my program then hope this helps you understand it better |
Author: | CodeMonkey2000 [ Sun Jan 14, 2007 12:16 pm ] | ||
Post subject: | Re: Indent Problem | ||
At every few "and"s you can hit enter. like:
|
Author: | Masta_911 [ Sun Jan 14, 2007 12:21 pm ] |
Post subject: | RE:Indent Problem |
thanks a lot that worksssssss i did try buh maybe i am not good with arrays |
Author: | [Gandalf] [ Sun Jan 14, 2007 12:23 pm ] | ||
Post subject: | Re: Indent Problem | ||
Dear goodness... Of course you should be using an array! The most obvious way is:
|