life is shit why do i exist
sophuwu sophie@skisiel.com
Fri, 19 Apr 2024 15:04:54 +0200
4 files changed,
11 insertions(+),
57 deletions(-)
M
CMakeLists.txt
→
CMakeLists.txt
@@ -3,5 +3,4 @@ project(bashprompt)
set(CMAKE_CXX_STANDARD 17) -add_executable(ip ip.cpp) add_executable(bashprompt main.cpp)
D
ip.cpp
@@ -1,39 +0,0 @@
-#include <string> -#include <cstdlib> -#include <cstdio> - -typedef std::string str; -typedef unsigned int ud; -typedef unsigned char ub; - -struct ip4{ - str hexid = "0x"; - ub val[4]={0,0,0,0}; - str s(char join = 0, int useColor = 0); - str getid(); -}; -str ip4::s(char join, int useColor) { - return str(std::to_string(val[0]) + "." + std::to_string(val[1]) + "." + std::to_string(val[2]) + "." + std::to_string(val[3])); -} -str ip4::getid() { - std::system("hostid"); - for (char i = 0; i < 4; i++) { - p[i] = (ub) - } - return id; -} - -int main() { - - ud id = hostid(); - printf("hostid: %lx\n", id); - printf("hostid: %lx\n", ); - - unsigned char ipr[4]; - for (char i = 0; i < 4; i++) { - - } - printf("ip: %u.%u.%u.%u\n", ipr[0], ipr[1], ipr[2], ipr[3]); - return 0; - -}
M
rainbow.h
→
rainbow.h
@@ -1,26 +1,12 @@
/* * File: rainbow.h * Description: A header file for printing rainbows in C++ - * GitHub: https://github.com/sophuwu300/rainbow.h - * * Creator: Sophuwu <sophie@sophuwu.site> - * - discord: sophuwu - * - website: https://sophuwu.site https://skisiel.com - * - github: Sophuwu300 - * * Date: 2023-08-04 - * - * License: MIT: Must include license if used in project - * - Can edit, modify, and redistribute - * - Cannot hold liable - * - Must include license - this comment block - * - Must name creator - Sophuwu - * - * Examples and Documentation: - * - https://sophuwu.site/rainbow.h - * - https://github.com/sophuwu300/rainbow.h - * + * License: MIT */ +#ifndef RAINBOW_H +#define RAINBOW_H 1 #include <stdio.h> #include <string>@@ -99,3 +85,4 @@ r.next();
} } }; +#endif