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

Heh -- here is another adaptation of mine posted by Rashakil:

"Steal -- the government deserves competition."

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

lol i find it amusing that your signature is opposite of ~s.o.s~

Look closely, actually both the signatures convey the same thing -- no wonder both of us got INTP (or was it JNTP?)

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

peace

Hale or Hearty

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

Hard Rock, Grindcore, Goth.

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

Dude, not to be picky, but lately you have been resurrecting dead threads. If you like a topic which was discussed way back, you can always create a new thread and start your own discussion.

Thread bumping without a reason calls for bad forum manners...

christina>you commented: asl;dj;lkoi3!!!!!! -1
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Letter

Death or Suffering

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

__ / Male / India

;-)

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

The criteria is more post counts.

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

Send the money to me instead; I actually need it.

That made me fall off the chair -- you never fail to amaze me with your quality humour. ;-)

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

main doesn't return void and avoid using non-standard functions like clrscr(). Also your program can be made more compact, efficient and simple if you make proper use of loops.

How about something simple like:

#include <stdio.h>
#include <stdlib.h>
#define ROWSIZE 3
#define COLSIZE 3

void add(int a[][COLSIZE], int b[][COLSIZE], int c[][COLSIZE]);
void display(int result[][COLSIZE]);

int main()
{


    int a[ROWSIZE][COLSIZE] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
    int b[ROWSIZE][COLSIZE] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
    int result[ROWSIZE][COLSIZE] = { 0 };

    add(a, b, result);
    display(result);

    return 0;
}

void add(int a[][COLSIZE], int b[][COLSIZE], int c[][COLSIZE])
{
    int i, j;
    for(i = 0; i < ROWSIZE; ++i)
    {
        for(j = 0; j < COLSIZE; ++j)
        {
            c[i][j] = a[i][j] + b[i][j];
        }
    }
}

void display(int result[][COLSIZE])
{
    int i, j;
    for(i = 0; i < ROWSIZE; ++i)
    {
        for(j = 0; j < COLSIZE; ++j)
        {
            printf("  %d   ", result[i][j]);
        }
        putchar('\n');
    }
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Watch, I'll get more -rep for this too

:D

I guess you would be more than happy to get the name of repper...

jbennet commented: + rep +11
joshSCH commented: Would you like to tell me who negatively repped me? lol.. +4
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

They are so simple they don't need an explanation. Just read about Flowcharts and Pseudocodes.

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

Umm..you don't need prayers for reaching the mark, just few helpful posts here and there... ;-)

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

I totally understand that, and I even felt the same way a bit. I'm just getting a little irked that simply expressing my opinion is taking down my rep, and I'd like to just ask people why they're marking me down. I know I've made some bad posts, but I don't want to participate in a discussion if I know people are just going to give negative rep for my views and my [sometimes direct, sometimes oblique] way of expressing them.

The same has been happening with me lately. BTW, just got a neg rep for my previous post. For this reason even I have controlled my posting in the Geek's Lounge. Its not because I care about rep, its just that I don't feel like posting. It would be really nice if someone could open a poll thread for this rep origin thing.

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

Yes I agree with Joey, allowing new posters to affect reputation wouldn't be such a good thing. The reputaition here is affected by your date of joining, your own rep, the rep of the person you are repping and so on...

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

Previously there was a strict policy followed by us C++ mods to close the bumped threads immediately but with the new rule set in, we can at the most split the post and create a new thread out of it. Its been a while since I closed a bumped thread. :-(

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

Heh, that request was once made by me, but was rejected saying that it would just make people go out for vengeance when they get a bad rep and would hamper community building.

And considering that after being a member for so long, when you suddenly start asking for this feature, its a clear indication that someone doesn't whole heartedly agree with you in the Geek's Lounge. :P

christina>you commented: \\ -1
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

More spammers aboard.... ;-)

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

Your trainer doesn't seem like a real professional to me. A professional would never make such a statement.

As far as speed is concerned, system nowadays come packed to the boot with resources -- a couple of hundred MB of RAM, atleast a 1Ghz CPU.

Performace -- yes. C/C++ beats Java but in what scenario? Considering my software would run on an average PC, the difference is insignificant. You would be surprised if I start naming companies who use Java as a programming language for their softaware development. The current business world runs on 2.5 major platforms -- Java / .NET / Python (the 1/2).

Each of the languages have a different place in the software development scene and I personally don't get started on language wars because I feel its a moot point. I respect all lanaguages and when time comes I would use the most appropriate tool to achieve the target put in front of me.

Oh and btw, I love C++. ;-)

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

I dont think this works please be more specific

You need to have the Boost API installed on your system -- only then you would be able to sun the mentioned example.

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

And what would that be.... ;-)

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

It would be a good idea to post the solution you got so that others stumbling on this thread would be benefitted.

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

No, I don't think so.

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

Mine was a simple eg. which worked only when the names are seperated by spaces and not tabs. BTW, it works for me. Modify the program according to your needs.

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

Maybe this would help you out.

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

You just use [tex]your_equation[/tex] tags around your equation. They work out to be fine. Of course for complicated stuff you might want to actually learn how to do things using tex.

