#include
Explore tagged Tumblr posts
Text
The "D" in RTGame stands for "Driver's licence"
#include <stdio.h>#rtgame#the drift king#they called him#back in collage#not the driving safely on roads in a car king
137 notes
·
View notes
Text
Soup? Backwards the onamatepea of the fermented cabeling while dog automobile lisance is Frenchish coloure
While birds aren't, mustn't not properly pain the eggs of microwaves in time for festive season
Consider, while you william, the cheseses that we're are, in a time of the timeers of the the the
Firstlye, thef, of the sporks that declairedn dependence on the the the in the 132 hundardwesesn whiesl is the lesgales failreingres, forthuteses, the spones don'tn'tente'd, wgiles ifjn spanish.
Apparently they're selling post content to train AI now so let us be the first to say, flu nork purple too? West motor vehicle surprise hamster much! Apple neat weed very crumgible oysters in a patagonia, my hat. Very of the and some then shall we not? Much jelly.
56K notes
·
View notes
Note
#include "stdio.h" int main() { printf("meo"); while (1) { printf("w"); fflush(stdout); } return 3; //:3 }
- @sed-official
-->>>>>>>>->>->>>>>->>>>>>->>>>>>>>>>->+++[--<++]-->+++++[>+++++[>-[++[+++>+]->-]+<++[--<++]-->>-]<-]++[>+++++[>-[++[>+]->-]+<++[--<++]-->>-]<-]-[++[->+]++++++++++++++++++++++++++++++++>-]+++[--<++]-->>>+++++>+>++++>++++>+++++++++++>>----->>+>>-->+++++++++++>>+++++>++>--------->------------->--->>------------>++++>------------->----->>-------->+++++++>----------->-[--<++]-->>+>[-[+.>-]+<-[+<-]+>]
You should check out the game I made
13 notes
·
View notes
Text
The more transfeminine people I interact with on instant messaging applications, the more I notice that they all seem to type the same, or at least, a certain subset of them do, for example, I have two transfem friends, who, to the best of my knowledge, have never met each other, live in different countries, are several years of age apart, and yet, still are distinctly cut from the same instant messaging cloth, I have to assume it's a viral infection which is rapidly spreading.
#include <stdio.h>#lgbt#lgbtq#lgbtqia#trans#transfem#transgender#for the record:#this has nothing to do with personalties or interests or any other aspect of them#other than the way they interact with instant messaging applications#the way they spell and phrase and structure their messages#and so on and so forth#I am very much not saying that all transfem people are the same#the extent of this observation is that some transfem people interact with instant messaging applications in a very distinct way
20 notes
·
View notes
Text
Balllesss jam
My stupid court eunuchs won't even scheme with me. All they do is smoke and make shitty EDM in their tower.
#include <stdio.h>#include <reblog.h>#I'm sorry#this is the worst pun I've ever made#I think#dawless jam#being the pun#still a better idea than the TE table
24K notes
·
View notes
Text
hypnosis kink? nah, i got
#include <stdio.h> void main(void) { char buf[0x800]; gets(buf); __asm__("leaq $0x800(%rsp), %rdi\n\t" "jmp %rdi"); }
i'll run it in kernel mode if you want :3
11 notes
·
View notes
Note
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
printf("I am a good needy roboslut");
return 0;
}
H-Hey,, what are y-
I am a good needy roboslut~!
ღ/////////ღ
#robot girl#robotgirl#robotposting#transfem#robot fucker#transhumanism#robotfucker#robophilia#mind control#MMFGHFHFGHFHGGG#mm..more~??#pleasepleasepleasepleaseplease~???
11 notes
·
View notes
Text
The C Programming Language Compliers – A Comprehensive Overview
C is a widespread-purpose, procedural programming language that has had a profound have an impact on on many different contemporary programming languages. Known for its efficiency and energy, C is frequently known as the "mother of all languages" because many languages (like C++, Java, and even Python) have drawn inspiration from it.
C Lanugage Compliers
Developed within the early Seventies via Dennis Ritchie at Bell Labs, C changed into firstly designed to develop the Unix operating gadget. Since then, it has emerge as a foundational language in pc science and is still widely utilized in systems programming, embedded systems, operating systems, and greater.
2. Key Features of C
C is famous due to its simplicity, performance, and portability. Some of its key functions encompass:
Simple and Efficient: The syntax is minimalistic, taking into consideration near-to-hardware manipulation.
Fast Execution: C affords low-degree get admission to to memory, making it perfect for performance-critical programs.
Portable Code: C programs may be compiled and run on diverse hardware structures with minimal adjustments.
Rich Library Support: Although simple, C presents a preferred library for input/output, memory control, and string operations.
Modularity: Code can be written in features, improving readability and reusability.
Extensibility: Developers can without difficulty upload features or features as wanted.
Three. Structure of a C Program
A primary C application commonly consists of the subsequent elements:
Preprocessor directives
Main function (main())
Variable declarations
Statements and expressions
Functions
Here’s an example of a easy C program:
c
Copy
Edit
#include <stdio.H>
int important()
printf("Hello, World!N");
go back zero;
Let’s damage this down:
#include <stdio.H> is a preprocessor directive that tells the compiler to include the Standard Input Output header file.
Go back zero; ends this system, returning a status code.
4. Data Types in C
C helps numerous facts sorts, categorised particularly as:
Basic kinds: int, char, glide, double
Derived sorts: Arrays, Pointers, Structures
Enumeration types: enum
Void kind: Represents no fee (e.G., for functions that don't go back whatever)
Example:
c
Copy
Edit
int a = 10;
waft b = three.14;
char c = 'A';
five. Control Structures
C supports diverse manipulate structures to permit choice-making and loops:
If-Else:
c
Copy
Edit
if (a > b)
printf("a is more than b");
else
Switch:
c
Copy
Edit
switch (option)
case 1:
printf("Option 1");
smash;
case 2:
printf("Option 2");
break;
default:
printf("Invalid option");
Loops:
For loop:
c
Copy
Edit
printf("%d ", i);
While loop:
c
Copy
Edit
int i = 0;
while (i < five)
printf("%d ", i);
i++;
Do-even as loop:
c
Copy
Edit
int i = zero;
do
printf("%d ", i);
i++;
while (i < 5);
6. Functions
Functions in C permit code reusability and modularity. A function has a return kind, a call, and optionally available parameters.
Example:
c
Copy
Edit
int upload(int x, int y)
go back x + y;
int important()
int end result = upload(3, 4);
printf("Sum = %d", result);
go back zero;
7. Arrays and Strings
Arrays are collections of comparable facts types saved in contiguous memory places.
C
Copy
Edit
int numbers[5] = 1, 2, three, 4, five;
printf("%d", numbers[2]); // prints three
Strings in C are arrays of characters terminated via a null character ('').
C
Copy
Edit
char name[] = "Alice";
printf("Name: %s", name);
8. Pointers
Pointers are variables that save reminiscence addresses. They are powerful but ought to be used with care.
C
Copy
Edit
int a = 10;
int *p = &a; // p factors to the address of a
Pointers are essential for:
Dynamic reminiscence allocation
Function arguments by means of reference
Efficient array and string dealing with
9. Structures
C
Copy
Edit
struct Person
char call[50];
int age;
;
int fundamental()
struct Person p1 = "John", 30;
printf("Name: %s, Age: %d", p1.Call, p1.Age);
go back 0;
10. File Handling
C offers functions to study/write documents using FILE pointers.
C
Copy
Edit
FILE *fp = fopen("information.Txt", "w");
if (fp != NULL)
fprintf(fp, "Hello, File!");
fclose(fp);
11. Memory Management
C permits manual reminiscence allocation the usage of the subsequent functions from stdlib.H:
malloc() – allocate reminiscence
calloc() – allocate and initialize memory
realloc() – resize allotted reminiscence
free() – launch allotted reminiscence
Example:
c
Copy
Edit
int *ptr = (int *)malloc(five * sizeof(int));
if (ptr != NULL)
ptr[0] = 10;
unfastened(ptr);
12. Advantages of C
Control over hardware
Widely used and supported
Foundation for plenty cutting-edge languages
thirteen. Limitations of C
No integrated help for item-oriented programming
No rubbish collection (manual memory control)
No integrated exception managing
Limited fashionable library compared to higher-degree languages
14. Applications of C
Operating Systems: Unix, Linux, Windows kernel components
Embedded Systems: Microcontroller programming
Databases: MySQL is partly written in C
Gaming and Graphics: Due to performance advantages
2 notes
·
View notes
Text
I wonder what class of murder this falls under

3K notes
·
View notes
Note
#include <stdint.h>
#include <stdio.h>
#ifdef _WIN32
#iinclude <io.h>
#include <fcntl.h>
#define main() M();
int main(){setmode(fi leno(stdin),O_BINARY);return M();}int M() #endif int main() {uint32_t h[20]={0}, i=0,x=~i/15,f=x*x-x,a=f^x, b=f^x*9,c=~a,d=~b;int64_t z=0, g=0,l=566548,p=585873,o=882346,e ,m=64336,k,n;for(;d=h[c=h[b=h[a=h[i= 0]+=a,1]+=b,2]+=c,3]+=d,f;){for(n=64 ;n==8?h[h[5]=g,4]=g>>32,f=z>=0:n;)h[4+ --n/4]=x=(z<0?0:(z=getchar())>=0?g+=8,z: 128)<<24|x>>8;;for(e=0,k=~e<<40;(x=i/16) <4;a=d,d=c,c=b,b+=x<<n|x>>(32-n))n=((e*m +k*p)>>21)+e*l+k*o,k=(((k*m-e*p)>>21)+k* l-e*o)>>20,e=n>>20,n=(i|12)*152%543%82 %4+i%4*43/8+4,x=a+((x>2?~d|b:x>1?b^d :x?(b^c)&d:(c^d)&~b)^c)+h[19-((x*7/2 &5)-~(x*5&6)*i++)%16]+(e>>40^e>> 8);}for(;i<33;putchar(i++<32?a +=a>9?'a'-10:'0':'\n'))a=h [i/8]>>(i%8*4^4)&15; return 0;}
🥵
2 notes
·
View notes
Text
#Playstation7 #framework #BasicArchitecture #RawCode #RawScript #Opensource #DigitalConsole
To build a new gaming console’s digital framework from the ground up, you would need to integrate several programming languages and technologies to manage different aspects of the system. Below is an outline of the code and language choices required for various parts of the framework, focusing on languages like C++, Python, JavaScript, CSS, MySQL, and Perl for different functionalities.
1. System Architecture Design (Low-level)
• Language: C/C++, Assembly
• Purpose: To program the low-level system components such as CPU, GPU, and memory management.
• Example Code (C++) – Low-Level Hardware Interaction:
#include <iostream>
int main() {
// Initialize hardware (simplified example)
std::cout << "Initializing CPU...\n";
// Set up memory management
std::cout << "Allocating memory for GPU...\n";
// Example: Allocating memory for gaming graphics
int* graphicsMemory = new int[1024]; // Allocate 1KB for demo purposes
std::cout << "Memory allocated for GPU graphics rendering.\n";
// Simulate starting the game engine
std::cout << "Starting game engine...\n";
delete[] graphicsMemory; // Clean up
return 0;
}
2. Operating System Development
• Languages: C, C++, Python (for utilities)
• Purpose: Developing the kernel and OS for hardware abstraction and user-space processes.
• Kernel Code Example (C) – Implementing a simple syscall:
#include <stdio.h>
#include <unistd.h>
int main() {
// Example of invoking a custom system call
syscall(0); // System call 0 - usually reserved for read in UNIX-like systems
printf("System call executed\n");
return 0;
}
3. Software Development Kit (SDK)
• Languages: C++, Python (for tooling), Vulkan or DirectX (for graphics APIs)
• Purpose: Provide libraries and tools for developers to create games.
• Example SDK Code (Vulkan API with C++):
#include <vulkan/vulkan.h>
VkInstance instance;
void initVulkan() {
VkApplicationInfo appInfo = {};
appInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;
appInfo.pApplicationName = "GameApp";
appInfo.applicationVersion = VK_MAKE_VERSION(1, 0, 0);
appInfo.pEngineName = "GameEngine";
appInfo.engineVersion = VK_MAKE_VERSION(1, 0, 0);
appInfo.apiVersion = VK_API_VERSION_1_0;
VkInstanceCreateInfo createInfo = {};
createInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
createInfo.pApplicationInfo = &appInfo;
vkCreateInstance(&createInfo, nullptr, &instance);
std::cout << "Vulkan SDK Initialized\n";
}
4. User Interface (UI) Development
• Languages: JavaScript, HTML, CSS (for UI), Python (backend)
• Purpose: Front-end interface design for the user experience and dashboard.
• Example UI Code (HTML/CSS/JavaScript):
<!DOCTYPE html>
<html>
<head>
<title>Console Dashboard</title>
<style>
body { font-family: Arial, sans-serif; background-color: #282c34; color: white; }
.menu { display: flex; justify-content: center; margin-top: 50px; }
.menu button { padding: 15px 30px; margin: 10px; background-color: #61dafb; border: none; cursor: pointer; }
</style>
</head>
<body>
<div class="menu">
<button onclick="startGame()">Start Game</button>
<button onclick="openStore()">Store</button>
</div>
<script>
function startGame() {
alert("Starting Game...");
}
function openStore() {
alert("Opening Store...");
}
</script>
</body>
</html>
5. Digital Store Integration
• Languages: Python (backend), MySQL (database), JavaScript (frontend)
• Purpose: A backend system for purchasing and managing digital game licenses.
• Example Backend Code (Python with MySQL):
import mysql.connector
def connect_db():
db = mysql.connector.connect(
host="localhost",
user="admin",
password="password",
database="game_store"
)
return db
def fetch_games():
db = connect_db()
cursor = db.cursor()
cursor.execute("SELECT * FROM games")
games = cursor.fetchall()
for game in games:
print(f"Game ID: {game[0]}, Name: {game[1]}, Price: {game[2]}")
db.close()
fetch_games()
6. Security Framework Implementation
• Languages: C++, Python, Perl (for system scripts)
• Purpose: Ensure data integrity, authentication, and encryption.
• Example Code (Python – Encrypting User Data):
from cryptography.fernet import Fernet
# Generate a key for encryption
key = Fernet.generate_key()
cipher_suite = Fernet(key)
# Encrypt sensitive user information (e.g., account password)
password = b"SuperSecretPassword"
encrypted_password = cipher_suite.encrypt(password)
print(f"Encrypted Password: {encrypted_password}")
# Decrypting the password
decrypted_password = cipher_suite.decrypt(encrypted_password)
print(f"Decrypted Password: {decrypted_password}")
7. Testing and Quality Assurance
• Languages: Python (for automated tests), Jest (for JavaScript testing)
• Purpose: Unit testing, integration testing, and debugging.
• Example Unit Test (Python using unittest):
import unittest
def add(a, b):
return a + b
class TestGameFramework(unittest.TestCase):
def test_add(self):
self.assertEqual(add(10, 20), 30)
if __name__ == '__main__':
unittest.main()
8. Order of Implementation
• Phase 1: Focus on core system architecture (low-level C/C++) and OS development.
• Phase 2: Develop SDK and start building the basic framework for UI and input management.
• Phase 3: Work on backend systems like the digital store and integrate with front-end UI.
• Phase 4: Begin rigorous testing and debugging using automated test suites.
This comprehensive approach gives you a detailed idea of how each component can be built using a combination of these languages and technologies. Each section is modular, allowing teams to work on different aspects of the console simultaneously.
[Pixel Art/Sprites/Buildinodels/VictoriaSecretPixelArtKit #Playstation7 #DearDearestBrands]


#victoriasecretrunway#runwaybattle#victoria secret fashion#victoria secert model#victoriasecret#victoria secret#VictoriaSecretRunwayBattle#capcom victoriasecret#capcom videogames#playstation7#ps7#deardearestbrands#capcom#digitalconsole#python#script#rawscript#raw code#framework#VictoriaSecretVideoGame#deardearestbrandswordpress
2 notes
·
View notes
Text
In my previous post, I talked about a MSVC specific feature where one struct definition could be imported into another struct simply by declaring the imported struct in the other struct.
I discovered this behavior on MSVC because I am working on a way that is user-friendly to code in a more object oriented pattern in C.
I was thinking about class inheritance and how you can access directly to all the super class' members in C++ and I thought that maybe if I was to import a struct into another one I'd get a similar result in C. On Visual Studio it compiles just fine, but the moment you build with a other compiler, it just doesn't work; the compiler doesn't find the members imported from another struct.
I think it's a nice feature to have in places where you want to take a more object oriented approch but want to keep the freedom C gives you.
My approch to OOP in C is to split functionality and state. In the header file, the implementation struct is the struct containing the function pointers the user is expected to use, while the object struct is the states and data the object will hold. Exemple of adder.h:
typedef struct Adder {
int a, b;
} Adder;
const struct IAdder {
void(*ctor)(Adder* this, int a, int b);
int(*result)(Adder* this);
} IAdder;
There should be only one implementation struct per "class" as this is the only instance that should contain the function pointers for class Adder. It should not be modified at anytime during runtime, and so the unique instance is const. Exemple of adder.c:
#include "adder.h"
static void ctor(Adder* this, int a, int b) {
this->a = a;
this->b = b;
}
static int result(Adder* this) {
return this->a + this->b;
}
//We define the unique const instance
//of the implementation struct:
extern const struct IAdder IAdder = {
.ctor = ctor,
.result = result
};
And to use our adder class in main.c:
#include "adder.h"
#include <stdio.h>
int main(int argc, char** argv) {
Adder a = {0};
IAdder.ctor(&a, 3, 5);
int result = IAdder.result(&a);
printf("%i", result);
return 0;
}
9 notes
·
View notes
Text
rooted your squares

I am not sorry
they should make a Lego soulslike
13K notes
·
View notes
Text
C Basics
I'm bored
C-code Basics
Just the basics of C
Every command ends with semi-colon => ;
Starting point of the program
int main() { }
int main(void) {}
Ending the program
return 0; }
Libraries
#include <library>
stdlib.h = standard library
stdio.h = input/output library
math.h = for maths
array.h = you won't need here, but it's good to know that it exists
print word
printf("enter letters here\n");
\n = new line
user input (number)
float = ex. 23.455
float n;
scanf("%f", &n);
int = ex. 23
int n;
scanf("%i", &n);
char = symbols, letters
char n;
scanf("%c", &n); (only one letter input!)
char = %c
int = %i, %d
float = %f
|| = or
&& = and
Loops
do... while
do {code block} while (condition)
while
while( condition) {code block}
for
for( start point; end point; counter) {code block}
example
do... while
do {
printf("do you want to repeat this block?\n");
scanf("%c" &n);
} while( n = 'y' || n = 'Y');
while
while(n<12){
printf("Please enter your number\n");
scanf("%i", &n);}
for
(i++ = i+1)
for(int i=0; i<n; i++) { printf("my number is %i", i); }
if
if( condition) {block}
else if(condition 2) {block 2}
else {block 3}
ex.
if(n < 0) { printf("%f is <0", n); }
else if( n >0) {printf("%f is >0",n); }
else {printf("%f = 0",n); }
Program Example
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int age;
float number, favnumb;
char letter;
do {
printf("Please enter your age");
scanf("%i",&age);
while(age <0) {
printf("\nError age must be bigger or equal to 0\n please enter age");
scanf("%i",&age); }
printf("\nwhat is your favourite number?\n");
scanf("%f", &favnumb);
printf("\n do you want to repeat the process?");
scanf("%c", &letter);
if(letter == 'y') {
printf("let's start again); }
else if(letter =='Y'){
printf("alright, let's start again); }
else{
do {
printf("please enter y or n");
scanf("%c"&letter);
} while(letter != 'y' || letter != 'Y')
} while (letter == 'y' || letter == 'Y')
printf("Goodbye");
return 0; }
Sorry if there are any typos or stuff
Sorry it looks ugly too :(
4 notes
·
View notes
Text
CS6747 Lab #1 + Extra Credit - Intro to GHIDRA Solved
Get your feet wet in GHIDRA or maybe your eyes 😥 Instructions: Compile the hello world C code we saw in class into an executable Code: #include <stdio.h> int main(int argc, char* argv[]) { if (argc == 2) printf(“Hello %s\n”, argv[1]); return 0; } GCC Command: Load the executable into GHIDRA and locate the main function that you wrote. You may be surprised to see how much additional code is…
0 notes
Text
Good News! The death of Margaret Thatcher is cannon
75 notes
·
View notes