Type: Posts; User: yzaykov
Search took 0.01 seconds.
June 23rd, 2009, 10:52 AM
Have a look at the code below:
double num = log10(8);
double den = log10(2);
April 2nd, 2009, 09:05 AM
April 2nd, 2009, 04:32 AM
void (*Func)(int, int = 1)
April 2nd, 2009, 03:09 AM
Surprisingly, this function is called .find() (-:
Have this site in mind before asking such questions:
In this very case you may pay attention to the fact you search...
March 31st, 2009, 02:25 AM
Declare operator= like this:
IntArray& IntArray::operator=(const IntArray&)
March 30th, 2009, 02:45 AM
That's the another standard way of declaring main. This way you can use the arguments, passed to your program. argc is the number of the arguments (the first one, e.g.  is always the name of your...
March 30th, 2009, 02:33 AM
As it turns out, your function concatenate() expects a char* while you pass char. You'll be probably happy to pass the argument as &_text[i]. And finally - I don't believe this is ever going to work,...
March 27th, 2009, 11:58 AM
I believe you have a dependency problem. Let us know if the problem is present after making a clean build of the application, that uses "the dlls and the libs" (actually only a relink would probably...
March 26th, 2009, 12:43 PM
Oh, really?! Then you tell me why this fails to compile:
return int i = 0;
March 26th, 2009, 12:20 PM
Because you're trying to declare a variable inside a return statement.
And by the way... I'd think for a minute before committing/submitting this... whatever it does.
March 26th, 2009, 09:01 AM
March 26th, 2009, 08:49 AM
March 26th, 2009, 04:39 AM
For this line of code, where fraction is of type long double:
sprintf(fractBuf, "%.4llf", fraction); I get this warning in gcc: Any ideas why? And what does that mean? There's no warning with %Lf.
March 26th, 2009, 03:56 AM
Hey lon3r, that's a big piece of code you pasted. We're unlikely to act like a debugger. Probably you can debug through the code, find the function that causes the segmentation fault and paste only...
March 24th, 2009, 12:18 PM
static MovieDocument& instance()
March 24th, 2009, 11:43 AM
As long as you don't know the maximum expected size of the vector, it's very unlikely that the compiler does. Neither reserve(), nor resize() will save you in this very case. So when you push_back,...
March 24th, 2009, 04:40 AM
1. Are you talking about cache like L1, L2,...? I believe you're not able to access this through C++. That's architecture dependent.
2. Are you talking about the CPU registers? Then you can use the...
March 23rd, 2009, 11:19 AM
As far as I remember, the function you need is called gmtime. Search for it in google.
March 20th, 2009, 08:29 AM
Probably you'll be happy to read this article:
March 20th, 2009, 08:20 AM
For non-negative 'n' and 'm' it looks like that's the sum of the number from 1 to 'n' minus the sum of the number from 1 to 'm':
int what(int n,int m)
if(!n && !m)...
March 19th, 2009, 11:58 AM
Be more descriptive.
By the way I'd use initialization list for constructing 'message' and I'd prefer string rather than char*. And I definitely don't know which is "the old fashion way".
March 19th, 2009, 10:02 AM
... or after building the executable, you can use a program like exescope:
There are a lot of these... if especially this one is licensed or...
March 19th, 2009, 05:54 AM
Maybe some profiling would be required but I believe that calculating hash codes or crawling through the directories manually is going to be slower then letting the file system does the work by...
March 19th, 2009, 04:26 AM
(Hm, looks like this [RESOLVED] thing is moderators' job...)
I didn't say that "you're not correct". I said that this "is not the case". It's just that you didn't answer your question.
March 18th, 2009, 09:49 AM
No, that's not the case. Remove the "[RESOLVED]" from the topic name and let someone else answer.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!