Search:
Type: Posts; User: HeartBreakKid
Search:
Search took 0.17 seconds.
-
February 2nd, 2007, 10:34 AM
I'm using the GetThreadTimes() API call to determine CPU utilization of a worker thread in my app. Everything is working fine when I test locally (on my single CPU development box), but when I test...
-
January 24th, 2006, 01:04 PM
Missed this...... Thank you!
Real name is Chad ;)
-
January 13th, 2006, 04:13 PM
From your code, it looks like you already have a structure for a card, in that case you could really simplify your code...
struct Card
{
enum Suit {spade, heart, club, diamond}
...
-
January 13th, 2006, 03:12 PM
Have a look at this FAQ:
http://www.codeguru.com/forum/showthread.php?t=231054&highlight=string
-
January 13th, 2006, 10:53 AM
// Not tested...
#include <utility>
#include <vector>
using namespace std;
pair<int, int> oneCard (0, 13)
vector<pair<int, int> > deck;
-
December 19th, 2005, 01:05 PM
;)
The OP wasn't immediately clear on what was needed. I had drafted three responses, checked the OP again, and deleted them before finalizing that one. :)
-
December 19th, 2005, 01:00 PM
Please show how the objects in PR are allocated.
Your code, specifically,
PR[i].getPersNr()
// and
-
November 10th, 2005, 11:40 AM
Shouldn't it really be:
const char* const "test";
The first const only applies to the char* p, so you cannot change its value, whereas the second const refers to the literal string test. ...
-
November 2nd, 2005, 04:40 PM
To my knowledge, this shouldn't work (shorthand):
for(int x = 0, int y = 0; x < 5; ++x, ++y);
The second int is unexpected (and unnecessary)
-
October 13th, 2005, 01:46 PM
I don't think anyone is going to do your homework for you, but it really is a pretty simple set of questions...
Think it out, given that "list" always means the head (i.e. first element) in the...
-
September 21st, 2005, 03:31 PM
You're looking at it the wrong way.
-2147483648 (min value)
means 2147483648 NEGATIVE values (staring with -1)
2147483647 (max value)
-
September 7th, 2005, 04:10 PM
You haven't provided the implementation of any of the member functions. The reason you don't see errors for the others, is because you haven't called them.
-
August 23rd, 2005, 08:23 AM
Depends on the triangle.....
// This one may be tricky
*
* *
-
August 22nd, 2005, 11:42 AM
Technically, you can:
int* a[3];
a[0] = new int[10];
a[1] = new int[10];
a[2] = new int[10];
-
July 21st, 2005, 10:49 AM
This thread no longer makes sense.
Thread synchronization is only applicable if you have multiple threads operating on the data (same instances of the data in memory) at the same time.
If you...
-
July 21st, 2005, 08:24 AM
I'm not sure you want to keep the 1:1 as a derived:base relationship (completely depends on the table layout).
Take a simple table layout like this for instance:
ZIP_MSTR (PK ZIP_CD)
CUSTOMER ...
-
I find it hard to believe that anyone is asking these questions in interviews anymore. If they're so worried about getting "good" candidates they should incorporate some sort of preinterview testing...
-
Exactly my point. Didn't catch the sarcasm?
:p
-
There is no way to insert into an existing file. You'll need to read in the file, insert/append your required data, and output the modified information to the file.
-
Please use code tags. Also, this won't compile.
-
Wow, a real world question in an interview! :rolleyes:
-
limits.h
Or STL limit. std::numeric_limits
-
April 8th, 2005, 11:14 AM
I like it... If we do everyone's homework for them, we'll eventually have to do their job for them when they get to that point....
-
March 28th, 2005, 09:54 AM
place
delete this;
In the dialog's PostNcDestory function. It would be cleaner if you put the Create() call in the constructor...
-
March 17th, 2005, 04:37 PM
Assembly code has nothing to do with it as it is compiler specific. The standard notes no differences between the types (that we haven't already discussed).
|
Click Here to Expand Forum to Full Width
|