109
olback
7y

Just started to dive in to C. Lots of fun. This is my first creation. I'll have some friends to test it for me... >:)

Comments
  • 17
    First, a shutdown in C....
    After, a network exploit in Python...
  • 21
    in C you do not need to specify the size of an array if you initilize it.
  • 8
    Wait, correct me if I'm wrong, but shouldn't your array size only be 11, including the new line and null terminator? Because \n is one character, right?

    That's why you don't specify the size in that case, and let the compiler count for you 🙂
  • 2
    Come on, where's the screenshot key? Or at least paint hahaha
  • 1
    I feel compelled to say that it's considered good practice to declare your main function as:

    int main(int argc, char *argv[]) {}

    But C and C++ are the main languages that I develop in. :)
  • 1
    @firefish Nope.
  • 2
    @firefish No. On windows you can shutdown without having admin access. I tried this multible times, as i have written the same program.
  • 2
    @vortexman100 you're right. You need root password in Linux for shutdown so I thought it would be the same in Windows. But this is pure evil.
  • 0
    Why the fuck "dick" is used as tag in this post?
  • 0
    @Sainathl Dick move to shut down my friends computers..?
  • 1
    wait but… won't it shutdown before they can see "Enjoy :D"
  • 0
    If u can, use linux for c/c++... Clion isnt something i'd recommend to start with... It's jst overkill for beginning imo...
    And on linux, c/c++ is so much more fun 😁
  • 0
    "poweroff" is an easier command.
Add Comment