Forum: C++
Jan 29th, 2005, 7:37 AM
|
|
Replies: 4
Views: 271
|
Forum: C++
Jan 24th, 2005, 5:34 PM
|
|
Replies: 18
Views: 964
|
Forum: Coder's Corner Lounge
Jan 23rd, 2005, 8:29 PM
|
|
Replies: 20
Views: 412
|
Forum: C++
Jan 23rd, 2005, 8:23 PM
|
|
Replies: 18
Views: 964
|
Forum: C++
Jan 23rd, 2005, 3:58 PM
|
|
Replies: 69
Views: 1,982
>So they do just about the same thing, except...
>So they do just about the same thing, except that += makes it easier for the programmer on more complex strings...
Both do the same thing, they just do it differently so that the compound assignment...
|
Forum: C++
Jan 23rd, 2005, 3:38 PM
|
|
Replies: 69
Views: 1,982
|
Forum: C++
Jan 23rd, 2005, 3:29 PM
|
|
Replies: 18
Views: 964
|
Forum: C++
Jan 23rd, 2005, 3:19 PM
|
|
Replies: 3
Views: 245
|
Forum: Perl
Jan 22nd, 2005, 10:35 PM
|
|
Replies: 2
Views: 583
|
Forum: C++
Jan 22nd, 2005, 10:32 PM
|
|
Replies: 18
Views: 964
|
Forum: C++
Jan 22nd, 2005, 10:20 PM
|
|
Replies: 3
Views: 245
|
Forum: C++
Jan 21st, 2005, 6:28 PM
|
|
Replies: 2
Views: 163
>I know the way the header files should be...
>I know the way the header files should be included in vc++( #include<graphics>).
Omitting the .h only applies to standard headers. graphics.h is a Borland extension. On top of that, assuming you're...
|
Forum: Coder's Corner Lounge
Jan 20th, 2005, 8:04 PM
|
|
Replies: 22
Views: 894
Recursion is best used where it solves the...
Recursion is best used where it solves the problem with considerably less effort and without being terribly inefficient. Anyone who has a strong opinion either way is needlessly restricting himself.
|
Forum: C++
Jan 19th, 2005, 6:01 PM
|
|
Replies: 4
Views: 422
|
Forum: C#
Jan 17th, 2005, 5:34 PM
|
|
Replies: 61
Views: 2,165
>I got an error that said ReadKey() was not in...
>I got an error that said ReadKey() was not in System.
ReadKey is new with C# 2.0. Get the latest version of the .NET framework and C# compiler and things will work nicely. That's why I suggested...
|
Forum: C++
Jan 17th, 2005, 5:23 PM
|
|
Replies: 1
Views: 224
|
Forum: C++
Jan 17th, 2005, 5:16 PM
|
|
Replies: 12
Views: 663
|
Forum: C#
Jan 16th, 2005, 8:01 PM
|
|
Replies: 61
Views: 2,165
>What do I need to get started writing code in...
>What do I need to get started writing code in c#?
You need a C# compiler and a reference book. Since you're already familiar with C++, the basic syntax shouldn't be a problem. You can download a...
|
Forum: C++
Jan 16th, 2005, 9:20 AM
|
|
Replies: 2
Views: 278
That's the startup module. Did you set up the...
That's the startup module. Did you set up the compiler according to the installation instructions? The compiler looks in whatever library directory you specify, and if you don't specify one then it...
|
Forum: C++
Jan 14th, 2005, 9:33 PM
|
|
Replies: 7
Views: 364
|
Forum: C++
Jan 14th, 2005, 9:27 PM
|
|
Replies: 3
Views: 208
|
Forum: C++
Jan 14th, 2005, 9:13 PM
|
|
Replies: 2
Views: 336
>am I correct?
For the most part. The most...
>am I correct?
For the most part. The most noticeable differences between malloc and new is that malloc will return a null pointer if it fails and new will throw an std::bad_alloc exception (by...
|
Forum: C++
Jan 14th, 2005, 9:08 PM
|
|
Replies: 2
Views: 235
|
Forum: C++
Jan 2nd, 2005, 9:57 AM
|
|
Replies: 12
Views: 414
|
Forum: C++
Jan 1st, 2005, 1:39 PM
|
|
Replies: 6
Views: 292
>i have msvc 6.0 intro version, and i can't...
>i have msvc 6.0 intro version, and i can't compile anything
Visual C++ 6 was okay if you weren't trying to use standard C++, otherwise it was crap.
>i was using the free one i got online, lol
From...
|
Forum: C++
Jan 1st, 2005, 1:37 PM
|
|
Replies: 12
Views: 414
>Does this seem like a good approach to the...
>Does this seem like a good approach to the problem?
Well, it's somewhat of a roundabout solution. Don't you think it would be easier to do this instead?
/* Assuming the largest a word can be is 50...
|
Forum: C++
Jan 1st, 2005, 9:22 AM
|
|
Replies: 6
Views: 292
Visual C++ is a part of Visual Studio. And yes,...
Visual C++ is a part of Visual Studio. And yes, you can write straight C++ with it, and yes, it's a good compiler. But Visual C++ 6 is not. If you want a good Microsoft compiler, get the latest and...
|
Forum: Other Programming Languages
Dec 31st, 2004, 12:04 PM
|
|
Replies: 3
Views: 211
|
Forum: C++
Dec 31st, 2004, 9:37 AM
|
|
Replies: 15
Views: 368
>that sounds a lot like re-inventing the...
>that sounds a lot like re-inventing the wheel.
What does? Writing a toy vector class to help someone understand what it is? Or the standard vector class trying to replace arrays?
|
Forum: C++
Dec 31st, 2004, 7:53 AM
|
|
Replies: 15
Views: 368
>these link might be usefull if i know what...
>these link might be usefull if i know what vectors are first
It's basically a dynamic array class. The name vector was used because array is a common class name and vector is a convenient...
|
Forum: C++
Dec 30th, 2004, 9:46 AM
|
|
Replies: 15
Views: 368
|
Forum: C++
Dec 30th, 2004, 9:44 AM
|
|
Replies: 3
Views: 164
|
Forum: C++
Dec 29th, 2004, 6:09 PM
|
|
Replies: 16
Views: 418
|
Forum: C++
Dec 29th, 2004, 11:22 AM
|
|
Replies: 3
Views: 164
It's a nonportable hack that happens to be...
It's a nonportable hack that happens to be dangerous as well. But assuming that nothing untoward happens, here's how it works:
struct sockaddr has two members, first a two byte short, then an array...
|
Forum: C++
Dec 29th, 2004, 11:09 AM
|
|
Replies: 12
Views: 414
>if (index = 0 ||index = 1||index = 2)
= is...
>if (index = 0 ||index = 1||index = 2)
= is assignment, == is comparison. I would be very surprised if you wanted assignment as an if condition. So you should change your code to this:
if (index ==...
|
Forum: C++
Dec 28th, 2004, 4:29 PM
|
|
Replies: 2
Views: 167
|
Forum: C++
Dec 28th, 2004, 4:27 PM
|
|
Replies: 12
Views: 414
>string word;
This is C++, the OP wanted C.
>I...
>string word;
This is C++, the OP wanted C.
>I need to put words from a txt file into a linked list.
It's surprisingly easy once you get a feel for it, but until then you'll feel lost. If you're...
|