Formatting code makes it a lot easier to read. S1=1; S2=0; procedure P begin A; wait(S1); B; signal(S1); C; D; signal(S2);...
You could have a second array that stores whether or not you've visited a given square. Then you can just recurse from any point for North, South,...
Here's a start: int main() { int payroll, salary, cont=1; while (cont) { getPayrollCode(&payroll); getSalary(payroll, &salary);...
Appears to be a partial duplicate of http://www.go4expert.com/showthread.php?t=23744 I've no idea what "c++ assmebly language" is.
OK, here's a quick one. Read both U and D into sorted linked lists, but don't add duplicate lines to the D linked list. Then each list should...
strstr checks if a string contains a substring. If the line doesn't contain CME, just exclude it from the comparison. OK, so my first algorithm...
"I have to make sure if the file having unique data contains all the lines present in the file containing duplicates." OK, so the comparison...
What's the exact error you get from VS2010?
Not sure, could it be to change temp += *big + *small; to temp += *big - *small; ? But it really depends which addition you want to change to...
OK. I use DWORD64 types in conjunction with %I64d. This is helpful for your project as it's an unsigned type, so you can divide it by 2 without...
1. Yes, because the object exists when you invoke the non-static method, so there's no problem there. 2. No, because the object might not exist...
Looks invalid to me. What version of what compiler compiles the existing code?
%I64d on Windows.
There's nothing wrong with system("cls"); to clear the screen in Windows. This is the correct command. But this line of code cannot possibly...
void test31() { int TRUE=(1==1), FALSE=(1==0); int x=0, y=1; printf("x==y==x is %s\n",(x==y==x) ? "TRUE" : "FALSE"); } Output: x==y==x is...
I had a look at the ECDL once (European Computer Driving Licence) and it was full of stupid questions like this. It tests your knowledge of the...
10. What you need to think about is what would happen if defs.h contained each of A-E, and c1.c and c2.c both #include defs.h, and you try to...
http://lmgtfy.com/?q=regs Could mean all sorts of things. What context? In an assembly programming context it might be short for REGISTERS,...
Void add(double elem) //adds a number to the current sum I don't know how can I solve this kind of problem? You can't, it's impossible. In C and...
What frequently happens when writing programs to handle dates and times is that sooner or later you need a conversion to a serial number that...
Separate names with a comma.