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

> Or should I figure out how to use Visual Studio to do it?
Visual Studio won't do it for you since its an IDE, not a language. Standard C++ has no inbuilt support for GUI, Networking and the likes. You have to resort to third party libraries.

> Should I just try to get to grips with the above two libraries?
Considering your project deadline, making use of premade libraries would be a wise choice. They would drastically reduce your development time.

As for the part about randomly choosing an image, you can iterate through the contents of the directory using Boost libraries, so it shouldn't be a problem as such.

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

> But how do you know that the posting games aren't making DaniWeb less-inviting for professionals?
Because if they did, Dani wouldn't have kept them. Like I said, if Dani firmly believes that Daniweb has to attract professionals and if she has kept a posting games forum, there must be a reason behind it.

If a new forum is made, the Geek's Lounge, would actually contain 'geeky' discussions rather than 'FFXII rockzzzz'...

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

If you must know, n00bs is a derogatory term for someone who is really thick headed not to understand things even after doing them for a while, one who is lazy and lousy and is a troll.

Beginners is the word you must be referring to. ;-)

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

> Low level players = noobs 99% of the time;
Everyone has to go through that phase so that is not a valid statement.

> why have multiple characters when you can have one super-powerful one?
Because they don't play only for power. Some real hardcore fans play the game with each and every class just to enjoy the game to its fullest.

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

Low level players != n00bs

Yes, of course people don't like teaming up with n00bs, but they would at least try to help out low level players who know the tricks of trade.

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

Where does 'feeling bad' fit in an MMO scenario where its almost natural to team up with someone to attain your goals.

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

There is no way of knowing that.

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

Mostly you find highlevel players who won't have anything to do with lower level players, guilds that require you to be level 100 or more to even be considered as a member, and general hostility to inexperienced players overall.

Guess I am really good at making friends, since I always manage to find someone to team up with me. ;-)

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

> For a non-basic type the c'tor is always called (after memory allocation).
Though you have to realize that classes in the end are composed of primitive types and if an explicit constructor is not written to take care of the initialization, the same situation would result (junk values of primitive types).

> Will both i and *j print junk values?
No, the one dynamically allocated would be given the default value which is zero for integer types and '\0' for char types.

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

There has been a lot of talk about ROR(Ruby on Rails). It has been said that a Java Web based application which was developed in 4 months, was developed in 4 days using ROR.

If you are yet to start on learning a new server side technology and have a time constraint, trying out ROR wouldn't be a bad idea.

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

Going by the normal C/C++ tip:
do int i = 0; instead of:

int i;
i = 0;

So when you know the value for a variable at the time of it's creation it's better to initialize it to save a li'l time, rather than letting SOME value being set in initialization and then assigning it.

AFAIK, this is not the case. When a variable is declared, a block of memory is reserved for it and thats it. No default initialization is done. Its because of this we get junk values when we try using uninitialized variables. This value is interpreted based on the contents of those memory location and the type of variable under consideration.

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

Hinduengg, stop posting in caps. Its considered to be rude and makes reading the post difficult.

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

You just need to add a newline the moment you have displayed four randoms.

for(int i = 0; i < 100; ++i)
{
     if(i % 4 == 0)
         putchar('\n');
     cout << randomNumber;
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Visiting the links here would be a good option. Also if you are ready to buy a book, take a look at this.

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

Maybe asking it here would be more productive.

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

Some requirements:

  • Solid understanding of C++
  • Strong OOP concepts
  • A decent mathematics background
  • Strong logical reasoning
  • Knowledge of API's like DirectX or OpenGL

If you have done C++ from the tutorials on the internet, you need to read some good books since tutorials just scratch the surface.

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

> Yeah. Post in a geeks lounge thread, and say I agree. That will get
> you all the reputation you need.
Bingo, couldn't have put any better, considering that most of the influential people (rep wise) of Daniweb hang out there. ;-)

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

What makes you say that they are otherwise?

I meant that playing games doesn't make anyone immature as such. Everyone plays games. And no, its not that people who don't play games are immature if that is what you were assuming from my post. ;-)

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

