• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - AntiVirus

#1
Thing-O-Rama ™ / Re: Tell us now!
November 26, 2006, 06:13 PM
Quote from: Joex86] link=topic=3771.msg161839#msg161839 date=1164579430]
Sorry. Hm, this pepsi is good.




Everyone load up your choice music program and listen to Master of Puppets by Metallica, while trying to follow this. It spans the first 45 seconds or so, and it's just drums.

C is obviously cymbal, and B is obviously bass. A # in the cymbal line means to immediately choke afterwards. I'm going to try playing this as soon as I have access to a drumset! :)

Intro (212 BPM)
C |#---------------|X---X---X-------|----------------|
B |o---------------|o---o---o-------|----------------|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )

C |#---------------|----------------|----------------|------------X---|
B |o---------------|----------------|----------------|------------o---|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )

  |-----------------------------Play 2x-------------------------------|
C |#---------------|X---X---X-------|----------------|------------X---|
B |o---------------|o---o---o-------|----------------|------------o---|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )

                               |----------------Crescendo-------------|
C |#---------------|X---X---X-------|----------------|----------------|
S |----------------|------------o-o-|o-o-o-o-o-o-o-o-|OOOOo-o-o-o-o-o-|
B |o---------------|o---o---o-------|----------------|----------------|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )

  |-----------------------------Play 2x-------------------------------|
C |#---------------|----------------|----------------|#-----#-----X---|
B |o---------------|----------------|----------------|o-----o-----o---|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )


EDIT -
Wow, it gets even more complicated further in.

Cymbal, hi-hat, tom 1, tom 2, tom 3, snare, floor tom 1, bass, and bass 2. Insane.
Chorus 1 (1:29) 
C |X-------X---X---|----------------|--------X---X---|----------------|
H |----X-----------|X---X---X---X---|X---X-----------|----------------|
T1|----------------|----------------|----------------|Oooo------------|
T2|----------------|----------------|----------------|----Oooo--------|
T3|----------------|----------------|----------------|--------Oooo----|
S |--------o---o---|--------o---o---|--------o---o---|----------------|
F1|----------------|----------------|----------------|------------Oooo|
B |o-----o---------|o-----o---------|o-----o---------|----------------|
B2|-------o--------|-------o--------|-------o--------|----------------|
  (1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + |1 + 2 + 3 + 4 + )

EWWWWWWWWWWWWWWWWWWWWW!
#2
Kind of a late greet, Joe. :P
#3
News / Re: Merry Christmas and Happy Birthday(3rd)
November 25, 2006, 11:44 PM
Quote from: disco on November 25, 2006, 10:33 PM
Quote from: AntiVirus on November 25, 2006, 09:47 PM
I think vL looks better then VL.  Possibly that's why it's a lower case v and an uppercase L?

Yeah that's what I figured.  I was just being difficult.  :P
*sigh*
Some people these days. :P
#4
News / Re: Merry Christmas and Happy Birthday(3rd)
November 25, 2006, 09:47 PM
I think vL looks better then VL.  Possibly that's why it's a lower case v and an uppercase L?
#5
Thing-O-Rama ™ / Re: Tell us now!
November 01, 2006, 10:26 AM
I saw two people run into eachother on a bike today while I was walking back from class.  It was pretty funny.
#6
C/C++ Programming / Re: Another! Segmentation Fault
October 31, 2006, 03:44 PM
Oh, mmk.

Well, I fixed it.  And I believe the only thing I did was change this:


