> the values in image256[i] is from 0-65535 That'll be why you get the crash then. array1 is defined as only having 256 elements, so if, for...
Did you try 400-array1[i]? This may need scaling though if array1[i] ever exceeds 400 (so if array[i] can reach 800, then you'll need to divide...
OK, I can see the code, so how about answering some of my questions, or preferably all of them? (Hint: provide AS MUCH info as possible, rather...
In your previous post you said "i tried it but nothing displays on the graph". That's the code I'm talking about. You know, the code that...
What is the code in the for loop? It's difficult to determine what's wrong with it if I can't see it.
What do you want the program to display? Can you work out how to display part of that display? For example a multiplication table might read 1x2=2...
Depends which way round you're drawing it. You could experiment and see which way fits what you had in mind. If you're drawing a series of...
> I have tried 2 codes. Which one do you want to debug? Have you considered posting the code, or are we supposed to use our technopsychic powers...
> 'for' loop to loop through the bytes of the image OK, one way to check the colour if an individual pixel is to call GetPixel which will return...
It can make it a lot easier if we know what kind of problem we're looking for. Did the code assemble without warnings and errors? If not, what...
Any number of 9s will do the trick, so 99 (+100-1), 999 (+1000-1) etc will all work 198 will also work (200-2), as will 297 (300-3) and any...
First of all have you decided how to determine whether a number is integer or float? If you haven't done this yet then you won't be able to write...
strcat takes two strings, it does not work on a string and a char. So strcat(str,"A"); is valid, but strcat(str,'A'); is not, because 'A' is a...
printf("1 for odd, 0 for even -> %d \n",A&1); If that still doesn't answer, please copy and paste the ORIGINAL question, not your summary of what...
OK then. This is the floor pattern at a church I used to attend. The outer square is 9x9, but I counted 50 tiles (40 complete and 10 split...
It'd be nice to see some attempts before I post the solution.
You have to make the functions static to be able to take their addresses. This is because of the way object orientation works; if an object...
I'm tiling my kitchen floor and have a pack of 82 identical square tiles. I'd like to use all of them, and to arrange them into a large square....
We won't write it for you. How far have you got and where are you stuck?
Depends on the context. A Jiffy bag is a padded bag that you can send stuff in the post in so that it is protected.
Separate names with a comma.