WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Notice how carefully his feet seem to be going down most of the time. He's trying to avoid stepping off of his 'zone', whatever it is, would be my guess.

No, he's trying not to break the water tension, otherwise he'd sink! If he wasn't careful, he'd break the surface tension and go under. Basic 3rd grade science. :icon_rolleyes:

Slack line?

Probably not. It would stick out of the water. Have to be a tight rope -- made of glass so you can't see it. :icon_razz:

Although some of the things he does are impressive i doubt that there is anything supernatural about it.

Ya think?

Come on, people, haven't any of you ever seen a magician before? Doug Henning? Blackstone? David Copperfield? Ever hear of Houdini? They're illusions! Sheesh!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Recently the C.I.A. released a 700 some page report detailing illegal activities from the early fifties to the mid seventies. They claimed to have illegally wiretapped people, attempting to poison Fidel Castro's food, tested LSD on people without their knowledge, among other things. What does everyone think about it?

This is news? I suppose it is because they are admitting it, but their actions have been common knowledge for decades...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Please describe the individual steps you use to accomplish this task. Write them down, in order. That's your pseudo code.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hi All,

I am trying to implement the concept of function pointer in C++.
While compiling i got some errors which I couldnt figure out the reason .
So,Please let me know what changes should be done for resolving that error.

Which errors? Without posting them, we have no idea what the errors are.

I am trying to execute one particular command function when the commandis pressed.Likewise, I have 100 commands and whenever the commands are pressed the corresponding function + arguements should be passed and the function pointer should execute the command.

Without a clean compile, this info is moot.

Below are my code,

Below is my code. Code is singular in programming.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That would be.. zero years. I'm just saying that others have different views on what professional is.

Such as...
Please give names, length of time as a professional, and what they claim is professional that's counter to what we've been trying to tell you. Back up your statement!

I'm not arguing b/c I think IM lingo should be used on Daniweb. I'm arguing to.. uh.. well damn I guess I forgot. lol.. I'm just backing-up IM lingo b/c it is useful sometimes, and it isn't inherently bad.

Never said it wasn't useful. Never said it was inherently bad. Only said there are places it should not be used.

In your opinion. However, not all people view it that way..

Back up your statement. Who views it differently. Name just one person that is a leader in linguistics.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

actually, elements of rhyming slang are mainstream for the <20 age range

Sounds like professionals to me...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I will be traveling to Chicago tomorrow morning for the FBLA (Future Business Leaders of America) conference to take my Computer Applications test.

Kool! Congrats!

While you're there, ask them if leet and IM lingo are professional communication styles.... :icon_wink:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Anyone ever heard of this crazy "magician?"

Of course.

Yeah. He's so fake I think.

Or he's been practicing witchcraft.

Neither. He's a magician.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

And all because of useless posts like that one....

Actually.. no. This thread is full of good posts.

**snort** Sorry, milk almost came out my nose! :icon_rolleyes:

No, it's look down upon because it's not professional. Daniweb is a professional site, not a My Space clone.

Once again, it is not professional to you, because you are not used to IM lingo.

But this is not IM. There is a place for that stuff, and a 'professional' setting is not it. The entire world is not IM.

I never said it was. This 'professional' setting is based on your biased views of what professional is. However, 'professional' to you may not mean the same as what it is to others.

Let's see. I've been a professional programmer/software engineer for 30 some years. And you? How long have you been in the industry? Do you actually want to debate who has a better grasp of professional language/etiquette?

And, it's MySpace btw.

Whatever :icon_rolleyes:

We obviously must do whatever the higher-ups tell us. If the admins/moderators/employers dislike "IM lingo" then obviously we should not use it. I am not complaining as it really makes no difference to me.

Gee, then why are you arguing about this since you've read the rules before, and have had the rule specifically pointed to more than once?:icon_wink:


he does have a point.

if we all spoke proper english we would be speaking like:

"ye sire i hath attendeth to thine peasants, how is thou foul wench?"

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Movies don't really inspire me either.. except Old School, Slackers, Van Wilder, and South Park, of course.

