Your fopen and fwrite shouldn't be inside the for loop, further if you check the documentation for fwrite()( you'll see you only need to call...
This is not that kind of board. You need to find some ethics.
How far have you got and where are you stuck? Do you understand the requirements?
Homework?
First by using plain and simple language.
Neither is correct, because in both cases t is on the stack and invalid after the function returns. This is correct, but you must remember to...
No idea, can't solve it from fragmented sections of code.
Yes of course. -12: the - is an essential part of the number. It's what makes it a negative number.
Well it's OK to post odd segments of the code but really we can't solve it from that. You have to post the whole thing. The solution is probably...
Still, I'm surprised that whoever wrote the original code didn't spot that it displayed 1 or 0 instead of 64-bit or 32-bit in their testing.
It's a good example of why brackets should be used even if you think you know what you are doing. This code works as expected: cout <<...
Here's some code I just wrote: void test51() { vector<string> v; v.push_back("Hello"); v.push_back("World"); }
If you want a vector of CStrings then the definition would be vector<CString>. vector<string> will give you a vector of strings, not CStrings....
"it not work" is not a very helpful description of the problem. What doesn't it do that you expected, or what does it do that you didn't expect?...
Think how 512 is stored in memory. Did you get 0x02 and 0x00 (thus forming the 16-bit number 0x0200)? That's where the 0 and 2 come from. Best...
Not difficult. How far have you got and where are you stuck?
I don't get the same error in Visual Studio 2010: class statictest { static int defaultint; public: static int publicint; private:...
How can we help without more detail? You're correct - to maintain database integrity you must delete all related records first. How to determine...
I don't understand the question. It makes no sense in English. Could you rephrase it?
I'm pretty sure I could do it, but isn't the point that YOU do it? After all, if you get the job, you can't be posting to Go4Expert "This is my...
Separate names with a comma.