|
wow wow wow, man, if you want to go that way with me, you didn't choose the right person to fight against.
ok, my english is not perfect, but I sure help people here, and i do my best to make better the level of knowledge of everybody in this forum.
you asked for the function to use to make a ln() , and if you look closer, you'll remark that no only I gave you the answer, but I too gave you an explanation of what it is, and where is the difference with the other log functions.
so if you're not getting the teaching tip I gave you, it's sad for you, but don't tell me to "hold my mouth", because everything I said at first was to help you.
and for your information, I've been coding in C/C++ for more than 10 years, and i sure know where are the common beginners mistakes.
now, if you can't stand my help, just don't expect me to help you anymore...
modified on Friday, March 7, 2008 7:43 AM
|
|
|
|
|
OOPs We are extremly sorry!
Actually my friend have used my login to post this question!
I was not here at that time! If so i would have explained him the fact.
He meant it wrongly. please forgive him.
As we are here to solve our problem rather creating!
|
|
|
|
|
Tell your friend he is a bit rude.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
Sakthi_Vel wrote: Actually my friend have used my login to post this question!
Not, probably.
modified on Friday, March 7, 2008 10:31 AM
|
|
|
|
|
But possible, Watson!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Watson! who's that rude fellow
|
|
|
|
|
Well, probably is just one of his friends.
Uhm... A very-very-good-friend since he knows about his CP account details.
Oh Yes, he was his best friend.
Now everyone knows that somebody's best friend is just himself, hence... I'm confused Holmes, please explain...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Arsène Lupin?!
Maxwell Chen
|
|
|
|
|
ROTFL !!!
So you got him.
Uhm.. congrats
|
|
|
|
|
Yet another "A friend of mine..." story. Get a life, mate.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
CPallini wrote: See here.
The link is broken. It is not an absolute URL.
Maxwell Chen
|
|
|
|
|
You're right but I think it was a CP bug, not mine.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: it was a CP bug
Take the [PermaLink] to open a new window, and copy that new URL. It will solve!
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: and copy that new URL. It will solve!
how's that possible, do you hacked your domain server policy [^]
|
|
|
|
|
Rajkumar R wrote: how's that possible, do you hacked your domain server policy [^]
I'm home ~~~
Maxwell Chen
|
|
|
|
|
I told you it was a CP issue. Now it's working fine without my intervention.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: I told you it was a CP issue. Now it's working fine without my intervention.
Yes, indeed!
Maxwell Chen
|
|
|
|
|
Hi,
For some reason, I need to launch an application from my c++ code while holding the Alt key.
the code is really simple:
<br />
char appName[64];<br />
strcpy(appName,"c:\\WINDOWS\\notepad.exe");<br />
ShellExecute(hWnd,"open",appName,NULL,NULL,SW_SHOWNORMAL);<br />
But when executed whith the Alt key down, the application is opened behind the main window
Does anyone have any clue fro this ?
I appreciate your help.
Thanks
|
|
|
|
|
Hello everyone,
According to standard, the code should not compile.
http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html
template <typename T> struct Base {
int i;
};
template <typename T> struct Derived : public Base<T> {
int get_i() { return i; }
};
But it can compile without any issues in Visual Studio 2008, without any warnings and even if I select disable language extensions to yes.
Any comments? What is wrong?
thanks in advance,
George
|
|
|
|
|
George_George wrote: According to standard, the code should not compile.
What do you mean with standard?
As far as I can tell the snippit looks fine. And i think that the manual is wrong on this one.
They state: In get_i(), i is not used in a dependent context according to me this is wrong since i is without any doubt the Base<T>::i which is known.
This is indeed a strange situation.
codito ergo sum
|
|
|
|
|
Thanks BadKarma,
Seems like Visual Studio is wrong. Please look at section 35.19 of,
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.19[^]
1.
I think this line of statement matters, agree?
--------------------
the compiler does not look in dependent base classes (like B<T>) when looking up nondependent names (like f).
--------------------
2.
What disadvantage do we have if the code can compile?
regards,
George
|
|
|
|
|
I think current versions of VC++ treat this issue in the manner treating non-template name hiding stuff. Such as:
int a = 3;
for(int i = 0, a = 0; i < 2; i++) {
printf("a = %d \n", a);
}
printf("a = %d \n", a);
Result:
a = 0
a = 3
Maxwell Chen
|
|
|
|
|
Hi Maxwell,
1. I think Visual Studio 2008 provides correct result in the sample you provided. Are there anything wrong?
2. Does your sample have anything related to my question?
regards,
George
|
|
|
|
|
George_George wrote: 1. I think Visual Studio 2008 provides correct result in the sample you provided. Are there anything wrong?
2. Does your sample have anything related to my question?
1. I haven't found where in the ISO C++:2003 states how this issue should be working.
But, remember?! You posted Stroustrup's words in previous thread.
And that quote matches GCC document's statement.
2. Something about name resolution ...
Maxwell Chen
|
|
|
|