Oh my ghod! Fear the world the next generation gives us!!!! :icon_twisted:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Wow.. this thread has the most replies in the entire Geek's Lounge! :)

And all because of useless posts like that one....

That's what happens when you get into serious religious debate lol.

Didn't the serious debate end months ago? And the past few hundred posts have nothing to do with the subject? :icon_wink:

It's looked down upon, because you older people are not used to it. WE do not see it as you do. It has been the norm for us, but not for you.

No, it's look down upon because it's not professional. Daniweb is a professional site, not a My Space clone.

If it was the other way around, and the older people had grown up with IM, and we had not.. then it would not be frowned upon. This is just the differences in the generation gap.. What yall grew up with isn't exactly what we grew up with..

But this is not IM. There is a place for that stuff, and a 'professional' setting is not it. The entire world is not IM.

My point being My Space and IM have their lingo and stuff. But that does not mean the rest of the web -- such as this forum -- must change to the new lingo. There is a communications protocol everywhere you go, and this forum desires a higher level than IM.

And what happens when you get into the real world and have to communicate with the old farts …

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

What this does highlight, of course, is the importance of supplying as much relevant detail as possible when asking a support question if we are going to stand any chance of answering it quickly and correctly.

And also how responses by someone that can't help the poster just makes the thread long and useless. If you're not an admin, you obviously can't help the situation with or without the user name, so why bother asking. Only admins need to respond -- IMAO...

-- ducking now, so the volley goes over my head --

WolfPack commented: I agree. If you can't use the information to help, don't ask. +10
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

First thing I'd do is calculate the random value first. This way you have the option of asking "Do you want to try another number?"

Next thing, rather than asking for each individual number (since you are only using 0-9) have the user enter a 5 digit value.

I'll let you work out the syntax for your program, but an array is just a variable that can contain multiple values. For example: int ary[5] defines the variable ary to contain 5 values, ary[0] thru ary[4]. So in your code,
ary[0] would be a
ary[1] would be b
ary[2] would be c
ary[3] would be d
ary[4] would be e

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I don't like the explanation you've received for "undefined behavior". What this means is the C Standard has not defined the operation, and what it is supposed to do. Therefore, any given compiler can do what they want. For fflush(stdin) , the compiler designers can write the compiler to:
1) do nothing because the command is undefined
2) do the logical thing the command implies
3) do something they think it should do, which might be logical to them but not to us
4) do anything else they want the command to do, completely unrelated to logic.

Aia commented: Thank you for taking the time to explain. +5
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Pass the array into the function and load it, rather than trying to pass back a local array from the function.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Yep!!! Remember it well. I thought it was great!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

on Yahoo news the other day i saw that a new dinosaur was discovered.

Dinosaurs are extinct. There can't be new ones. Only old, dead ones... :icon_razz:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

A commedian I saw actually had the page of a phone book he used in a routine. It had someone named Elmer Fuddpucker on it. There really is one!!!!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

@WaltP and jbennet:
No, you're both wrong. 664 and 668 will be the neighbors; 665 and 667 will be across the street.

I have neighbors across the street :icon_razz:

1856328 is just as lucky as 7........

No it's not. 1856329 is just as lucky as 7. 1856328 is only a 6.

vi vi vi: the editor of the beast

That I like!!!! It is a hell of an editor! I'm sure it's designed by Satan.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

WaltP - then do something about it.

Like issue an infraction for everything you dislike? Sorry. You walked away from being moderator. Maybe you should have stayed on the mod team to deal with these young-un's in your way. It doesn't happen to be mine.

You're a moderator, issue me an infraction. I'd welcome any sign that this site hasn't spun out of control, even if the action is directed against me. Name names, take action, do something about the situation. The moderators should stop sitting on their hands.

I refuse to be a tgeer with a different name. I'm also not an SOS nor a Dragon, either. They'll do things their way. I'll point out hypocrisy, which is IMO not an infractible offence. It's just sad.

