~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> You could also use Vj's second example.
It is not C++. He was giving an example of how it would be in C++0X.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Mercy? Here? You sure do have some funny notions.
Yes, I guess I should have known better than ask for mercy _here_. ;-)

> I know it's not Yugioh, but where does your avatar pic come from?
Get Backers.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess I got confused between array initializers and memset. Hmm..but I do vaguely recollect someone mentioning something similar a long time back on the newsgroups.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

std::vector<char> myVector(10, 'a'); Creates a character vector filled with 10 copies of the character 'a'.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't you people think these two look _way_ too different.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

ChelseaBoy, consider using code tags to present your code and snippets. It makes them look neat and clean. Read this.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Don't you think his avatar looks like a character from that show?
Come on, show some mercy. How can you compare something cool like my avatar with those childish shows?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Can you help me with this subject?
How much programming experience you have to dive into something that complicated?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

That was a typo. It should actually be target = "_blank" . We normally use that when we want the link to open up in a new tab / window.

Try out:

<a href="http://www.google.com">Google</a>

<!-- and now try this -->

<a href="http://www.google.com" target="_blank">Google</a>

Try it out and see the difference.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But int arr[BUFSIZ] = {0}; internally uses memset to actually perform its task.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Can you elaborate on that?
sure. In achaea I can:

eat peoples heads
push people out of trees
kidnap people
kill people in cities
steal from shops
steal from players
cause total chaos
Become the ruler of a city, continent, etc.

Its completely player run! No stupid NPCs! (there are NPCs but they are usaully for n00bs)

Of course Game Development companies could make games like that but they would have a hard time selling it.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I will assume you are referring to Design patterns.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Just to let you know, there are two more methods of doing the same thing: (but still not recommended)

int arr[20];

//first, 
for(int i = 0; i < 20; ++i)
   arr[i] = 0;

//second, better than first.
memset(arr, 0, 20);
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Asking the question here would be more productive.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't spawn multiple threads with the same question. Your previous one has already been answered.

Thread closed.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> I'm not allowed to play multiple MMOs?
Drats, how come you people manage to find that kind of time?

> That's really how I look when I'm coding.
And this is how I look when I am dead serious. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Attached is my main, isn't she adorable?
So this is how you look eh?

Personally haven't played a lot of eye candy MMO's. Ragnarok and WOW. They consume a _lot_ of time.

So I guess its good bye Everquest for you. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> but applets are not supported any more by windows,
Says who?

You just need the Java runtime environment (JRE) to run applets on you machine.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> <a href="www.abc.com" style="cursor:hand">abc</a>
That would be IE only. It won't work on Mozilla based browsers.

To make you code cross browser compatible, you need to do: <a href="_blank" style="cursor: hand; cursor: pointer;">Linky</a>

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Change your avatar here. As for change of name, contact the admins.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Seems to me, that this is more a a gossip forum, than a help forum.
You are the only one with this kind of opinion I guess.

> I came here for help and advice.
If you still haven't been able to find those, then you are not cut for programming.

> It was a waste of my time.
You were in need of help. It was actually a waste of our time. This kind of attitude would get you nowhere.

> I would like to thank the ones that were actually trying to suggest ideas.
This kind of attitude would get you everywhere. This is the way it has to be when you ask for help.

You have to bear in mind that no one here is obliged to answer any questions. Its the desire to help beginners which drives us, replies like yours are a real turn off.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> I use IE
You live in UK. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't take them for suckers would be my advice - they have their own ways. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> I thought it was legal to download torrents, anyway
I am surprised to see this coming from you, whatever gave you this idea, eh?

> What would it matter if they did track your ip?
Many bad things.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Now you have got me curious with that little trade secret of yours. Well, nothing is hidden from those freaks at the newsgroups. Tada. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But the crackers disagree with you. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
<input type="text" name="txt" id="txt" value="Name" 
onblur="if(this.value.length == 0) this.value='Name';" onclick="if(this.value == 'Name') this.value='';" />
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But its not 'only client side' if you know what I mean. You must be pulling those things from somewhere. I have got into the bad habit of calling everything which involves Javascript and pulls data over the connection as AJAX. :)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> thaught
Surely, this would have been underlined with red, don't you think so?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No, because constant expressions are evaluated, and you end up with the expression 'a' || 'A' getting evaluated. Any conditional expression within the case construct would either evaluate to 0 or 1.

The way the OP had done it is the correct way. Either that, or convert the character accepted to lowercase and keep all lowercase characters in your case constructs.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yay even I have loads. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

DirectX is a graphics API. Read more about it here. It can be used for graphical simulations, creating games and anything related to hardcore graphics.

Also as far as C# with directx is concerned, see this, this, this and this.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If this is just a simple and plain educational java project, I would suggest you not to think a lot about it. After all, the aim here is to learn and not to make a professional grade software. I assume you wouldn't have that kind of money to throw around.

Create a dummy 'stock broker' database which would be used pull out data. I am pretty sure the people who are to see this project don't expect you to connect to a real 'Stock broker' when you explain to them the constraints faced.

Other than that, its your call in the end.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Does looking at page src constitute cheating?
If it gives you an unfair advantage over others, yes.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

First The Pirate Bay and now TorrentSpy. Looks like these people have started getting serious.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe these links would give you an idea.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

It means James loves going off-topic way too much. ;-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

That would be WaltP. :-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Thanks people, I'm learning here.
Heh, welcome.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you are looking for a particular piece of information in that XML file, maybe this would interest you. Also take a look at this.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> But the program stops in the first null line. null != empty_line A null returned signifies that a end of file has been reached and has got nothing to do with empty lines. Inside your loop, just check to see if str.trim().length() != 0 and write that line to the target file.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You are creating an array of strings in which each 'cell' would contain a string and initializing those strings to contain 20 characters. (approx). You either need to do

string ar[21] = " ";
//OR
string ar = "                    ";

And btw, you loop is off by one. You need to loop from 0 to 20 and not 0 to 19.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Because constant-expressions are evaluated in the case construct. True evaluates to 1, false evaluates to 0.

case (i + 1): //flag an error, requires constant expression
    cout << "In error";
    break;
case (3 + 3):
    cout << "In case 6";
    break;
case (3 == 0):
   cout << "In case 0";
   break;
case (3 == 3):
   cout << "in case 1";
   break;
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You don't need to import java.lang. Its implicit.

As for your problem, use the function to find the index of both the characters '&' and ';'. If both are not equal to -1 means that both the characters are present and the command is invalid. If any one of them is present, handle it accordingly using the if blocks.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> It's his child too.
Not unless the child has come out. Till then, its the mother which owns the child.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Yes, Praise God. That's incredible.
Yes, praise the wheelchair.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Me and Stein
Nah, I confuse you with Happygeek. You look a lot like him. :-P

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Go girl, go !! Don't forget to show them a print out of your Daniweb certificate...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

#1: Leave this Earth and make some other planet your home. Without this, no matter what one does, there is no hope to 'Save the Planet' as such.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I pity the werewolves...

ndeniche commented: what am i gonna do now?!? +1