char* getWord(const string file)
{
  ifstream in;
  int data_value = 0;
  char list[250];
  char* word;

  in.open(file.c_str());


To this:


char* getWord(const char* file)
{
  ifstream in;
  int data_value = 0;
  char list[250];
  char* word;

  in.open(file);
#7
C/C++ Programming / Another! Segmentation Fault
October 31, 2006, 02:42 PM
God!  I get these damn things a lot!

Anyway, I can usually figure them out, but this one I have no idea. 

Here is my code:


void dsply_chg()
{
  ifstream in;
  char story[150];
  char* target;
  char* word;

  in.open("index.dat");

  cout<<endl;
  cout<<"Changes have been made!";
  cout<<endl;
  cout<<endl;
  while(in >> story)
  {
    if(target = strstr(story, "*nouns*"));
    if(target != NULL)
    {
      word = getWord("nouns.dat");
      strncpy(target, word, 15);
    }
    if(target = strstr(story, "*adj*"));
    if(target != NULL)
    {
      word = getWord("adj.dat");
      strncpy(target, word, 15);
    }
    cout<<story<<" ";
  }
  in.close();
}


getWord() function:



char* getWord(const string file)
{
  ifstream in;
  int data_value = 0;
  char list[250];
  char* word;

  in.open(file.c_str());
  if(!in)
  {
    cout<<"Can't connect to "<<file<<".";
    exit(1);
  }
  else
  {
    in >> list;
    data_value = (rand() % 9) +1;
    for(int i = 0; i < data_value; i++)
    {
      in >> word;
    }
  }
  in.close();
return word;
}
#8
Quote from: Final on October 18, 2006, 10:21 PM
ok one thing after the few years ive worked with c++ ive seen it really revolves around pointers mate so your going to have to learn them. Pointers are the essence of c++. TO ME.
I don't really have a choice what I learn at school, unless I want to do research myself, and I have, but I don't have enough time to do extensive research and really learn it.  I will either do that when I do have time, or just wait for it to show up in my class.  Either way, for what I am doing, I shouldn't have to worry about them.
#9
Quote from: MyndFyre[vL] on October 18, 2006, 01:27 PM
Quote from: djuhn on October 18, 2006, 09:15 AM
Why did I code this? sick of all my keys being in use all the time and having to change them manually.
How about you just go BUY the game and then you don't need to worry about your key being in use?
That doesn't always work.  I bought my game and my key for my client is always in use by some bot and I have never given out my key and/or put my key in a bot.  So eh?
#10
I could have been fancy and made it a template, but I decided to just add the my_swap function into my calling functions to avoid messing with pointers and that fixed it.  Thanks!
#11
Can someone please help me?  I have been working on my programming assignment for my CS class and I have been running into a bunch of different problems.  Some of which I have been able to over come (I hope), and others I haven't.  One of these such problems is with the my_swap function that I created to help me sort an array.  When I sent the array to the my_swap function, I get a few errors.  At first, I have an infinite loop, but now I think I might have fixed that at the cost of getting two errors.  With my little knowledge of C++ I haven't been able to figure out what they mean.  So here they are:

Quote
sortingalgs.cpp: In function `void bubbleSort(int*, int)':
sortingalgs.cpp:19: error: invalid conversion from `int' to `int*'
sortingalgs.cpp:19: error: invalid conversion from `int' to `int*'
sortingalgs.cpp: In function `void bobSort(int*, int)':
sortingalgs.cpp:42: error: invalid conversion from `int' to `int*'
sortingalgs.cpp:42: error: invalid conversion from `int' to `int*'

Now here's the code:

This is the file that contains the my_swap function:




#include "hw6.h"

void my_swap(int first[], int second[], int index)
{
  int temp = 0;

// cout<<"In hw6.cpp in the my_swap function";
  temp = first[index];
  first[index] = second[index];
  second[index] = temp;

  return;
}


The #include "hw6.h" is the header file where my prototype for the my_swap function is stored.

Now for the sortingalgs.cpp:


#include "sortingalgs.h"
#include "hw6.h"

void bubbleSort(int array[], const int SIZE)
{
// cout<<"In sortingalgs.cpp in the bubbleSort";
  bool done = false, swapped = true;
  do
  {
    swapped = false;
    for(int index = 0; index <= SIZE - 1; index++)
    {
      if(array[index] > array[index + 1])
      {
       my_swap(array[index], array[index + 1], index);  //swaps the values of the new indexes (Line 19)
       swapped = true; //Everytime it swaps, this is true.
      }
    }
    if(swapped == false) //Once swapping is over, this is true, and the for loop ends.
      done = true; //ends do-while loop.
  }while(done == false);

  return;
}

void bobSort(int unsorted_sub[], const int SIZE)
{
  cout<<"In sortingalgs.cpp in the bobSort";
  int sorted_sub[] = {}; //declares an array with an undetermined size filled with 0's (wrong?)
  for(int index = 0; index <= SIZE - 1; index++)
  {
    //Assigns the sorted array all of the unsorted array, so that it can be sorted
    sorted_sub[index] = unsorted_sub[index];
    for(int index2 = 0; index2 <= index; index2++)
    {
      //Allows for two of the same arrays to exist so that the sorted can be sorted
      if(sorted_sub[index2] > sorted_sub[index])
        my_swap(sorted_sub[index2], sorted_sub[index], index2); //line 42
    }
  }
return;
}


Can someone please help?  Thanks!
#12
Java Programming / Re: I got some beginner trouble
October 13, 2006, 04:56 PM
Quote from: FrostWraith on October 12, 2006, 09:49 PM
OK. This snippet isn;t actually what I plan to do but I need to know how to do this. I cannot see why this code doesn't function properrly.

public class test {
    public static void main(String[] args){
if (args.length > 0){
    if (args[0].substring(1,1) == "-"){
        System.out.println("The first letter of your first argument was a hyphen");
    }
}   

    }
}

Since the question was already answered, I am not going to try to explain that.  But as a helpful suggestion, I suggest you don't put { at the end of a line, but instead put it under the line.

For example, it would help if your code looked like this:

  public class test
  {
      public static void main(String[] args)
      {
if (args.length > 0){
     if (args[0].substring(1,1) == "-")
             {
         System.out.println("The first letter of your first argument was a hyphen");
     }
       }   

   }
}

It's a tad easier to read.  You don't have to, but I think it's easier to read and check for errors.
#13
Thing-O-Rama ™ / Re: Tell us now!
August 07, 2006, 03:24 AM
Yeah...  Rubber Cement is like that, too.
#14
Link doesn't work.
#15
Politics / Re: Conservatives
June 01, 2006, 12:39 PM
Quote from: Rule on June 01, 2006, 12:08 PM
Quote from: CrAz3D on June 01, 2006, 12:02 PM
Myndfyre already corrected you in saying that the growth of the egg was natural, an intervention would interrupt the birth/growth of the egg.
Quote
If a woman does nothing (for example, she doesn't realize she's pregnant), and continues living her life as is normal, a child will develop and be born.
Aside from that, I've pointed out repeatedly, we shouldn't be legislating on what a group of people think is "wrong", unless they are a distinct majority.
http://www.gargaro.com/plmajority.html.  I think that the majority of people are pro-life.
Quote from: Rule on June 01, 2006, 10:55 AM
And Crazed, I'm sorry to break it to you, but a fertilized egg isn't exactly a child.  It's almost as close to being a born child as a sperm is: neither will become a developed baby through some mostly self-sustaining process.
You're close to correct in saying that a fertilized egg isn't exactly a child (if by child you mean a born human being), but it is considered to be living and has far more potential of becoming a child compared to a sperm.  This website; http://www.religioustolerance.org/abo_fetu.htm, helps explain the stages of development of a fertilized egg that you should probably read, Rule.

Your statement, "It's almost as close to being a born child as a sperm is" is completely wrong.  It is far more developed and advanced and far closer to becoming a child than a sperm.  As I stated above, read the information provided by that website.  It might clear up a few things.