Sorry, no infractions from me. You may point out our failings all you want. Just keep it clean. And no trolling. :icon_wink:

iamthwee commented: Too right! +10
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

You're close. try this formatted code:

value = -1;  initialize the return value to NOT FOUND
  for (int i=0; i<array.size;i++)
  {
      if(valuetoSearch >= array[i])
      {
          value= i;    // if you want to return the index
          break;     
      }
  }
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Up until this post and for the following 7 post (this one included) this was a discussion about the merits of a gaming board. Since the above post, it's been one ego telling us all what's wrong with this website as a whole, and all rebuttals have nothing to do with a gaming board. Thank you for pointing out the problems here by creating the problem yourself.

Hypocrisy is alive and well here. :icon_twisted:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hey people -- it's a JOKE!!!! :icon_rolleyes:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

The average temp over the past 100 years has increased a whopping 1 degree F. Scary!!! :S So if this uncontrolled rise in temp is not checked, we'll be in danger in about 3564AD.

'Global warming' is a naturally occurring phenomenon that is cyclical.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

here
here
here
here
Grand Rapids, Michigan must be so proud!


But what's 665? The Neighbor of the Beast!!! :)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Since there are over 400 errors that can be returned, could you please be less vague and tell us what the error is, and where?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

You can make your own....

Go to http://www.hetemeel.com/index.php and choose a dynamic image. The have many base pictures to choose from.

My favorite is this one...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

#7: Stay on the sidewalk. Don't walk on the grass. It wears down the Earth.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I've never heard anyone say, "Mind your P's and Q's." What do they mean when they say that?

9. In English pubs, ale is ordered by pints and quarts. So in old England, when customers got unruly, the bartender would yell at them to mind their own pints and quarts and settle down. It's where we get the phrase "mind your P's and Q's."

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Me and Stein?!?! Curious....

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

#1: Never bump your messages!!!! People will respond when they see it, and 5 hours is not a long time.

#2: If all Basics are so similar, there is no detail needed. And since you already know they are similar, why are you asking? And where do you get your info that they are similar? They aren't that close in my experience....

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

yea i know what u mean. like i sad before i was in a hurry and sorry for the BAD grammer. :)

You obviously don't, not really. u is not you.

but hey we all have those days right were u have to run from customer to customer and yust want
to post that post between lines of your agenda.

But every post is like that. It show you are either always in a hurry, or you just don't care. So slow down, relax, and show us your better side, the side that cares. And stop playing with the web at work. It'll get you in trouble! :icon_wink:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Why don't you just read the tutorials?

Probably because Narue, with a little prodding, gave a more compete answer than most tutorials. And you never know which tutorials only give you part of the information... :icon_wink:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Here is the finished product, this compiled and worked. Is there any improvements to be made any suggestions are fine with me.

Since you asked, read
this,
this
and this

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

By the way, I'm still not sure if I followed the correct guidelines for piosting code. Please advise me if I have done something wrong. Thanks in advance.

Nope.
Problem 1: You didn't use CODE tags as the background of the input box advises. Also here
Problem 2: Formatting code

i'm sure narue will correct me if i'm wrong...

You're wrong :icon_razz:
If you aren't sure, it only takes a minute or two to test ideas like this one before posting and prevents Narue from having fun at your expense :icon_twisted:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Low bridge, everybody down!!!

christina>you commented: Cute! :) +16
EnderX commented: Which one's the keystone? +2
Aia commented: This is not for the post, this is for your avatar, nice +4
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Yes, Australia has states.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

010010100110010101100101011110100010000100100001

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

As for the smilies situation, the reason it is in the list twice is that someone might want to use it for either poking their tongue out or winking, which are different things. The same graphical representation fulfills both though, if you see what I mean.

So the meaning of a post gets lost in the ambiguity between wink or tongue. Not a good decision IMAO. ;)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

myeyes hurt from all the reading that i have dne lol

And my brain hurts trying to figure out what you say with all the contractions and misspellings in your posts. :icon_twisted:

