Thread: Share some of your scripts that you're either proud about or is cool/interesting!

  1. #1
    Registered User
    Join Date
    Sep 2018
    Posts
    217

    Share some of your scripts that you're either proud about or is cool/interesting!

    I was looking at some scripts online and there are some really cool ones. Ah there's nothing that inspires me more than what people have come up with! It's amazing how creative people can be.

    You don't have to post the code if you don't want to, you can even just explain (even just briefly) what you have done! It's nice to see what people have come up with. And I know there are quite a lot of darn experienced people over here in this forum. There's gotta be something cool each one of you have done.

    Oh and remember what you have done need not be impressive, it could just be a good idea with simple logic. If not for what you have already done, are you working on something really cool or do you have future plans for making something cool?

    Lastly feel free to contribute even if you're a newbie like me! You need not have made something super impressive, but what took you a lot of time to make?

    Thanks for reading and have a good day. ;D

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    C++ isn't really a scripting language, and as a result, a C++ program is almost never referred to as a script.

    With that being said, one of the programs I'm most proud of is my code generator, that reads in metadata from a MySQL/Aurora/MariaDB database, and generates classes for each table, with CRUD operations, including creating referential links between the classes.

    so you can do stuff like:

    Code:
    auto cars = mydb::Cars::Where(dbConnection, mydb::Cars::column::color == "Blue");
    
    for (auto const& car : cars)
    {
      auto cylinders = car.engine.Load(dbConnection).numberOfCylinders;
      // do something with this number
    }
    the capabilities are much more extensive than this, but it's just an example.
    Last edited by Elkvis; 10-23-2018 at 09:01 AM.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  3. #3
    Registered User
    Join Date
    Sep 2018
    Posts
    217
    Oh haha I didn't even know the difference!
    Nice, another complex thing that I will probably never understand but that's how it works I guess.

    But thanks for contributing, finally a reply.

  4. #4
    Guest
    Guest
    That's seriously cool Elkvis!

  5. #5
    Registered User
    Join Date
    Oct 2018
    Posts
    2
    Yes Elkvis c++ is not good programming language it gives more error
    Code:
     
    
          #include <iostream>
    using **namespace** std;
    class Complex
    {
    
     public: double *re, *im;
    
     Complex()
     {
    
        re = new double(r);
    
        im = new double(m);
    
    }
    
    Complex( )
    {
    
        re = new double; 
        im = new double;
        *re = *t.re; 
        *im= *t.im;
    
    }
    
    ~Complex()
    {
    
            delete re, im;
    
    }
    
    };
    
    int main() {
    
    double x, y, z;
    cin >> x >> y  >> z;
    Complex n1(x,y);
    cout << *n1.re << "+" << *n1.im << "i ";
    Complex n2 = n1;
    cout << *n2.re << "+" << *n2.im << "i ";
    *n1.im = z;
    cout << *n2.re << "+" << *n2.im << "i ";
    cout << *n1.re << "+" << *n1.im << "i ";
    return 0;
    }

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by aditya56 View Post
    Yes Elkvis c++ is not good programming language it gives more error
    So C++ is not a good language because you don't know how to write it?
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Elkvis View Post
    So C++ is not a good language because you don't know how to write it?
    No, Elkvis C++ is not good programming language it gives more error. Sorry. Maybe you would have better luck if you design another programming language from scratch instead of coming up with your C++ dialect.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scripts Writing Scripts
    By Fauveboy in forum C Programming
    Replies: 7
    Last Post: 06-03-2014, 08:38 AM
  2. feeling proud.
    By Mike Beal in forum C++ Programming
    Replies: 12
    Last Post: 07-16-2012, 06:58 PM
  3. Not very proud of this Code.
    By caroundw5h in forum C Programming
    Replies: 17
    Last Post: 03-27-2004, 10:45 AM
  4. Very proud of this code.
    By caroundw5h in forum C Programming
    Replies: 10
    Last Post: 01-22-2004, 01:50 AM
  5. Is there something you are proud/glad to not know?
    By Commander in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 10-31-2002, 07:40 AM

Tags for this Thread