Maybe this is what you are looking for.

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

We have never had such a forum to avoid targeting the teenage / gamer type, instead trying to focus on reaching and attracting professionals with careers in IT. However, such discussion would be welcome in the Geeks' Lounge.

If having a 'posting games forum' doesn't shoo away the 'professionals' neither would a 'gaming forum'. With such an active moderation staff, I don't think piracy related talk would be an issue.

My take is that a small game forum in the deep pits of 'Geeks Lounge' wouldn't have an effect on the professional aspect of Daniweb. And its not that only immature people play or discuss about games. There is Narue, me, Mel and the others.

I vote in favour of one.

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

..because you failed to provide an implementation for the non-virtual function.

class abc
{
    public: virtual ~abc() {} 
    static void operator delete(void*) { /*do something*/}
};
int main(int argc, char *argv[])
{
    abc _a; return 0;
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> But where did it get the arrows from? Was the iterator getting
> incremented beyond the number of players?
Your iterator was in an invalid state and you try to access it. Simple.

> Just don't become a teacher OK?
You are being unnecessarily harsh here; she was trying to help you out. The negative reputation was so uncalled for. Such kind of attitude would make a contributing poster think twice before helping you out.

Hope you understand.

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

Dani's post was aimed at Davey not mentioning the name of Daniweb in his list. James thought that 'currently monthly contributions' referred to 'donating' to Daniweb while it actually meant 'contributions as a writer'.

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

A common solution to this problem is to pass around the array size along with the array. That way, it would work for all types of arrays, not just C style strings (char arrays with terminating null character).

void doSomething(int* arr, int size)
{
     //get ready to add some bugs to your code
}
Matt Tacular commented: Fine post, you're also a good teacher +2
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No need of another buffer, a simple swap should do the trick.

int i, j;
    char ch;
    for(i = 0, j = nblocks - 1; i <= j; ++i, --j)
    {
        ch = iobuf[i];
        iobuf[i] = iobuf[j];
        iobuf[j] = ch;
    }
    fwrite(iobuf, 1, nblocks, out);
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yet another classic example of why globals should be best avoided. The culprit here is the iterator variable 'iter' which you chose to share among all your function calls resulting in side effects. The fact that the function mainTurn() along with all its sub functions like 'wordAffairs()' share the same variable causes the 'funny character printing syndrome'.

Create a local variable for each function call when global state is not explicitly required and you should be good to go.

Add a line list<humanPlayer>::iterator iter; at the start of mainTurn() function. Plus the logic for rotating turn looks fishy to me.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
<%
   int records1 = ic.getTotalNumOfRecords();
   Integer records2 = new Integer(records1);
   String numberOfRecords2 = records2.toString();
   %>
<inquiry:tableClaimHistory numberOfRecords="<%= numberOfRecords2 %>" dataAction="claimHistoryViewData.do" emptyKey="error.noData"/>

Though this approach is not recommended and you are better off using JSTL to reduce the clutter and better separation of presentation and business logic.

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

Peter said:
> Well problem is that site work everytime I need it so I have no
> clue...

Vinod said:
> did you tell your telephone number??
> may be with the tele phone number you can trace the person's
> address easily...

James said:
> or maybe he just googled you

Looking at the last three posts, it appears that only Vinod and you are at fault of being cryptic.

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

So where do the parents come in? You can't blame the parents for what those suckers do to this world.

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

> I know i really want to but always have no money :( i feel so guilty - sorry Dani!
You misunderstood Dani's post.

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

> If so, then thats the parents' fault for not teaching their kids the difference between reality and the
> virtual/fake world.
Or the fault of the kids, for acting their age, a thing which is so natural...

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

Like one of the newsgroups regular once said:

Don't take things you read on an Internet forum too personally. You'll be much happier that way.

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

> And you dont necesarially need DirectX or OpenGL
Explain and elaborate.

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

You need to have a solid understanding of Java to attempt something as advanced as Game Development. Next you would need to get conversant with the J2ME API if you are planning on J2ME game development.

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

I tend to dislike MMO's which discourage you from playing in groups and exploring regardless of your level and race. In WoW, you are on your own, with your own set of quests. Players with different races spawn at different points in the world not to mention the sucky concept of good v/s bad.

I like Ragnarok for its open ended game play and allowing players to play in groups irrespective of their class, race and level. Really looking forward to Ragnarok II.

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

> But not as hilarious as they are
Of course since I already cut out the nonsensical and explicit content.

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

There must be some kind of processing going on at the server side with the items selected. It very much depends on the server side language you are using. Maybe asking in the appropriate language would be better option.

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

Maybe he is not talking about Daniweb IRC.

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

Plus you can safely do away with the language='javascript' attribute since Javascript is the default scripting engine for all browsers. Use this tag only when you are using two or more scripting languages. Eg. VBScript etc.

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

> Yea, which is exactly how I was banned..
Hehe, no one messes with Jwenting. :-)

> I think I'm still banned in the IRC chat
Contact Dani if what you say is true, there is acute shortage of people on the IRC. ;-)

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

