View previous topic :: View next topic |
Author |
Message |
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri May 03, 2013 7:26 am |
|
|
magic word, gets the bird !
|
|
|
josephazzam
Joined: 03 May 2013 Posts: 10 Location: Lebanon
|
|
Posted: Fri May 03, 2013 7:34 am |
|
|
dear ezflyin
well I solved the problem, it was extremely simple, and you did not need to know anything more than my first comment to solve it.
Thank you very much for you help
take care[/url] |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Fri May 03, 2013 7:37 am |
|
|
That is certainly not a good way to make friends.
Just FYI for future help requests.
G. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Fri May 03, 2013 8:30 am |
|
|
tab[(i*6)+j] = Alphabet[ 36 ][j] ;
As Gabriel alludes to:
i is an int
i*6 will use int math to produce an int result
an int result can not exceed 255
If i is a long things may improve.
Added note: Just saying you have solved the problem does nothing for future readers that may come looking the a solution to a similar problem. Always post the solution once you find it. _________________ The search for better is endless. Instead simply find very good and get the job done.
Last edited by SherpaDoug on Sat May 04, 2013 5:55 am; edited 1 time in total |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Fri May 03, 2013 8:56 am |
|
|
Quote: | well I solved the problem, it was extremely simple, and you did not need to know anything more than my first comment to solve it. |
That's not quite correct, apart from the demeanour aspect when asking for help, it took you not less than
four attempts to post a code that actually allows to reproduce the problem (the version with i*6 index). |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Fri May 03, 2013 10:17 am |
|
|
Hi,
Yeah, a much bigger issue than the original "problem" was the demonstrated problem solving methods, or lack thereof of the OP. Of course, it was fairly obvious that this was a variable size issue, and I alluded to that in an early post. I guess I should have ignored the belligerence of the OP, but his attitude rubbed me the wrong way
John |
|
|
|