Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I think Ebenezer Scrooge is the only one I've ever heard say the phrase "bah humbug", and then only in reference to the celebration of the Christmas season. Charles Dickens is the author who made that phrase famous. AFAIK it is never used for any other purpose today, at least not where I live.

And I am tired of having this conversation every Christmas

Then change your ways and you won't get to tired :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm not sure what you want. Something like this???

int main(int arc, char* argv[])
{
   std::string input;
   if( argc > 1)
      input = argv[1]; // get string from command-line argument
   else
       cin >> input; // get string from keyboard or from stdin
}

cin does not allow space in the string, so if you need the spaces you can not use cin with >>, but call getline() instead of cin

assiming input is of type std::string
getline(cin,input);

when input is char array and not a pointer

char input[80];
cin.getline(input, sizeof(input));
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Prey.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Noah & the flood also never happened.

How do you know? Was you there? Probably a better translation would be that Noah's flood covered the world "as he knew it". It would have to rain for a lot longer than 40 days and 40 nights to actually flood the whold world as we know it today, and then it might have to empty all the oceans.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I would like to see the beginning of creation -- verify once and forall the existance of God. And verify how the universe was created.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

There is no such operator as "--". You probably misundertood your instructor, he/she probably meant "==", which is the text to see if both sides of the operator are identical (called the equal operator).

The code you posted already contains examples of operator overloading, just follow those examples to create the new operators.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If you've seen the sci-fi movie Independence Day then you would understand why it cost so much money. It's expensive keeping Area 51.

$634M is just a drop in the bucket compared to what it's going to cost for Obamacare.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Doesn't it bother you that the officially sanctioned Republican candidate for governor has taken the position that you should be jailed for having oral sex, even if it is with your spouse?

No -- why? becuse I know he's just crazy as a bedbug and no one in his/her right mind will take him seriously. I don't let loonies bother me -- I just ignore them.

Ban on same sex marriages has been around for thousands of years. There are still many countries where it is illegal. No doubt that Indiana will eventully abandon that law. I was against it too until someone asked me how same sex marriage will affect my own marriage -- I couldn't think of any good reason other than "it's always been that way".

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Combined with tracking cars, the government can now have a pretty accurate picture (within walking distance from the nearest bus stop) where most everyone in the country is, in near real time.
And that doesn't worry you?

No -- only criminals have something to fear. I could care less if government tracks my whereabouts -- they would quickly find my life very boring.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

license plates are publically available -- anyone anywhere can track them. You have no right to privacy when in your car on public roads. If it's visible from outside the car then there is no privacy violation. Big Brother is not going to watch you unless you give him a reason to watch. It doesn't bother me in the least that the government tracks the movements of criminals/terrorists, in fact I would help the government do that if I could.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Than I guess you won't mind if I post a link to www.fuckfrance.com or the brainfuck programming language.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

This article from SodaHead made me mad as hell. Delta airlines should be ashamed of itself for the outrageous act against returning service members.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

@Dave: I didn't realize I had written a malformed sentence. Thanks for pointing that out. The word "nor" should have been "and". Ok I will accept the bad rep for that confusing sentence.

Both gets() and fgets() extract the '\n' from the keyboard buffer.

>>It is well known that fgets() leaves the newline in the stream.
It MAY leave it in, only if there is not enough room in the input buffer for it. But I KNOW you know that too :) But assuming the input buffer is large enough fgets() will remove the newline from the stream, which scanf("%s") and scanf("%d") will not. I suppose that was the point of my previous post.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>On realloc failure a new pointer is made pointing to NULL and the original block is lost and not freed.

If realloc() fails, then the program has much larger problems than a little memory leak, such as the entire program will, or is about, to crash due to lack of memory. And that could even extend to the entire operating system. Consequently, on modern computers with several gig ram I don't even worry about realloc() failing. If you are working with embedded systems that have very limited ram then that would be different. But not very many people are doing that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Way too complicated and with unnecessary code. Here is a greatly simplified way to do it. Using strtok() you could parse a string that has more than one kind of deliminator, such as '\n' and '\t' and ',' and the space, these are typical of CVS files (exported XLS files).

int parseStringbyLines(char *buffer, char ***string) 
{
    char** lines = NULL;
    char* ptr;
    char *temp;
    int size = 0;
    if( buffer == NULL || *buffer == '\0' || string == NULL || *string != NULL)
        return 0;
    temp = strdup(buffer); // duplicate the string
    ptr = strtok(temp, "\n");
    while(ptr)
    {
        lines = realloc(lines, (size += 1) * sizeof(char*));
        lines[size-1] = strdup(ptr);
        ptr = strtok(NULL, "\n");
    }
    free(temp);
    *string = lines;
    return size;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Can you put a time limit on voting, such as when a time expires then no more votes are possible? Six months seems a reasonable limit. I have seen some of my very very old posts (2-4 years) with votes. The same for applying rep should also apply.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Speaking of the Big Bang -- where did that huge gas ball come from anyway? What was there before the BB ? Don't you think we humans are just too ignorant to understand all that yet? Even if God did explain it exactly to us it would have the same affect as us trying to explain TV to Julius Ceasar or even worse to Moses.

Rashakil Fol commented: The big bang wasn't a gas ball. -2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Side question: Do you have to pay for mods, or are there some for free?

We are all unpaid volunteers, which is one reason to have quite a few mods located all around the world for 24/7 coverage.

John A commented: Not those kind of mods. -3
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Hi, don't ever send emails like the ones to me! ok.
<deleted>

Aia commented: Lame and withouth class. Even if the poster was irritating. -2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

just a few templates you have probably already used
vector
string
fstream
ifstream
ofstream

Rashakil Fol commented: What the fuck are you talking about? -1
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I have 64-bit Vista Home Premium with IE7 (also 64-bit). Unable to download and install flash player with that version of IE. I also have 32-bit Firefox and flash player works normally as expected with it. When I view Program and Features, I see Adobe Flash Player ActiveX and Adobe Flash Player Plugin.

Anyone know if its possible to install a version of Flash that will work with 64-bit version of the browsers?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The main difference between a macro and a procedure is that in the macro the passage of parameters is possible and in the
procedure it is not

That isn't true of any major computer language that I know of. Procedures in every language can accept parameters. In assembly language you can store the parameters in registers, push them one the stack or some combination of the two before calling the procedure.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You can use my site if you wish. It is password protected to avoid risk of being found.

<snip>

Cheers

This is one time I wish I knew how to hijack your web site to that I could trash it. Anyone stupid enough to post the user name and password on any public site diserves the very worst that can happen to his site. I swear that you must have the IQ if a grape.

>>It is password protected to avoid risk of being found
Not any more you numbskull.

Sturm commented: I believe threatening to illegally hack his server is against the Daniweb rules +0
joshSCH commented: It's a proxy server! -2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

No problem -- just call atof()

float n = atof(tmatrix[i]);

Not a perfrect solution, but works ok for most purposes.

iamthwee commented: Nope -3