New dude needs simple help :P

This is a discussion on New dude needs simple help :P within the C++ Programming forums, part of the General Programming Boards category; Hey I just started to learn C++. Just to learn and make my first program, I want to make a ...

  1. #1
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90

    Talking New dude needs simple help :P

    Hey I just started to learn C++.

    Just to learn and make my first program, I want to make a "virus" thats
    says like "Deleting your system files..." and then the prosent stands under to mess with my friend.

    I've made it but I just have one problem.
    Theres no delay between the prosents...
    It says "Deleteing your system files.... 100%" right after you started the program.

    And I want the new prosent to replace the old one.
    Now it says "1% 2% 3% 4%" etc.
    I want it to only be one number to say the prosent, not 100.

    Heres the part that I've been talking about:
    Code:
    int num1 = 0;
    
    while(num1 < 101) {
      cout<< num1 << "%";
      num1++;
    }
    And when I've already made a thread, how to I make other "backgrounds" instead of the boring black DOS window?

    Thanks a lot
    Last edited by XunTric; 09-26-2005 at 10:23 AM.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    your an idiot, thats not what this board is about if you want to learn then learn, dont use your knowledge to scare friends
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

  3. #3
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    Code:
    	int num1 = 0;
    
    while(num1 < 101) {
    
    	for (int count = 0; count < 100000000; count++);//simple but dirty method for delaying things.
    
      cout<< num1 << "%";
      num1++;
    }

  4. #4
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90
    Quote Originally Posted by sreetvert83
    your an idiot, thats not what this board is about if you want to learn then learn, dont use your knowledge to scare friends
    Ehh... I dont get what you mean.
    I readed thru many tutorials and searched for it but didnt find anything.
    Lol, I think my friends can take a joke.
    People understand that their system files doesnt get deleted like that.


    Thanks, Enahs =)
    But if thats a "dirty" way to do it is there a better way then?
    Last edited by XunTric; 09-26-2005 at 10:31 AM.

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Quote Originally Posted by XunTric
    Just to learn and make my first program, I want to make a "virus" thats says like "Deleting your system files..." and then the prosent stands under to mess with my friend.
    Messing with your friend like that is only one step away from actually making a virus. Your programming should never be destructive.

    Use a sleep function rather than an loop. You should be able to figure it out from there.

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    176
    sorry, i just have a short temper for viruses, and mock viruses they just seem pointless to me
    If a mime dies in the woods and no one is around to hear it, does it make a sound?

  7. #7
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90
    Dude, im 13 years old.
    If you were 13 years old and you friend sendt you a "cool game" and it was a "virus".
    Would you really care that much?
    I would never make a virus and I got no idea on how to do it anyway.
    Pointless or not, just tell me what to do?
    Please?
    Thanks...

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    >> Pointless or not, just tell me what to do?

    Speedy5 already did.

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    >>If you were 13 years old and you friend sendt you a "cool game" and it was a "virus".
    >>Would you really care that much?

    Well funnily enough, yes!

    If you want to waste your time creating such rubbish, then the least you can do is figure it out yourself.

    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 06:26 PM
  2. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 11:48 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 06:48 AM
  5. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21