Search:
Type: Posts; User: Cyanide
Search:
Search took 0.02 seconds.
-
October 27th, 2010, 10:33 AM
But of course, now I feel really stupid! I knew that, I always use "wb" mode, but for some reason I just happend to use "w" this time. Looking at your own code sometimes makes you blind, so I did not...
-
October 27th, 2010, 10:21 AM
Hello friends
I have a very peculiar problem in a VS2008 MFC-program. I wrote a function dumping the contents of a 1280*1024*USHORT buffer to a file, but to my surprise the file size was never...
-
March 31st, 2009, 09:26 AM
Thank you VictorN. I was afraid that was the only way to use the string table for this... Regrettably, that sounds like a poor solution to me, lot's of extra steps!
I am also thinking about...
-
March 31st, 2009, 06:42 AM
Hi!
I am planning on preparing an MFC application (written in VS2005) for translation, and I want to move all hard coded strings to a string table. I have two types of strings in my application:...
-
February 9th, 2009, 11:33 AM
-
February 9th, 2009, 08:08 AM
Well, this is still a very easy program... follow these steps and you will do just fine:
1a) Loop all 6 subjects, for each subject loop all 35 students
1b) Let user input the mark of the...
-
February 9th, 2009, 07:09 AM
1) Sounds like homework, meaning that you should do it yourself in order to learn properly.
2) What have you done so far? Where are you stuck?
3) Why is this so much more important than other...
-
February 3rd, 2009, 04:23 AM
Will try that, thanks!Yes, the app is multi-threaded. But the threads are designed to wait for one another when necessary, so they should not mess things up...?
-
January 30th, 2009, 05:58 AM
Hi folks.
We sell a measurement system that use a framegrabber card to collect images, then performs a bunch of calculations.
There has never been any problems whatsoever with this this...
-
January 29th, 2009, 09:39 AM
No, definitely not. To answer your questions, take a look at your first post:Looking at those lines, you'll see that the initial value of s is 0, and that s is the final output of the program, this...
-
January 29th, 2009, 09:15 AM
I take it that you didn't write that code by yourself. You need to think about what is going on here, step by step. Say that the user has entered a = 12345. Then the for loop starts by setting n =...
-
January 29th, 2009, 05:51 AM
Yes, that loop should give you a correct result. Please use // rather than >> when commenting your code.
This is the same thing as
a = a/4;
-
January 22nd, 2009, 03:53 AM
Actually, the user must have meant that if the number is a 9 bit number (>255) he wants to append 2 bits, otherwise if it is an 8 bit number he wants to append 3 bits, so it will have a total of 11...
-
December 2nd, 2008, 11:55 AM
Well your code does most of the work allready. As you noticed, you just need to keep track of when you loop past the specific lines that mark the start and end of the area are interested in, then you...
-
November 26th, 2008, 10:56 AM
Thank you for advice. I did and I am satisfied with my new solution. Now I simply loop over the image once, reusing the marker of nearest neighbour if available, otherwise starting with a new marker....
-
November 26th, 2008, 09:49 AM
Hi.
I've designed a recursive function in order to count the number of objects and the size of each object in a 512x512 image. When the function finds a pixel belonging to an object it recursively...
-
November 25th, 2008, 05:38 AM
Great! Good luck with the learning!This surprises me, I cannot think of any reasonable use of break inside a loop without putting it inside an if structure??? To me, that is the whole point of the...
-
November 24th, 2008, 03:49 AM
The reason why the computer can make two moves is that you only have a break for the column loop, you need a break for the row loop as well. Otherwise the computer will be allowed to put one 'O' per...
-
November 19th, 2008, 05:22 AM
I think I've never seen so many errors in a single line of code...! :eek: Hint: there are 5 different kinds of errors in this line, whereof 3 are frequently repeated.
You really need to take a look...
-
November 10th, 2008, 12:30 PM
Q1: You have implemented a sort algorithm, however your code is not a "Selection sort". Please have a look at this Wikipedia link, there you will find a Pseudo code of the Selection sort algorithm. A...
-
November 10th, 2008, 03:43 AM
Somehow it seems like the amount of "please help me with my homework"-posts has rocketed recently. :confused:
-
November 4th, 2008, 08:09 AM
Please use the code tags to make your code readable. I also suggest you think a little while about what will happen to your variable "divisor" when you run the code.
-
November 4th, 2008, 04:50 AM
You are right! :thumb:
Please edit your first post and mark it [RESOLVED]. And please rate the posts you found helpful! ;)
-
November 3rd, 2008, 08:37 AM
Exactly that was my point, but I wanted the poster to figure that out by himself/herself. I think "harder to maintain" is a matter of opinion. Personally I prefer the "one extra decrement" approach...
-
November 3rd, 2008, 06:55 AM
Well, that was actually what I intended with my post. If you just use the static count variable correctly, this could be easily accomplished using the static variable approach. Given, of course, that...
|
Click Here to Expand Forum to Full Width
|