#c++ pointers
Explore tagged Tumblr posts
Link
https://techbloggerworld.com/2024/05/25/c-pointers/
0 notes
Note
Hi, I was just wondering how you do all your highlights and shading because ur characters always look so shiny! Obviously you don't have to tell me tho, I adore your art.
Hey there! I've done a few tutorials actually if you check my 'tutorial' tag. Some thorough, some quick. I have already mentioned before that I'll do a more deeper explanation on the process a while back and I'm still working on it!! Got at basic outline done but the writing is separated via notes or other apps, just gotta clean and compile :'D
It's text heavy so I'm going to have to cut a lot of pieces out or shorten it, but hoping it gets the point across! Of course it also has a image to go along with so we can work on it together :) Let me finish my current workload and I'll get back to this, sorry for the delay guys u-u
#asks#this is still in the backburner for a while but I have a solid plan on what to tackle#although I think I added too many pointers in one post so I'll have to removed them to not overwhelm people ;c;#yes there's multiple parts to the process#if you've been to my streams#you know the struggle lmao#tutorial
69 notes
·
View notes
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.
#Shoutouts to handmade hero for giving me some pointers#get it?#pointers?#like in c programming?#I'll see myself out#c programming#programming#coding#codeblr#casey muratori#tetris#game development
239 notes
·
View notes
Text
i’m back again asking what nail design to try next :3 poll so that people can vote anon if they want
#thank you báir for the genius idea of snake nails for cny holy shit#i know you were talking about your own nails but i absolutely LOVED the idea#i’m biased towards that one personally like i’m already cooking up little alterations to the design (i think i want to do my pointer and#ring finger as ‘fangs’ but in a similar enough tie in design and pattern wise#and to break up the repeated colour and pattern a little bit)#anywaysss#i liked the feedback last time bc you guys chose different to what i would have and i actually really like how they turned out#so i want to see if you guys will have me doing smth new this time again or not c:#stelle yaps#also should i post my nails here? idk i take photos sometimes but never do anything with them but maybe it’d be fun to see how#my skill develops - like i could do a back log of old ones too#hmmm maybe
17 notes
·
View notes
Text
Currently learning css + html for real this time instead of just tweaking shit I find on the internet and hoping for the best -- y'all why is it built like this
#i don't understand how inheritance works in css and it is currently trying to kill me#you don't UNDERSTAND i am a backend girlie at my core i need pointers to live#c/java/python i miss you every day you were such tender lovers pls take me back i promise to be faithful this time#school talk
6 notes
·
View notes
Text
hmmmm
if
and
then can i
?
8 notes
·
View notes
Text
just python things. this operation to reverse a number:
rev = int(str(num)[::-1])
is faster than this:
while num >= 1: rev = (rev * 10) + (num % 10) num = int(num/10)
for reversing an integer, because why wouldn't it be lmao
yeah let's just cast to string then chop backwards, and cast back to integer then save as a new variable. i suppose mod is a more expensive operation ??
but yeah it's like roughly 4x faster to use string comprehension.
#daemon.md#progblr#python#like uh thanks ig#i mean it's still a whole order of magnitude slower than C#at least than the C version of mult + mod to reverse a number#i'm implementing a C version of the string comp method#which is basically convert int to an array and iterate comparing two pointer values moving in from each end#it feels like it should be slower#especially as it involves realloc() when the array is too smol#would it be faster to allocate half the digits each to two arrays and then compare arr1[i] != arr2[i] ??
103 notes
·
View notes
Text
(Through gritted teeth) All that matters is earning the degree. You just need to pass.
#blogcat: transmissions#college complaints central#BUT HOW DO YOU ALTER THE INSTRUCTION MEMORY USING POINTERS. HOW DO YOU CONVERT FROM BYTES TO WORDS TO ACHIEVE THIS#w hat am I doing with the second ALU input getter when it comes to sw and lw#taking incremental damage trying to percieve the arcane (basic CPU simulation code in C)
4 notes
·
View notes
Note
Did they hack their 3DS if they have one? It's actually really easy to
#c&c asks#cant help but read this like you were dying to give everyone pointers on how to hack their 3ds#actually the type of handheld is not explicitly stated so. its a 3ds if you want
21 notes
·
View notes
Text
What is the difference between malloc() and calloc()? . . . . for more interview questions https://bit.ly/3EteTnZ check the above link
3 notes
·
View notes
Text
27.12.2023: Hans Carl Artmann
#h. c. artmann#wienschrift#letters#fonts#alphabet#typography#breitensee#bradense#ari fink photography#stadtschrift#vienna#wien#aristide#barbara zanotti#ophelia#the daily pointer#27.12.2023
4 notes
·
View notes
Text
Codertober Day 10
I missed writing down the past handful of days because it's been bits and pieces here and there.
But today I finally finished the Javascript roadmap, which took me an embarrassingly long time. Although if I think about it, distilled down it probably took me like 8 hours.
Next im either gonna blast through the Python roadmap or look at the computer science roadmap which goes over algorithms and data structures which is probably the skill I actually need the most work on.
All in all I kinda dislike this learning style so far, which is how I did it in school which was WRITE DOWN EVERYTHING. And then in school I'd use it to pass tests, but my plan was to use it as a reference for actually building some projects.
But I was testing out Javascript modules and there were, like, 3 things I had to stumble my way through because they weren't stated explicitly enough in the material I was reading for me to write them down.
I kinda wanna streamline that stumbling stage and maybe i'll just dive headfirst into a project and google my way to success, which I think would be more fun and make it so I actually learn.
10. What is your programming pet peeve
"One time it took me 2 hours to fix my code, turns out I had just missed a semicolon" read your goddamn motherfucking error messages, if you took two seconds to read past "syntax error" you'd catch it in two seconds.
"Uhn my pointer isn't working???" your compiler told you it's null you never allocated it!
READ YOUR ERROR MESSAGES.
That is all, thank you.
#also “c sucks because pointers are hard and segmentation faults are the devil”#no they arent#and turn on your memory sanitizer#codeblr#codetober#studyblr
4 notes
·
View notes
Photo
> segmentation fault (core dumped)
42K notes
·
View notes
Text
Pointer To Object In C++ is a variable that holds the memory address of an object. This allows for dynamic memory allocation, enabling the creation and manipulation of objects at runtime. Pointers facilitate efficient resource management and provide access to object members and methods through the pointer syntax. Check here to learn more.
0 notes
Text
0 notes
Text
the first rule of using pointers is have fun and be yourself
#been doing some definitly unsafe shit for advent of code#didnt want to do propper bounds checking today so my solution relies on the fact that the data is 140x140 and my matrix is 150x150#yesterday was a little odd aswell cause i was doing like pattern matching without regex#don't think my solution was super unsafe or anything but pointer arithmetic is not something ive done in the past really#tried re-writing it w/ regex (in C) but i discovered the hell that is different regex versions#spent way too long figuring out how regex.h (POSIX regex lib) worked only to discover that POSIX regex is like... not very good...#like posix regex doesnt even have non-capturing groups???#(and regex101.com doesnt support POSIX ere/bre)#ended up writing a pretry swanky solution w/ regex in python and someone in my school's AOC discord put it in a oneliner lol
0 notes