You can try it in a testbed. Create a small program that just sets up a test array and runs the above code on it, then displays the value of...
What you're asking is spectacularly easy, just think about it for a few minutes. You can do it in two lines of code. This is the problem with...
First.
How can array1[300] exist when it is only defined to have 256 elements? I thought we'd settled this question, remember the whole "range of...
It's not a bug, CON LPTx and the other names all have specific meanings under DOS and you cannot create files with those names (why would you want...
When you post, there are posting guidelines, including how to post code. READ THEM PLEASE. They're not easy to miss. istringstream is(XX)...
So why do you want us to explain how to write an assembly program to do square roots? Are you on a course and haven't been paying attention?...
Possibly string only exists in the std namespace; if so you'd have to prefix it with std::.
Use the isspace(c) function. Returns TRUE if the character c is a whitespace character.
Any explanation would be completely compiler specific. This expression gives undefined behaviour - that is the only possible answer. The...
Yes, I think you had a mental block before where you assumed that an array with N elements could only contain the values from 0-N. OK, so this...
Try "#include" instead of "include".
What algorithm are you using, and are you using floating point or integer arithmetic?
The wording still suggests to me that you're answering the wrong question. Consider the following code: int arr[3]; arr[0]=100; arr[1]=200;...
You'll find the code a lot easier to debug if you indent it correctly. What does it do wrong?
Neither. I'm asking about the numeric values in the array. So if, say, the smallest possible number that can be found in image256 is 23 and the...
Because both "a^=" parts modify a, and there is no "sequence point" between the two. You will see a definition of C++ sequence points in the...
Hmm... > for image[] it should contain 0-262143 and image256[] should have 0-65535 for (i=0; i<262143; i++) { array1[image[i]]++; } for (i=0;...
This code has undefined behavior, since it modifies the lvalue a twice without an intervening sequence point. See...
> array1[i] has 256 element which will represent the pixel intensity from 0-255 yeah? Well, you're designing the software so you should know what...
Separate names with a comma.