richard stockman

Greenhorn
+ Follow
since Apr 11, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by richard stockman

Hi, I have a simple problem, I am trying to fill a 2d array 12 rows and five columns with unicode characters from 65 to 124 using nested for loops. I understand how the nested loops work but I cannot work out how to put the correct value into each array. I guess this is a simple math problem which is where I am struggling. Does anyone know of any good text on maths for programming.

16 years ago
Thankyou for your help.
16 years ago
Yeah, thats what I'm looking for, the printf method works fine but when I was using the code from my first post the characters printed out using val even though they were not in the columns and rows that I wanted, now when I change the code to the working version I get numbers instead of characters. Is this something to do with the print((val+x)+" ")?
16 years ago
Great, thats sorted out the rows and columns but now instead of getting unicode characters I get the actual values even though I declared va1 as a char at the start of my code.
16 years ago
Sorry, that should be 5 rows and 12 Columns starting at unicode char 65 through to 124.
16 years ago
Im trying to print 12 columns and 5 rows using a for loop (one inside the other). Have tried many different permutations but just cant get my head around it! Please help. This is where i have got to. There have been many other variations but without success!!
16 years ago
When trying a simple while loop is it correct that it will not work unless any variables are actually given a value rather then just delaring them as ints.
eg - This will not compile.


Thanks.
16 years ago
Have another error now since installing jgrasp.

Everything compiles fine but when trying to execute a class file I get 'could not open C:\Progam Files\Java\jre1.5.0_6\lib\i386\jvm.cfg'

Have looked in the environment vatiables and the path is set to c:\jdk1.5.0_6\bin which is where it all is with the jre.
Have looked for the file above but there is no jre instaled in program files.

Learnign to code in java seems easy.

Keeping it running is a pain in the *&%$!
16 years ago
on XP Right Click MyComputer > Properties > Advanced Tab > Environment Variables > under user Variables section, add or edit PATH > with the location of the install c:\program files\java\jdk1.5.0_6\bin\. That should be it.
16 years ago
thanks for that. I have just edited the path in the system variables rather than using autoexec.bat which apparently is the way to do it in older versions of windows and everything is working again. I think it was the quicktime installation which seemed to have changed everything. Goodbye quicktime!!
16 years ago
Hi, I have been doing a java course and up until now all my programs have compile and worked fine. No I have started getting the noclassdeffound error.
The following is in the autoexec.bat where I put it.

set path=%path%;c:\jdk1.5.0_06\bin\
set classpath=%classpath%;.\

When I compile a java file it compiles fine and puts the class in the current directory, they just wont execute.

I have just recently installed nestcape v8.1. It may be just a coincedence.
16 years ago