Jump to content

General Lag

Member
  • Content Count

    118
  • Joined

  • Last visited

    Never
  • Medals

Community Reputation

-1 Poor

About General Lag

  • Rank
    Sergeant
  1. General Lag

    C++ experts please help me! please!

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (barret @ April 15 2002,10:39)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Thorn @ April 14 2002,23:33)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (IceFire @ April 14 2002,21:50)</td></tr><tr><td id="QUOTE">Thank god I don't know a thing about computers!! I would need to know all that crap.<span id='postcolor'> Uhm, I don't want to rant BUT. Are you serious? I mean, I can fairly understand why you choose for yourself to not know about this "computer stuff" as it is not everbodys thing. On the other hand, if you'r posting here you may know more then you want. The thing I don't understand is why it should be crap. Without this crap you wouldn't be able to post here, to surf, to play flashpoint, to write electronic mails to everybody on the world and so and so forth. Without this crap empowering ALL the electronic devices around you ( in an averyge car are about 80-200 chips ) you would be pretty in what we call stoneage. Yes, you could live in the wilderness wthout it, but not in the todays society.<span id='postcolor'> I'm learnin C and C++. I know Perl, Php(4), Java, And python. Doesn't that sound great on a 13 year old's resume?<span id='postcolor'> Sure if you are realy that age. I don't want to doubt it, but it's just unlikely. But, you never know. I am 24, and as such I have begun programming 2 years ago. I don't know anything other pretty good then C++. Sure I can html, and bit of javascript, tcl and Bash, but that's it. I spent most of my time learning C++, because my main course of action is to learn something trough and trough. Amazingly, there is always enough new to learn after you'r done with the syntax. I think you made a good choice to learn C++, because it is a realy versetaile language with many many applikation areas.
  2. General Lag

    C++ experts please help me! please!

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (IceFire @ April 14 2002,21:50)</td></tr><tr><td id="QUOTE">Thank god I don't know a thing about computers!! I would need to know all that crap.<span id='postcolor'> Uhm, I don't want to rant BUT. Are you serious? I mean, I can fairly understand why you choose for yourself to not know about this "computer stuff" as it is not everbodys thing. On the other hand, if you'r posting here you may know more then you want. The thing I don't understand is why it should be crap. Without this crap you wouldn't be able to post here, to surf, to play flashpoint, to write electronic mails to everybody on the world and so and so forth. Without this crap empowering ALL the electronic devices around you ( in an averyge car are about 80-200 chips ) you would be pretty in what we call stoneage. Yes, you could live in the wilderness wthout it, but not in the todays society.
  3. General Lag

    Best martial art?

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (--Snype-- @ April 12 2002,20:56)</td></tr><tr><td id="QUOTE">ok, make way for the grandmaster... *ahem* I agree with you all, a soldier must be free to move and very light in his actions, but there is a certain Kung Fu Tao that enables a human to move freely and extremely quickly no matter how much weight is on his back. It's all to do with the hips, if there is nothing on the hips, the soldier can shift his weight here and their very swiftly. After months of vigarous training, a soldier can jump onto a 3 metre wall within 2 seconds, or so. Oh and by the way, whoever said "Gung Foo". lol, it's Kung Fu.<span id='postcolor'> hehe, yeah, I'v heard of this Kung foo. And after a year of training the soldiers walk on top of bamboo forests, not touching the ground. They can jump like in matrix and break walls like agents. Geeze, why isn't the military deploying this? Just imagine an Army of modern warfare Kunf foo monks... ( why can't we jump in OFP?? btw. and train it till we can play unreal? )
  4. General Lag

    Jesus christ superstore

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (madmike @ April 14 2002,00:16)</td></tr><tr><td id="QUOTE">*cough to obtain gay vioce*Unfortunately this society has deified sexuality (and in particular male sexuality), and has made it into a god. This is why little girls are praised for interest in "boyish" activities, but boys who do the opposite are seldom tolerated. So such a character, by his fairy-like qualities and appearance, represents a literal blaspheme against their "god". No wonder few stage productions have dared to cast a male for this character! (Disney alone has had the guts to do so time after time.) Yet it is for these very reasons that this character suits me perfectly. Besides, the God of Love that Jesus spoke of is the only one I serve. Too bad modern religion seems to have missed that. *cough to end the gay vioce* Thats what peterpan man has to say on the subject<span id='postcolor'> Geeze, have you trown the dice over you are going to defend a this pathetic or what? Has the dice choosen you to be the Peterpanman? I have nothing against a Man with a female side, but I have something against completely pathetics!! I mean, a women couldn't even do it the same. She couldn't resist to make it look good, why can't he??
  5. General Lag

    Dead loser #8,886

    Yes, excelent point. What about the gun he shot himself with? Wont they sue the manufacturer for this too? And what about the room furniture he killed himself in. It was the place he choose to die, maybe the furniture producer is wrong in his design. I am for a warning label on life! </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> Attention, this is life is deadly! Your risk of dying is 100%! <span id='postcolor'> Maybe they should sue God! What would they have been doing if he killed himself in front of TV ( which happens often enough )? geeze, get over it. Life's cruel, and it doesn't end very nice mostly. Man are weak and idiots die soon.
  6. General Lag

    C++ experts please help me! please!

    Ah, and before I forget. What you need to understand this. -In depth knowledge about pointers and arrays. -Familiar with Templates -Understanding of a recursive function call. And pay attention, this code is by no means error Save
  7. General Lag

    C++ experts please help me! please!

    Well, as I tend to do all the stuff myself, here is my solution. Btw, all compiles! This stuff here would go into some kind of header. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> /////////////////////////// // swaps pointers in a // pointer Array /////////////////////////// template <class dType> void swapPArr( dType** data, const int& index1, const int& index2 ) {  static dType* tmp;  tmp = data[index1];  data[index1] = data[index2];  data[index2] = tmp; } /////////////////////////// // Compares data // Arrays /////////////////////////// template <class dType> bool GreaterEqPArr( dType* v1, dType* v2, const int& dataSize ) {  if( dataSize )  {   if( *v1 < *v2 ) return true;   if( *v1 > *v2 ) return false;   return GreaterEqPArr( v1+1, v2+1, dataSize-1 );  }  return false; } /////////////////////////// // Sorts the pointer // order to data Arrays /////////////////////////// template <class dType> void quicksortPArr( dType** a, const int& l, const int& r, const int& dataSize ) {  int i, j;  dType* v;  if( r>l )  {   v = a[r];   i=l-1;   j=r+1;   for(;; )   {    while( GreaterEqPArr( a[++i], v, dataSize ) );    while( GreaterEqPArr( a[--j], v, dataSize ) );    if( i>=j ) break;    swapPArr( a, i, j );   }   swapPArr( a, i, r );   quicksortPArr(a, l, i-1, dataSize );   quicksortPArr(a, i+1, r, dataSize );  } } <span id='postcolor'> And now we can use these functions </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> void main() {  // Number of entrys  int size;  // counter  int i=0;  // the Pointer array  char** PArr;  // the Data Buffer size for the names  const int buffersize=20;  // Get the  number of names  cout << "Please enter the number of records with \"1\" as first..:";  cin >> size;  PArr = new char*;  // Get the names  for( i=0; i<size; i++ )  {   cout << "Enter record nr.\"" << i+1 << "\"..:";   PArr = new char[buffersize];   cin >> PArr;  }  // sort the pointer to the names  quicksortPArr( PArr, 0, size-1, buffersize );  // Print the new ordered names  for( i=0; i<size; i++ )  {   cout << PArr << endl;  } } <span id='postcolor'> Ok, this may seem quit a bit a lot of code. But what you have here is a template sort algorithm which accepts ANY pointer array. This means that you not only can toss char* at it, but also EVERY other type of data. As long as the data is comparable with > at the level of a cell ( remember, we got 2d table here ). Damn, there's a bug !! Gotta find out. Hang on a day or two.
  8. General Lag

    Who shows off the biggest gun?

    Well.. actually. See, that was my missile bursting this star into his white age. And btw, this blurry things around it is what's left from explosion. And no, this isn't CGI. Fusion bomb, what are fusion bombs? Ah, I see, those little puffs on the surface of some smaller planets.
  9. General Lag

    Who shows off the biggest gun?

    Hey, I don't want to rant about the starwars movies....BUT. If you where the constructor of this utterly great, immense, superb ultimate weapon. Wich has inside some very delicate parts wich react "sensible" on explosions and such. Would you build a channel right from the outmost shell into the delicate core??? Moreover, would place a fine little pathway towards the entry of this tunnel to a perfect shooting position? I mean, why havent they just placed the hole perpenticualr to the surface, enlighted it with some blinky red guidance light so the atacking pilot SURELY doesn't miss his target. the only thing missing is "Kick me, I am with stupid!!" sign on the back of the deathstar, where vader can't read it!!
  10. General Lag

    Who shows off the biggest gun?

    uhm, ok, category change
  11. General Lag

    Who shows off the biggest gun?

    Well not quite a hand gun, but still avaiable non apc mounted as a fast to build heavy defence. 40mm high explosive automatic gun.
  12. General Lag

    Who shows off the biggest gun?

    Hey, I am swiss, and this thingys are used in our infantry ( we call this guys "füsiliier" or "Kanonenfutter" )
  13. General Lag

    Who shows off the biggest gun?

    Ok, here's the simple game. You gotta post a picture ( as image ) and it got to be the bigger gun then the gun in the last post. Restriction is, we are only aloud to change weapon category every third post!! To make the case not to difficult I will begin with something small.
  14. General Lag

    The art of war.

    Hagakure, also worth a look. Quite another book, less about tactics n stuff, more about personal honor and decisions. Has on a personal level more to give I think, but offers less to general philosphy and tactics. Strangely some principles in this book helped me to play amost every Fps game better then before. ( Rainstorm and Form are two important keyparts in playing I think ).
  15. General Lag

    Step right up and take the gay test

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (nordin dk @ Mar. 02 2002,17:10)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Thorn @ Mar. 02 2002,13:52)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (nordin dk @ Mar. 02 2002,09:30)</td></tr><tr><td id="QUOTE">Got 38%, that's ok I guess. Some of those questions we're hilarious Btw: It was me who recommended Dice Man Did you finish it yet?<span id='postcolor'> Half way trough<span id='postcolor'> Isn't it just hilarious? And have you started to play with dices yet?<span id='postcolor'> Well, strangley I did a bit, and remembered that I played this game waaaaay back my youth a bit without knowing that somebody wrote a book about it. But after a while I realized that I was too lazy to live with the consequences, and gave it up. I stick with this decision till now( made it with eight or so ) But somehow, a bit of it is still here, I just need no more dice to do it. I am able to make decisions, and stick with them without the slightest reason. But many of my friends say I am a mad but intersting person anyway. I have also realized, on the example of different creative activities in my youth, that chance is an exiting thing, but I have better motivation to complete a task if I pick it myself. After all, I don't like to be commanded around. It's not that I like to be in controll, sometimes I enjoy letting go, but I don't want to have to decide when live plays his riddles with me and when not, because I can't. The whole live is dicing, without me willing in or not. So what's the throwing good for, they have been thrown anyway and I can't change it, so it's best to listen to my madness and make more crazy creative work. (Have I told, I spend my time drawing, modelling and programming ).
×