Search:
Type: Posts; User: CornedBee
Search:
Search took 0.05 seconds.
-
September 20th, 2004, 12:43 PM
That would be pretty stupid...
-
April 2nd, 2004, 01:25 PM
Shan't say nothing if you don't say please!
-
April 2nd, 2004, 01:13 PM
No, you'll eat the candy ;)
-
April 2nd, 2004, 01:03 PM
Of course it depends how strictly you see "nothing". :)
-
April 2nd, 2004, 12:43 PM
Something that does nothing is slower than nothing that does something.
-
April 2nd, 2004, 11:15 AM
The while loop never runs, you forget to reset the index.
-
April 1st, 2004, 03:18 AM
The >> operator cannot take a const argument, you are modifiying it.
-
April 1st, 2004, 03:17 AM
The most common compiler in UNIX is the Gnu Compiler Collection, gcc. There are two popular IDEs I know of, Anjuta and KDevelop. Then there are the advanced text editors, which are also often used:...
-
April 1st, 2004, 03:14 AM
Neither is faster, it only depends on what you put in it. Aside from that it's just a matter of syntax.
-
March 29th, 2004, 05:18 AM
std::map:
size: O(1)
find & insert: O(log n)
stdext::hash_map:
Not actually a standardized container. Anyway.
size: probably O(1), no reason not to store it in a variable
find: Theta(1), but...
-
March 27th, 2004, 07:42 AM
The outdated code warning is probably due to the fact that you should use <cctype>, not <ctype.h>.
-
March 21st, 2004, 02:04 PM
Yes, Sam is right. In the context of classes, überschreiben should be override.
-
March 21st, 2004, 04:38 AM
It looks like this:
class int24
{
int value;
public:
int24() {}
int24(const int24 &o) { value = o.value; }
int24(int i) { //bounds check and assign }
-
March 20th, 2004, 07:38 AM
You have to emulate it. 64-bit operations are supported on some machines, emulated by the compiler on others. 32-bit operations are supported nearly everywhere. 24 bits are an odd number of bytes,...
-
March 20th, 2004, 07:35 AM
Uncomment the #pragma and see if the problem goes away. To me it looks very much like such a problem. You can also output sizeof(BBB) with WORD and DWORD. If the DWORD version is 2 bytes larger than...
-
March 9th, 2004, 08:20 AM
The third is the best of course.
The first duplicates the code and does the unnecessary second check even if the first succeeded.
The second doesn't do the check, but still duplicates the code....
-
February 28th, 2004, 04:53 PM
-
February 27th, 2004, 06:06 AM
Keeping track of references is something that is done for instance in Java. There you simply cannot explicitly delete objects, the garbage collector takes care of this. I don't think it makes sense...
-
February 27th, 2004, 03:06 AM
The database though has strictly defined areas where it can search for referenced or referencing objects. C++ cannot, you can't search the whole memory or even stack for pointers. It would require...
-
February 27th, 2004, 02:38 AM
I mean that an object doesn't know about a reference to it.
-
February 26th, 2004, 05:55 PM
-
February 26th, 2004, 01:56 PM
BTW, on kas' first post, you can have as much whitespace between the :: operator and its two operands as you want. You can have none, one on each side, one on one side, have the :: on its own line,...
-
February 26th, 2004, 01:51 PM
It wouldn't be all that hard. You'd just have to do the work that the DB developers do. :)
The real problem is the lack of backreferencing. What happens in your DB example if there are three...
-
February 26th, 2004, 10:53 AM
Relational databases are a lot more specialized than a general-purpose programming language...
-
February 25th, 2004, 05:32 PM
I think that for a while the Dinkumware version of the STL provided the implementation of basic_*stream in .cpp file, using the exported templates feature of MSC++. This meant that only the char and...
|
Click Here to Expand Forum to Full Width
|