#code with c program
Explore tagged Tumblr posts
mrmasukmia · 8 months ago
Text
youtube
0 notes
giggibaloggio · 2 years ago
Text
Tumblr media
proud to be learning c++
13K notes · View notes
mordenandmerry · 7 months ago
Text
I distinctly remember ranting on tumblr about a problem in my code like half a year ago and I was frustrated with arrays of strings in c++ and I REMEMBER a furry adding a comment that just said “you could try parsing the string uwu” and I did it and it WORKED and I was so relieved because I had been fighting with it for like a week.
The only problem is I can’t find that post and I think I dreamt it up. I think God came to me in a dream as a furry responding to my tumblr post to help me fix my code. I am going insane why did my brain do this.
822 notes · View notes
systemdeez · 3 months ago
Text
Hey kids! compile and run this on your home computer. Nothing bad will happen. :)
Tumblr media
155 notes · View notes
david-goldrock · 10 months ago
Text
My program crashed for an hour or so and I tried to fix it
I finally fixed it
Twas a fucking compiler command gone bad
My code was good
FUCKKKKKKKKKKK
77 notes · View notes
isat-script-project · 23 days ago
Note
Your amazing work here has inspired me to want to try doing a script project for DQB2 and I was wondering if you had any advice for me?
I'm gonna assume that's some sorta dragon quest game?
Well, ISAT really is a blessing in this regard, because the game is not encrypted at all. Accessing files and all text via rpgmaker MV and VSC is incredibly easy.
okay this got really long i'm putting it under the cut.
But before you get started, there really are some things you need to ask yourself first:
How am I going to get the text from this game?
If your answer is "write it down by hand as I play" then already know that there HAS to be a better way. If you're choosing that method, get yourself emulation, save states, or endless patience, because hooh boy, I've done a little bit of that for a different project (no, I will not elaborate) but save scumming on original hardware to get different dialogue options is agony.
Is there a text dump for your game? Is there a file dump or decomp for your game? Do you have the technical know how to access it? If not, are you confident in your knowledge of the game to accurately identify where all dialogue may occur? If not, are you satisfied missing out on nothing lines and just focusing on the non-optional? Is your game linear enough to not need a closer look at the code to figure out what happens when, as isat does?
2. What's my scope?
Again, do you truly want every line from this game, or just what's "important"? I personally cannot rest until I've exhausted the fucking Menus (which is why there's a script page for those, too) because I'm a completionist with delusions of grandeur, but some people are satisfied transcribing the cutscenes and nothing else (MUCH TO MY ANNOYANCE WHEN I NEED THE OTHER STUFF.... nobody cares about the optional collectible npc dialogue BUT I CARE!!! I CARE!!!!!)
Anyways, what exactly your scope is is gonna significantly influence what your next step looks like.
3. How am I going to present this?
Making the isat script project an individual website mainly came down to how finicky the dialogue in isat is. There's conditionals stacked on conditionals and I wanted a space where I had total control over how to present these factors without influence.
For more linear games, like, say, that time I made all the fewiki scripts for Fire Emblem 6 from chapter 12 onward, it was easy enough to present the scripts on a wiki page just because the game is much more linear, there's less dialogue to begin with, and all conditional text could be nicely divided up into similar groups, like boss dialogue where the condition is just "fight boss with x character".
Tumblr media
isat script project would not exist without my fire emblem fixation, fun fact. other fun facts include that as a child i attempted to novelize Mario Party DS by transcribing all story mode text into a booklet by hand, and I did not finish this for reasons that are hopefully obvious.
This is, as you may figure, way easier to do. There is significantly less burden on you to actually understand how a website works - I cannot stress enough that the current state of the script project is only possible thanks to Gold, and without them, we'd still be at all dialogue being formatted as <p><b>Siffrin:</b> Says some text.</p>
For a lot of older games, you can also find whole game scripts being put up into a single document. Tis common on gamefaqs, I've used those plenty. There I believe you're just working with plain ol txt.
The rule is always though look at examples and if they do something cool figure out whether you can copy it. i did not create the website layout myself, i used a base and fiddled with it for a whole weekend until it stopped exploding.
Again, like, using an existing structure like a wiki or gamefaqs or just google docs or a spreadsheet is a significantly eased burden. One of my favorite things ever is actually a text dump on github, of all places. For this one, the person putting it up chose to leave all text in as close to original state as possible, doing no trimming of things like character emotes and leaving in all original string titles of every line. This is also incredibly useful, even if it is more difficult to use for your average schmoe! (This has fucking saved me doing wiki stuff for engage. engage text dump i ADORE you)
Do you want to be as accurate to the code as possible, or as accurate to the game? Do you have the time, energy, and skills to make the visual presentation nice? Or do you want to keep it rudimentary to streamline your process?
If you ARE doing something like making your own website, it is crucial that you figure out your visuals early, lest you be like us, and be stuck in Reformatting Hell for several months, because someone figured out how to make a thing prettier and nicer to read, and now you need to update the 100+ pages you've already created.
Reformatting code like that takes just as long as making a page in the first place, by the by, because you're just not getting around copy-pasting everything line by agonizing line.
This stuff takes HOURS. If I went at it alone, I doubt I'd have finished by now, or within the next like, two years. This is a really time consuming hobby, and I love doing it a lot, it scratches my exact fixation itch, but if your game is huge, consider seeing if people would be interested in joining you? I will also say being autistic about your game of choice is also a bonus in the sustainability department.
Many a times there were just no updates (as they are now) cuz I am just. Distracted by something else. Like yes on one hand I'm going to uni now and have less time but it's not really less time if I can still put 17hrs into a new video game in three days.
Stuff like this is ALWAYS a long-term project and you WILL need to take time off from it or else you'll start seeing html in your dreams and get burnout.
STREAMLINE YOUR PROCESS!!! FIGURE OUT HOW TO DO THIS WITH AS LITTLE EFFORT AS POSSIBLE!!!! Gold introduced me to Espanso, which is a program that lets you set up keyboard shortcuts to insert phrases, which was a MAAAAAASSIVE time saver in the html department, as it allowed me to just rapid fire paste in all the many html classes we stacked for the presentation of the site. even if you are doing a script on a wiki where everything does look like ['''Siffrin:''' says a thing] you will still be doing yourself a favor if you can shorten that '''Siffrin:''' to just typing :s .
As a side note, I also wanna say like. The popularity of isat script project is a complete outlier. Other game scripts may be used by a maniac like me to overanalyze the plot structure of Sonic 06, but you're very likely not going to see that recognition. I love doing this, because I want these resources to exist for myself. I don't do this for the good of the fandom, but because it is useful to me. I started this because I was writing isat fanfic, and got tired of looking up dialogue on youtube or booting up my own game.
Do I know if anyone found my FE6 scripts useful? No. Do I know if anyone is going through Veyle/Quotes and appreciating that I transcribed all the fucking battle voice clips? No. Do I know if someone appreciates me accurately labelling all voice lines from the ring polishing minigame in engage? Hell no. I don't know, I'm never going to get feedback on that. Those are wiki pages, anyone can edit them, they don't have viewcounts or comments I can look at, and the fandom just isn't as prone to taking screenshots and posting about them line by line as isat.
Isat blew the fuck up on tumblr. I'm not saying you'll get no recognition at all, but if you are relying on external motivators, you are probably going to peter out. There are pages I've worked on for other script things that I've genuienly not touched in two years because I just didn't feel like it, and that's also okay.
TLDR:
Figure out how to get the text you need with the least effort possible (and figure out whether doing that is even possible at all!), figure out what scope you're actually willing to put up with, and present it with the least effort possible, because everything else just isn't sustainable. Streamline streamline streamline. Be prepared to spend hours on this and maybe like find a new favorite podcast to just copy paste text to, because honestly, doing this is also pretty zen.
And most importantly, sparkle on, don't forget to have fun! Even if it seems big and intimidating, you can still make it just a fun side project, and slowly chip away at it over time. Rome wasn't built in a day, and with all the advantages going for isat script project (additional manpower, unencrypted files, easy tools for game examination) it still took over a year to complete.
(loop voice) Don't make the same mistakes I did, okay?
oh, yeah, one last thing, if you're not putting it on a wiki and ARE making your own website, ABSOLUTELY PUT IT ON GITHUB!!!! setting up so any changes to the main branch on github get reflected onto neocities is pretty easy and you only need to do it once, and what this allows is to just have random strangers show up and fix your problems for you. sometimes someone will just show up and fix five bajillion typos and then leave. or they'll stick around and help with more stuff and wowie you have a semblance of a team now.
if you're doing it on a wiki, find like, the wiki discord, if someone is interested in chipping in. if you're doing your own website, put it on github. do it. do it do it do it.
20 notes · View notes
once-was-poison-ivy · 1 month ago
Text
System.out.println("one of the less known side effects of coding in python is that you forget semi colons")
20 notes · View notes
solus-official · 2 months ago
Text
PROGRAMMING QUESTION
hey i got a question about programming languages that i feel like is a very stupid question but i wanna ask it anyway is there a reason besides "easier to learn/more classes available/ect" that most consumer programs/devices/games tend to be written in JS, Python or likewise? Like, I don't know what the actual amounts are for how many things are programmed in what languages, I just feel like most things are programmed in "The Popular Langauges" I feel like I never see a software or device or anything that's just programmed in C (or children) and I've definitely not seen something programmed in Rust in a very long time Maybe i'm just dumb and I don't know how things outside my very limited perspective get coded and I just need a reality check but theoretically nothing is stopping a big company from programming their next touch-screen control panel thing in C, right?
22 notes · View notes
secondwheel · 10 months ago
Text
Tumblr media
Programming is everywhere
65 notes · View notes
computer-nerd-girl · 2 years ago
Text
Tumblr media
484 notes · View notes
moose-mousse · 2 years ago
Text
(Nearly) Never use auto in C++!!!
So I used to be amongst the people who thought "Yeah ok, auto hides the type. But if the type is not really important to understand the code, and was really long and confusing then it is worth it"
Like this: std::vector<std::pair<std::string, Employee>> MyFunction(); To turn it into: auto MyFunction();
And I was wrong. Do NOT use auto to hide that monstrosity. You FIX it. auto hides that awful thing and dumps the problem on the next poor fucker who will use it. ( People writing and using metaprogramming libraries are especially prone to doing this, since their typenames can fill entire screens ).
YOU just looked at YOUR code. Found it confusing... And decided... to HIDE it??? What it is the next person who did NOT write this code going to do when they read this going to do???
No. I beg of you. Use typedef.
You can create aliases of anything and make your code easy to read. And this only "hides" the code as much as auto and you can get the types the alias points to by musing over it. So it is auto... but way better. Because it is a UNIQUE name. Which can DESCRIBE things.
Like, with the horror in the previous example. Let us have a typedef in the .hpp file where "MyFunction" is declared. Now it reads MUCH better:
std::vector<std::pair< Employee_ID, Employee>> MyFunction();
I actually understand what the pair is now! Key value pairs! And screw it. Let us typedef the pair too now that we understand it!
std::vector<Employee_KeyValuePair> MyFunction();
And fuck it. Once more! Typedef the vector too!
Employee_Roster MyFunction();
I will bet most of you reading this only realized what the hell that moster was when you got near the end. BECAUSE THE FIRST THING IS FREAKING UNREADABLE! Fix it. Make your code readable. If you feel the urge to use an auto to hide a typename, it is time to typedef that motherfucker!
227 notes · View notes
akaicodes · 10 months ago
Text
update to my roadmap of learning https://www.tumblr.com/akaicodes/744920785897111552/roadmap-of-learning-curriculum-related-so-far - 4 months later ♡
• C# - spent ~1 year so far practicing, more comfortable, can build whole sites/programs with little help
• HTML & CSS - started ~5 months ago, confident in both, can style a site without help online, still much to learn
• JavaScript + Vue - Axios - can build “full stack” applications where i do both backend & frontend and host online (love JS!!)
• REST - experienced for 5 months! can build my own REST API, use someone elses with axios & test it thoughoutly with Postman (+Javascript code)
• Unit testing & UI testing - learned so many better ways to unit test & UI test more indeph
• Started leaning Git more with commands
• SQL - can manipulate simple databases and more one from scratch
& huge thanks to my sister @niyacodes for being on this journey with me 💓
++++ I went to a 5 hour exam for all these subjects (+- more) and got the highest grade possible 🥹 (i failed my first programming exam in 1st sem!!!!) ((pic is my favorite after study-snack))
Tumblr media
41 notes · View notes
izicodes · 2 years ago
Text
Learning C++ | Log #1
Tumblr media
Friday 20th October 2023
I have been studying C++ for some time now, and I'm really happy with my progress. I really thought it was a super difficult programming language (I am jinxing it right now, aren't I?), but what I mean is that even the beginner stuff would be hard. But it's not!
Two days ago, I stumbled upon a website called Saymor Academy, buried seven pages deep in Google. I decided to check out the CS107: C++ Programming course, and I'm so glad I did! I've been learning so much, and it's been a blast, especially since I'm taking the course along with my friend over on Discord teaching me C++ too.
Learning can be challenging, but it's also incredibly rewarding. Once I master the basics, I'll be able to create all sorts of amazing things. I can't wait!
In the meantime, I'm just enjoying the journey~! So if you're ever thinking about learning C++, I highly recommend checking out Saymor Academy. It's a great resource, and it's a lot of fun!
☆ What I learnt today...
History of C++
Syntax
Comments
Data types
Variables
User Input
Tumblr media
⤷ ♡ my shop ○ my mini website ○ pinned ○ navigation ♡
153 notes · View notes
agent-z-coding · 1 year ago
Text
I HAVE FINALLY SUCCEEDED
Tumblr media Tumblr media
IT WORKS!!! IT WORKS!!!!!
[4, 5, 4.3] -> add BECOMES 13.3!!!!!!!!!!
YOU PEOPLE I HAVE DONE IT
source code will be coming soon (as soon as i get more helper functions working.
For now, PLEASE contribute if you can. Even as little as suggesting some helper functions could help me a ton.
Contribute below:
Open a PR, An issue, Anything, Just mention what the language lacks and you don't even need to implement it yourself, I'll add it to the To-Do list and get working on it ASAP.
Join the discord server, I will be posting updates and asking for suggestions and providing beta builds: https://discord.gg/JxnKn9jd
108 notes · View notes
systemdeez · 8 months ago
Text
Friendship ended with C#, now C++ is my best friend.
69 notes · View notes
castur1 · 2 years ago
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.
241 notes · View notes