Search:
Type: Posts; User: ixSci
Search:
Search took 0.03 seconds.
-
August 17th, 2009, 04:09 AM
Hello all,
I've bumped into some problems with using this macros. Here they are:
1. If I use __FILE__ macros in Debug mode then I have the full path to my source file. If I use it in Release...
-
August 13th, 2009, 10:27 PM
-
August 13th, 2009, 12:25 PM
See these frameworks: http://code.google.com/p/madfish-webtoolkit/ and http://www.fastcgi.com/drupal/node/5
I didn't use it by myself but I took this from two articles about how to write...
-
August 9th, 2009, 01:07 AM
Do you know what he means under "not portable"? I can say that 50%(less or more) C++ features not portable between different platforms. But it's true if you use things dependent on concrete...
-
August 8th, 2009, 12:57 AM
It's not correct you can perform cast to and from void* by using static_cast, reinterpret_cast is redundant here.
Just as complement:
Muthuveerappan, you should follow a simple rule: Don't use...
-
August 6th, 2009, 09:01 AM
There is no non-const reference but there is a const reference in C++.
int obj = 0;
int & const ref = obj;
but I agree with the statement ""const reference" is meaningless in C++"
-
August 6th, 2009, 01:29 AM
Reference is a part of the language which can't be changed after definition. That is why you have no opportunity just declare a reference(except class declaration and extern) but you have to define...
-
August 5th, 2009, 12:52 PM
No, you was attempting to create const reference to non-cost variable. Reference is always const.
You should be aware that using const_cast on variable which was defined as const bring you to...
-
August 3rd, 2009, 05:42 AM
Muthuveerappan, it's a good reason to use comments for exception specification that doesn't involve any language mechanism to handle this specification. You mentioned unexpected() function outcome...
-
August 2nd, 2009, 11:31 AM
It seems like you are right. Alas, I didn't find accurate statement which mentions something about forward declaration and exception specification but if you have an error relate to this then it is...
-
August 1st, 2009, 12:48 AM
BTW s2cuts you shouldn't use const_cast in such a situation(you shouldn't use it at all :) ) because using const_cast on variable which was defined with const modificator is undefined behavior.
-
August 1st, 2009, 12:41 AM
The simplest way is to compare string which you read from file with the string which you code in your program.
Your case function would something like this
void foo(std::string xStr)
{
...
-
July 30th, 2009, 07:52 AM
swprintf_s is a function and not the macros(it is not a preprocessor part at all), preprocessor can work with itself's product only. Another words, you can test only macroses which were defined by...
-
July 28th, 2009, 10:51 AM
If you accept unexpected result why you've started this topic?
-
July 28th, 2009, 07:44 AM
Since you use std::priority_queue you have no assumptions about order of the the-same-priority elements because it's implementation defined.
-
July 28th, 2009, 06:23 AM
I didn't read this book and don't know its authors. I read Richter's book and I know he is very knowledgeable man and he has a good "teacher language"(I mean his books are simple to read and...
-
July 28th, 2009, 05:26 AM
The answer is very simple: get rid from friend relation. And there is no other methods in C++.
-
July 28th, 2009, 05:15 AM
I don't see a declaration of your queue. What a type it has?
-
July 28th, 2009, 01:42 AM
There is no book about threads in C++ because threads will become part of C++0x standard. As this standard wasn't approved yet writers didn't write any book about it.
But you can read some books...
-
July 27th, 2009, 10:26 PM
Why you need a pattern? Use inheritance with virtual functions and you reach what you need.
-
July 27th, 2009, 01:02 PM
not in the heap but in the free memory.
-
July 27th, 2009, 11:28 AM
At first glance I see two approaches:
1. To have a local copy of the database and work only with this copy and sometimes replace the public db to your copy.
2. Run your application as the child...
-
July 27th, 2009, 10:22 AM
You can't do it with pure C++. You need a platform-depend code whereas C++ is platform-independent language.
I think you use windows and if I'm right then you should use WinAPI and another branch in...
-
July 26th, 2009, 10:15 PM
Such as short int or int for example. It depends on your calculations. Choose the integral type which can fit your result or change your encrypting method, you should just throw out following...
-
July 26th, 2009, 12:51 PM
I don't think so. If your result ciphercharacter doesn't fit char you shouldn't use char. Use larger type for your manipulation instead of char
|
Click Here to Expand Forum to Full Width
|