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

You need to read your notes a bit more. The way you are passing array to function is not correct. You must do something like this;

int myArray[BUFSIZ] = { 0 };
myFunction(myArray, BUFSIZ);  // function call

void myFunction(int array[], int size)
{
   // do your processing here
}

Also your logic of finding the minimum and maximum is incorrect. Assume that you don't find any grade which is less than -100 and any grade which is greater than 100, what would your algorithm print out?

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

I only noticed that you have just started out with programming. Read good tutorials, practice a lot and come back when you have got specific queries. :-)

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

> Does everyone get that message when viewing closed threads ?
Yes, I thought it was weird, but WTH. ;-)

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

No, its just that she doesn't like that girls be treated any different than boys and the same goes for demanding respect. I don't know how to put it but I an sure Narue would drill it in your head in a more efficient manner. ;-)

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

> She beat me twice, and she claims to have beaten Rashakil 4 times.
Eeeks!! I had a lot of expectations with Rashakil, but I guess Narue made everyone lick dirt. And BTW, don't say "you got beaten by a girl", turns out, Narue doesn't like all this 'girl' thing. ;-)

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

> It's not like it really matters it was just something to do while I was bored.
I guess this explains it all. ;-)

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

Something like this?

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

> <a id="home" href="mymain.htm">Home</a><br> I guess the browser is looking for 'mymain.htm' but you have a file named 'mymain.html'. Even though both 'htm' and 'html' are acceptable formats, you can't use them interchangeably.

Do something like: <a id="home" href="mymain.html">Home</a><br>

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

I am using Firefox so I think thats not the problem.

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

No, you can only call stored procedures. Like I previously mentioned, you don't explicitly call triggers, neither using Java nor using SQL, thats exactly the whole point behind triggers, they are like callback statements, which are executed automatically when a event occurs.

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

Why pre-declare variables when C++ doesn't mandate it and anyways you are not using 'i' outside the loop?

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

There is surely some performance issue with the site, seems to take up all the bandwidth and makes the browser freeze for a second.

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

Maybe this would help.

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

Every C program is a valid C++ program.(except for the deprecated header declarations). C++ is the functional superset of C. It seems that you need to read a few good C++ tutorials and books to get your concepts of 'structs' right.

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

It means there is no such value or variable which you are trying to access. Posting some code might shed light on the situation.

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

Maybe posting some code of the function would help us in helping you out.

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

Yes, I am sorry, I got the facts wrong there. HttpServlet indeed is abstract class but the functions still have their own generic implementation. A class being abstract doesn't mean we _must_ override the functions. Such a requirement is imposed only if the functions themselves are abstract which I don't think they are. Read this.

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

Single Precision numbers (4 bytes storage) have 23 bits for mantissa i.e. approximately 7 decimal digits. Eg. 1.123456

Double precision numbers (8 bytes storage) have 52 bits for mantissa i.e. approximately 16 decimal digits as their precision.

Floating point numbers have two properties, accuracy and precision.

Accuracy is layman's terms is the biggest number that can be represented and depends on the number of exponent bits (8 bits in single precision and 11 in double precision).

Precision is the number of digits that can occur after the decimal point. So even if your floating point numbers can represent really big numbers, they have limited precision.

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

No, Servlet is an abstract class, HttpServlet is not. It already has the generic implementations of the methods which the user is free to override.

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

Triggers have got nothing to do with JDBC, they are database specific. A trigger is executed when a condition predetermined in the trigger is encountered. Triggers are written on tables to act before or after the action specified.

Triggers remain transparent to the Java programmer AFAIK, though you can call stored procedures which on changing the state of the database can trigger the execution of tirggers.

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

I hope you do realize that a byte consists of 8 bits. If all your program does is looks at the bit pattern and prints out dashes and spaces, you would either have to change the function signature to accept integers so that you can work with 32 bit patters or come up with a weird hack to get around this limitation.

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

As a rule of thumb, if you need to modify a variable in another function, you need to pass an address of it to the called function.

In this case you wanted to modify the char pointer and hence need to pass the pointer to the char pointer i.e. the address of the char pointer. References in C++ are just glorified pointers which act as the syntactic sugar.

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

> I am making a game, the error is that in the "d" loop (for...) the
> value "holeBalls" stays always the same.
It will remain the same because you never update it in the loop and always use it to perform the bound check.

Maybe something like this:

for (d=holeNum;d<=holeBalls;d++)
{
    var elem = document.getElementById('hole'+d);
    elem.value++;
    holeBalls = elem.value;
}

If not this, then maybe you should give us some live working version of the game so that we can understand your predicament.

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

This a a cross browser compatible script for finding out the mouse coordinates using Javascript. Referred from this site.

function doSomething(e) {
        var posx = 0;
        var posy = 0;
        if (!e) var e = window.event;
        if (e.pageX || e.pageY)     {
            posx = e.pageX;
            posy = e.pageY;
        }
        else if (e.clientX || e.clientY)     {
            posx = e.clientX + document.body.scrollLeft
                + document.documentElement.scrollLeft;
            posy = e.clientY + document.body.scrollTop
                + document.documentElement.scrollTop;
        }
        alert(posx + ", " + posy);
    }
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Oh, I forgot to add 'IMO' for people who like to make pointless issues out of something for no reason. Oh wait, maybe a disclaimer should put them off for some time.

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

If 'n' people take drugs, there are 'n' people who contemplate on taking them, on the thin line between 'should I' and 'should I not'. Personal choice of not to take drugs comes third.

