Tumgik
#c programming
castur1 · 7 months
Text
Programming? On my Tumblr?
It's more likely than you think >:3
So anyways here's an early tech demo for a lil project I've been working on. I'm making a game in pure C without any external libraries or game engines or whatever, writing everything from the ground up. Why? To see if I could. And also because I hate myself.
This bad boy's got low-latency audio output with a custom audio mixer and WAV file loading, input handling (keyboard + mouse, no controller support yet), and a basic graphics renderer (with BMP file support), as well as some other fun little features. It's built on the Windows API but all the platform code is isolated so that the game can easily ported. And what grand creation shall I make with this? ...Tetris. I'm planning to make a Tetris clone. Lol.
Oh, and the tetris remix you hear in the background? Wrote that myself. Music was never my strongest subject but I am determined to make everything by myself.
That is all.
232 notes · View notes
a-fox-studies · 4 months
Text
Tumblr media Tumblr media Tumblr media
November 22, 2023 • Wednesday
5 hours of focus today! We're making progress with the syllabus :3 4 days until exams begin. I feel only a little prepared, hopefully I become more confident soon.
🎧 Forever Winter - Taylor Swift
Tumblr media
129 notes · View notes
Text
My gender is a poorly written C program, in which a target 35–60% of the dedicated memory is assigned to femininity, 10–20% to masculinity, and the remaining 20–55% defaults to androgyny.
Its goal is to maintain a state such that femininity is at least the plurality, if not the majority, of the memory space, but occasionally it fails to do that for code reasons? idk I didn't program it and it's not open-source ._.
Observe:
[root@bryn ~ ]$ genderinfo Bryn's Current Gender Composition Femm - 40% [WARN] (LOW) Masc - 15% [ OK ] Andr - 45% [WARN] (HIGH) Closest estimation - enby, femme-leaning [root@bryn ~]$ _
56 notes · View notes
nixcraft · 1 year
Text
Learning C lang for the first time ...
Tumblr media
612 notes · View notes
devdot · 8 months
Text
Tumblr media Tumblr media Tumblr media
Part 0: Why would I ever want to touch C?
171 notes · View notes
cinnamonwolfy · 7 months
Text
dear c programmers, stop making functions have more than 2 underscores in their names. use camel case instead if your name needs more than 2 underscores
if your function prototype has more than 2 underscores, you have a massive skill issue and instantly are a terrible programmer (i don't have an underscore key dingus, learn how to name your darn functions)
edit: okie, im not that angy anymore. i take back that second paragraph (i know one of you got a bit annoyed x3)
111 notes · View notes
blake447 · 7 months
Text
Tumblr media
Getting my arch install looking nice and pretty. Background is a quaternion julia set, and down below we have my dragon curve code that I've been working on. Finally got polybar installed and working, and customized it lightly. Next I'm thinking a compositor so i can have transparent terminals and stuff if I want
70 notes · View notes
fuckmarrykillpolls · 12 days
Text
Tumblr media
35 notes · View notes
not-kronyx · 4 months
Text
first attempt at raytracing didn't quite go as expected
Tumblr media
49 notes · View notes
notsogracefullyput · 2 months
Text
My virus protection software protecting me from my own executables will never fail to annoy/amuse me. Every time I work in c or c++ I have to turn it off bc it eats the compiled files.
I am Not poisoning myself computer, this is On Purpose!
22 notes · View notes
izicodes · 8 months
Text
Zoey's YouTube! 🐝💗
youtube
Just wanted to promote @zoeythebee's videos she's made recently since I have been watching them and enjoying them! They're doing a series on programming a physics engine in the C programming language~!
Now I have zero knowledge of the C language but it's still cool for me to see her trying to code and explain what she's doing! I
If you haven't already, I highly recommend visiting @zoeythebee's profile and diving into their video series! ヽ(‘ ∇‘ )ノ
The video above is episode 1, here are the rest so far:
episode 2
episode 3
Have a nice day! 🐝🙌🏾💗
55 notes · View notes
r4mc0des · 28 days
Text
Tumblr media
recently i've been forcing myself to learn C just for the sake of understanding things on a lower level, instead of only sticking to python's simplicity (and yes i ended up choosing C because assembly terrifies me)
12 notes · View notes
rinidisc · 1 year
Text
Tumblr media
110 notes · View notes
desert-palm · 2 years
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
370 notes · View notes
nixcraft · 1 year
Text
do you agree?
Tumblr media
244 notes · View notes
deepdive002 · 4 months
Text
Code Blog, Project 001 Understanding Unicode
Day 02
Mostly I was setting up my environment today.
I got a very simple c program running on one of my servers when I realized I would need a better way to step through my code.
Tumblr media
The code compiles and runs but more advanced debugging it could be a challenge.
Tumblr media
Brainstorming:
I could get better at using tmux and find a command line debugger.
I could develop my C code in Visual Studio as a C++ project, upload the final files to my server and then figure out any incompatibilities.
I could Google for a C language IDE that can run on Windows.
Today's Path Forward:
I’m going to explore the third option today and see how things go.
I’m trying out a program called CLion
Tumblr media
I got CLion installed, activated the free trial and got it to SSH into my server.
Tumblr media
The current problem I'm stuck on is that I can't get it to read from standard in. I don't know if this feature exists in CLion.
I tried dumping the source file as a text sample into stdin. I did it as a Program argument. This probably isn't the way CLion expects things. When I ran the debugger the code doesn't seem to be reading anything.
Tumblr media
Another issue I'm thinking of is that the debugging features seem to be just a GUI for GDB.
I will probably have to get good with GDB anyway. I may be better off just using a tmux terminal with GDB in one of the panes. I'm not sure which solution (tmux or CLion) to explore.
Tumblr media
I may work on this some more today. I'll see where I'm at tomorrow.
11 notes · View notes