Just a little mess about whilst I can't sleep

󰃭 18/09/2020

Right, so it’s nearly 3 am, and I cannot sleep, so I thought I would make a little useless program for Windows… Put simply, it basically asks “How can I help?” If you type “secret,” it will run the tree c:/ command on Windows. For those that don’t know, this command displays an itemized view of your C:/ drive. It looks pretty cool even though it’s literally useless. If you type anything else, the program will exit out. Again, this was just something I made because I can’t sleep and needed something to do. :D

Continue reading


Working with UI's (QT Creator)

󰃭 06/07/2020


Today I thought I would finally check out QT Creator and make a simple do-nothing program. Being a C and C++ programmer I thought I would make a funny piece of software. Below is a video showing what it does. ** As a disclaimer it's just joking, I don't have an actual opinion on Python since I have not begun to learn it yet.

https://www.youtube.com/watch?v=WwI6zlK1G7k&feature=emb_title

Continue reading


Linux Helper (New Project)

󰃭 20/06/2020

Hey all, I am planning to release a new piece of software over the next few weeks that will help with the day-to-day use of Ubuntu/Debian and Arch distributions. As with all things Linux, I will be releasing this project as open source. I will also be maintaining this project for the foreseeable future, so you can expect updates to it. I even want and need your input on what you would like to see the software do to make your work with Linux even easier.

Continue reading


SFML and Dot

󰃭 22/05/2020

https://www.youtube.com/watch?v=Idms4kairNk&feature=youtu.be

As I become a little more competent in C++, I feel it’s time for me to start working with UIs. I have made a project that displays a Star Wars logo, but for obvious trademark reasons, I can’t post that. However, I can post this project. It’s a bouncing red circle. While this took quite a bit of Googling, it turned out okay. The dot is created to detect edges and bounce off of them in the other direction.

Continue reading


Clone strings

󰃭 06/05/2020

A simple program that will take an input and define a string. It will then clone it to another string.

#include <iostream>
#include <string>

using namespace std;

int main() {
    string toclone, cloned;

    cout << "Define the first string and this program will clone it to another string: ";
    getline(cin, toclone);

    cloned = toclone;

    cout << "You entered: " << toclone << endl;
    cout << "Now the cloned string is also: " << cloned;

    return 0;
}

Continue reading


Completed Unnecessary hard game *Updated Again*

󰃭 28/04/2020

So here is the thing I sent this code to CSNorwood who helped me make the code shorter. So This game has now been re-written, re-worded, and re-structured with a lot and I mean a lot of help. I have asked and have been given permission to release this game again as I did not work on this alone and an agreement was made that he really does not care lol so the update is here and the download and been updated also. A massive thank you to CSNorwood for all his help.

Continue reading


A simple clock in C

󰃭 19/04/2020

So, my goal was to make a simple clock in C++, but I had also been advised to use C, so I have made two clocks that do the exact same thing. This is the C version, and the next post is the C++ version.

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>

int main(int argc, char** argv) {
A:

    time_t now = time(0);
    tm *ltm = localtime(&now);
    
    printf("Day: %d\nMonth: %d\nYear: %d\n", ltm->tm_mday, 1 + ltm->tm_mon, 1900 + ltm->tm_year);
    printf("Time: %02d:%02d:%02d\n", ltm->tm_hour, ltm->tm_min, ltm->tm_sec);
    
    printf("The time is correct as long as your system is correct\n");

    sleep(1);
    system("clear");

    goto A;
}

Continue reading


A simple clock in C++

󰃭 19/04/2020

As stated in the previous post, I made two versions of this clock, one in C and one in C++. This is the C++ version.

#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <ctime>

using namespace std;

int main(int argc, char** argv) {
A:

    time_t now = time(0);
    tm *ltm = localtime(&now);

    cout << "Day: " << ltm->tm_mday << endl;
    cout << "Month: " << 1 + ltm->tm_mon << endl;
    cout << "Year: " << 1900 + ltm->tm_year << endl << endl;
    cout << std::setfill('0') << std::setw(2) << "Time: " << 0 + ltm->tm_hour << ":";
    cout << std::setfill('0') << std::setw(2) << 0 + ltm->tm_min << ":";
    cout << std::setfill('0') << std::setw(2) << 0 + ltm->tm_sec << endl;
    cout << "The time is correct as long as your system is correct\n";

    sleep(1);
    system("clear");

    goto A;
}

Continue reading


Another IDE I now use as well

󰃭 19/04/2020

Code Blocks Logo

One of my first posts to this website was explaining the IDE I use, which was and still is NetBeans. However, I now use a second IDE as well, and that IDE is called Code Blocks. With Code Blocks, you can make UIs (User Interfaces) easier, as well as build code for a console and much, much more.

Click here to get Code Blocks

Code Blocks Interface

Continue reading


C++ does help with boredom - A simple do-nothing program

󰃭 16/04/2020

I got bored earlier today and decided to make a simple program that displays 1 - 10 and then starts repeating the alphabet over and over again until you quit it:

#include <iostream>
#include <unistd.h>
#include <cstdlib>

using namespace std;

int main() {
    sleep(1);
    cout << "1\n";
    
    sleep(1);
    cout << "2\n";
    
    sleep(1);
    cout << "3\n";
    
    sleep(1);
    cout << "4\n";
    
    sleep(1);
    cout << "5\n";
    
    sleep(1);
    cout << "6\n";
    
    sleep(1);
    cout << "7\n";
    
    sleep(1);
    cout << "8\n";
    
    sleep(1);
    cout << "9\n";
    
    sleep(1);
    cout << "10\n";
    
a:
    cout << "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\n";
    goto a;
}

Continue reading