Everyone has worries, pain and sufferings in his life. Some choose to and some choose not to use drugs. Legalization would only make it easier for me to take a 'drugged decision'.

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

> You and I don't take drugs not because the goverment prohibit it,
> nor because is expensive or hard to find.
But considering the fact that once these things get legalized, it won't be long before everyone starts taking it. Remember, the people around you influence you; evil is known to stick fast and hard.

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

Plus developing a 'search engine' has got nothing to do with Servlets, PHP or any other server side technology as a matter of fact. Its an area of research requiring high expertise.

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

You can include any file you want using server side includes to avoid duplication of code. For eg. each page of a website has a common header and footer section. Instead of repeating the code, the header and footer sections are stored in separate files and included in every page using your favourite server side language.

In J2EE, the common code is put in a .inc file if it contains static content and in .jsp if it contains dynamic content. Then by using the line:

//somepage.jsp

<html>
<body>
  <%@include file="header.inc" %>
  <div>Hello</div>
</body>
</html>

I am pretty sure there must be a similar construct in the server side language you are employing to get the job done.

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

Something like this?

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

Maybe asking it at the QT forum would be more appropriate.

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

According to the standards, <td> doesn't have a 'name' attribute and neither does <tr> or <table> as a matter of fact. IE supports it, Opera doesn't, Firefox doesn't. IE is infamous of supporting non standard things.

The only thing you can do is to replace each occurrence of 'name' with 'id' attribute since each element supports the 'id' attribute.

See this example to know more:

<html>
<head>
    <script type="text/javascript">
    function doName(name)
    {    
        alert("ID: " + name.id);
        alert("Name: " + name.name);
    }
</script>
</head>
<body>
    <table id="TABLE" name="TABLE" onclick="doName(this);" border="1">
    <tr id="TR" name="TR" onclick="doName(this);">
        <td id="TD" name="TD" onclick="doName(this);">CLICK ON ME</td>
    </tr>
    </table>
</body>
</html>
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> There's a reason you can't smoke in schools and hospitals. Can you guess why?
Comparing the effects of smoke on people who are fighting against death and normal people doesn't make sense. Second hand smoking is bad, but so is the smoke from vehicles, the minute spores floating, the dirt, the pollen grains etc.

And BTW, its not only smoking but also any other thing which would make the patients uncomfortable is not allowed in hospitals, so picking out smoking from all the things which are not allowed would be a moot point.

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

Bobs, I would still recommend you to read some good tutorials on C or get some good C books from a store near you to do some reading. Without putting effort or learning on your part, explaining what is wrong and what is right would be too difficult for us.

Please start reading this.

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

Praneeth you should use code tags for posting your code. This is the third time I have edited your post to add code tags. Take some time to read the forum announcements and the stickies at the top of the forum before posting again.

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

> Well, it's summer so no school for most people
Oh yeah, and here it is raining so heavily, I feel as though this is my last post. ;-)

iamthwee commented: We can only hope... -2
joshSCH commented: Happy Independence Day! :p +15
arjunsasidharan commented: iamthewee is such a pain in the butt +3
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> The first step told me to make a wordpad document and name it:
Wordpad is not a text editor, its a word processor. It inserts its own headers in the saved file. You need to use notepad. In short you need something which saves the files in plain text format and not add its own headers.

Type the code from the book in a notepad, save it at a place you want, go to that folder, run the javac command properly (I assume that you must have set the class path).

After having completed the following steps successfully, you must get a class file in the same folder (provided you have not kept a package declaration). Use the java command to run the program.

If you want names of few good text editors, just let us know.

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

Since the frequency is initialized with 0 and can hold a maximum value of 5, we can also write:

if(frequency != 5) 
    cout << "\nThere are" << frequency << " number of your prediction that matches";
else 
    cout << "Congratulation!! All of Your Prediction Matches ";
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Heh, once a Rahsakil, always a Rashakil. :-)

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

> I am very confused. How in the world are you going to implement a stack using function pointers?
I guess he means by using dynamic memory allocation, using a node structure which holds the data as well as the pointer to the next node.

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

I guess he is talking about someone else's reputation panel.

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

I have already answered your question in post #6. If you still can't figure that out, try reading some good JSP and Servlet tutorials till you have a good grasp of the subject matter.

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

> Actually, there are certain places in JavaScript where semicolons are required
Here you are talking about the syntax (for example the for loop) which mandates semicolon be placed. In Javascript as long as statements are separated by whitespaces (newlines) it shouldn't be a problem, though older / non-complaint browsers balk at it.

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

Javascript standards don't mandate semicolons but always make sure you put them because there are many browsers out there who would like to suck your project in.

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

AFAIK, No.

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

The difference is this: the government is elected by the people, and could easily become corrupted if we allow them to restrict our freedoms. ON the other hand, the CIA operations are virtually unknown, and thus people do not know what the CIA really is doing (unless they release documents stating what they have done.)

So you are under the assumption that there is someone who is not corrupt? Money makes the world go round, influence can get you anything, sometimes its cheap, sometimes expensive, you just have to name the right price.

People sell their souls for money, selling their responsibility towards their country won't be that tough...

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

Sheesh, kids nowadays. ;-)

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

> Maybe the original poster (sk8?) finds smoking on the same "rudeness" level as masturbating
More likely a sarcasm gone bad, making the entire post lose its value/intent/purpose...

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

> Why?
Do you even realize why I had made that statement in my previous post? If no, then you better read the previous posts before asking such obvious questions.