[tex]237 - 230 = 7[/tex]

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

[tex]1 + 2 + 3 + 4 = 10[/tex]

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

know any good way of writing this into a simple form for a website, so it operates like an xcel formula. some sort of form generator?

You can always use HTML to create forms and Javascript for programming your logic. Its a matter of 100 lines of code (HTML + Script) depending on the complexity of the formula.

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

..and another l33t hax0r kid who thinks he can rule the world. Enjoy your ignorance. Oh and btw, avoid using explicit contents in your post, you might just get banned.

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

Keep another variable outside the loop lets say grandTotal and at the end of each loop do something like grandTotal += loopTotal . Now this variable will hold the sum of all the totals. Don't forget to initialize grandTotal to 0.

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

EJBs would require a full appserver (or 2, if you want 2 JVMs to talk) and would still involve RMI (albeit under the hood).

Local interfaces were introduced for the same reason -- to avoid RMI invocations for methods which reside on the same App server. Since App server runs as a process, the method invocation on objects which reside in the same process space is handled in a different way than the normal RMI ones. You just need the local JNDI name and you are good to go. Oh and btw, the same app server can support deployement of multiple EJB applications.

Interprocess communication between JVMs is no different whether the JVMs are running on the same machine or if one machine is in your bedroom and the other on Mars.

There is always network latency to be taken into consideration. If what you say is true, well known sites wouldn't have used the concept of local mirrors. Infact, network latency is one of the biggest issues which designing applicaitons. There is always a finite amout of time requried which is directly proportional to the distance between the two machines.

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

BufferedWriter is used for writing to the underlying file stream which you have opened. The files in consideration are created by the FileWriter object you use inside the constructor of the BufferedWriter class.

From docs:

Whether or not a file is available or may be created depends upon the underlying platform. Some platforms, in particular, allow a file to be opened for writing by only one FileWriter (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open.

Maybe posting the code in consideration would shed some light on the situation.

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

..or use EJB's to simplify your task. For each of the two applications, create an equivalent local Home and Remote interfaces and you are good to go. Incase you don't know EJB's, try out the alternative suggested to you by Masijade.

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

Considering you have no programming expericence, any advice we give you would go for waste as you would have having no clue as to how to realize the idea. Learn a programming language of your choice. Maybe then you would be in a position to actually achieve something.

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

Would entirely depend on the graphic library you are using...

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

> jwenting, I didn't see you turn on your irony mode. Does that mean all your posts before this were ironic?

Yeah even I am surprised, JSP uses the XHTML like syntax which mandates an opening tag for each closing tag ... ;-)

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

Yes it does, the entire page is loaded (including ads) then the browser hang for 10 seconds or so before I can scroll or click anything..

That would be because of the ads. Without adblocker even I experience the same behaviour. With adblockers, the loading is instantaneous even at 100 kbps connection.

> I have a 8 mbit connection, so that shouldn't be a problem.
It would take you some time to get used to Walt's jokes.. ;-)

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

Nah..but I do see change in the code fonts, esp browsing the C++ section. Strange, but I really like that font... ;-)

Wish Dani would have increased the size a bit, the contrast between normal text and code is too much.

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

> Prove it!

Arghh...with such a high post count, it would be difficult for me to do so... ;-)

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

Oh you should have left it as SilverFall because yes, it was a typo. After the character is revived all he is wearing is his skimpy underware. Fortunately I keep extra cloths and weapons lying around.

Maybe you ought to read some good game guides related to this game. There is no way a full fledged commercial game like it would go at such lengths to frustrate the gamer. There must be something like a stash or a saving option so that you can load the game at a later time. I guess there would be some concept of checkpoint in this game...

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

Being innovative and enterprising is a good thing, but you must know where to invest your time in. This page hosts a number of ways of finding out prime numbers. Pick up a tough one and go for it. Maybe then you would really be in a position to come up with the real thing. ;-)

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

You are overly complicating things. Just use a simple counter which would be incremented each time a prime number is found and break out of the while loop when the counter exceeds 20.

No need for iterators. Also querying the size fo a vector in each iteration would not be such a good idea. Keep a simple counter and you would be good to go.

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

Create three different classes each of them implementing the Runnable interface, each of them having their own relevant run() method. Create a driver class which would create an instance of the three classes, pass the instance to the constructor of Thread, call the start() method of the thread and you are good to go.

Read this.

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

Happy B'Day my friend, and this is not coming from a bot... ;-)

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

Nah...thats jus plain lavish. ;-)

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

Did by any chance you mean SilverFall becuase there is no game which goes by the name of SilverFail.. :-)

This looks promising.

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

Thank you for your assistance, I do appreciate it. Although I am still unclear on the while statement, I have now used
While(result !=0). However, I am now receiving the error message
error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup I tried to look up this error message in the MS Help section, but am not receiving as much information as I would have hoped for.

Its not a problem with the code but with your project configuration. The most common reason you get this errror is when you don't create a console project.

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

Post the errors. Just saying you have got errors doesn't help us in helping you out.

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

Post your effort.

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

Here is a good UML tutorial.