> even my little sister that is 4 y/o can do better cartoons than those...
Please share her creations with us...

> now, if we're talking about adult cartoons (the simpsons, family guy, southpark) tjose are pretty cool...
If your little sis can do the stuff on cartoon network, she can even do 'Simpsons, Family Guy, SouthPark' etc. minus the nonsensical and explicit content.

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

Best of luck Davey -- both for the ceremony and coping up with the luck handed out by others. ;-)

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

No, it was not the IRC. He and Jwenting were not on the best of terms.

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

> okay, calm down...
No, he won't. He is a 'respectable snob'.

:-)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    size_t filesize;
    size_t nblocks = 1;
    FILE *in, *out;

    /* check no. of arguments */
    if (argc != 3) {
        fprintf(stderr, "%s: incorrect arguments\n",
            argv[0]);
        return 1;
    }

    /* open the input file */
    if ((in = fopen(argv[1], "rb")) == NULL) {
        fprintf(stderr, "%s: can't open %s\n",
                argv[0], argv[1]);
        exit(1);
    }

    /* open the target file */
    if ((out = fopen(argv[2], "wb")) == NULL) {
        fprintf(stderr, "%s: can't open %s\n",
                argv[0], argv[2]);
        exit(1);
    }

    /* move pointer to end of input file */
    if(fseek(in, 0L, SEEK_END) != 0) {
        perror("fseek(in, 0L, SEEK_END");
        exit(1);
    }

    /* get current file position in input file*/
    nblocks = ftell(in);
    rewind(in);

    char *ptr = 0;
    char *iobuf = (char*)malloc(sizeof(char) * nblocks);

    /* read input file into buffer */

    if(fread(iobuf, 1, nblocks, in) != nblocks){
        fprintf(stderr, "fread failed\n");
        exit(1);
    }


    fclose(in);
    fwrite(iobuf, 1, nblocks, out);
    /*
    for(ptr = iobuf; ptr <= iobuf; ptr++)
    {
        fputc(*ptr, out);
    }
    */
    free(iobuf);
    fclose(out);

    exit(0);
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Naruto is a really good anime. As for Shin Chan, I find it to be _childish_.

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

Here you can find a list of the books you can buy. Read the reviews to find out which book is for you.

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

> multitasking
Heh. I really wonder... ;-)

> Looks very good. May give it a go when I've finished Oblivion (which is also extremely pretty)
From what I have heard, Oblivion has a long gameplay, spanning across around 60 or more hours. I still am in the shadows as to what these guys have been feeding the audience with since Elder Scrolls I...

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

You are using the fread function incorrectly by swapping the position of the second and third parameter. The second parameter is not the size of the entire file, but the size of each chunk.

Try changing to fread(iobuf, nblocks, filesize, in) and it should work out to be fine.

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

Ah, now I recollect. It was something about whether memset was used internally when an array of integers was being initialized using initializers. It turned out that there was no standard specification as such which prevented the compiler writers from doing this, so it was pretty much guess work of whether memset would really be used or not.

BTW, thanks for giving me time to take back my reply. I wonder what would have become of me failing that. ;-)