Oh well, we all don't speak English natively. But please stop using contractions like "O I C" so the non-English speakers can try to follow you better. And proofread before you submit. There's no reason to post a word like "it5's"

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

> How many languages do you know fluently, Sanjay?
Hindi (our national language), English, Marathi and my native language. So four in all. :)

Wow. Impressive :)
I thought it was difficult learning a second language.. :-/

Bah, that's nothing. I know
C, Basic, ForTran, Cobol, 2 different Assemblers, some Snobol, Pascal, Algol, and a couple others...

So there! :icon_razz:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

But I think it turns to be a multithreads question.

Threads are not for beginners. And a Fibonacci series is easy to calculate with a simple loop.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Liar by Argent is fantastic, but Three Dog Night's version is barely listenable after hearing the original.

And in reverse, Blinded By the Light by Manfred Mann if great, but the original by Bruce Springsteen sucks!!! And Rolling Stones' Sympathy for the Devil is dreadful compared to Jonathan Round's cover.

wow.. revive a 16 day-old thread for that post? ;)

Why not? Are you now the "Old Post Constable"? 16 dats is not long at all! :icon_rolleyes:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

This codeblock comes from Mr Weiss's book "Data Sturucture and Algorithm Analysis in C++"(Third Edition). I have some questions about it.

First of all, please format your code so it can be followed. I'll format it as I go...

/**
*  This is a member function from the BinarySearchTree class.
*  And It try to find whether there's a element equal to x in
*  the binary search tree.
*/
bool BinarySearchTree::contains(const int & x, BinaryNode *t)
{
    if (t == NULL)
    {
        return false;

    }
/**
* Weiss put the following two sentences to the end of this 
* codeblock with an "else".But I think put it here can make 
* the code more readable.Is it an error?
*/
    if (x == t->element)
    {
        return true; 
    }
//// The way the function is written, it doesn't seem to matter 
//// where this IF goes since each recursive call is part of a 
//// RETURN statement.

/**
*When I implemented these, I haven't added 
*"return" before recursive functions.
*Why must add "return" in the following sentences?
//// Because when the function finally gets to the end of 
//// the search, the value is passed back via the RETURN 
//// statements.  So the function returns the value, and 
//// upon returning returns the value again.  It just keeps 
//// passing  the value back to the previous recursion

*How many times will the "return" really
*return when the promgram run?
//// Exactly the same number of time the function …
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

And format your code so we can read and understand it. Be sure to use code tags, too.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

naw, yall missed the profanity post that he directed at narue.. I quoted it, and responded.. but it was deleted by a mod..

Well,
1) if Narue hadn't accused him of lying (which most people would take offense at)
2) then accuse him of "selective reading", implying stupidity
3) and everyone telling him he should be able to find the course description when it's possible it may not be on the website he was looking at.

Although the responses may have been directed toward him for a reason, IMAO most were unnecessarily harsh and not conducive to having a member return. With the attitude thrown at him, it's no wonder he objected.

It's been nice knowing you, Kenya19. See you elsewhere.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
if( fgets( buffer, sizeof buffer, stdin ) && !isspace( *buffer ) &&  sscanf( buffer, "%d%c", result, &ch ) == 2 && ( ch == '\n' || ch == '\0' ) )

That's an unreadable and grotesque line of code.... Yuck! It certainly can be make much more readable and less convoluted.

Could you try to clean it up? :icon_confused: Remember, these are new programmers and showing an example that is too complex for them to understand is simply useless to them...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

string key[SIZE_KEY]; states "define an array of SIZE_KEY strings". What it seems you want is a single string of SIZE_KEY characters, which would be char key[SIZE_KEY]; A string is dynamic and changes as you add characters to it, so there is no need to attempt to define the size.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

And don't try to shortcut the fgets()/sscanf() pair with scanf() . If someone suggests it, stare at him in horror and cast the daemon away! :icon_mrgreen: Here's why. Read the entire scanf() series...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I suppose you could, but up until now most (all?) fonts have not been created using AI. It's just not necessary.