#CppProgramming
Explore tagged Tumblr posts
cplusplus-official · 15 days ago
Text
This month we are coding in lesbian C++
Tumblr media
867 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
agatedragongames · 8 months ago
Text
Coding tutorial: Chain-of-responsibility pattern
A peasant, knight and king walk into a software design tutorial, and are here to teach you the chain-of-responsibility pattern. Learn how to create a chain of handlers which can handle different request types.
Tumblr media
This tutorial shows you how to code the chain-of-responsibility pattern in the Visual Studio development environment, using a console application and the C++ programming language.
The chain-of-responsibility pattern passes on a request to a chain of handlers one at a time. Each handler can handle different requests. So if the first handler can’t handle the request, then it will pass it on to the next handler. Once a request is handled, the chain ends. Since there is no longer a need to pass on the request.
It is also possible that the request doesn’t get handled by any of the handlers. Since each handler can handle 0, 1 or many requests of different types.
See the full tutorial here.
Console output:
Tumblr media
20 notes · View notes
this-creature-is-bored · 6 months ago
Text
i love coding bc i copy every single thing that the guy from "hello world" tutorial does and still somehow my program deletes windows
11 notes · View notes
platypusundercover · 8 months ago
Text
learning programming is just learning something first and then learning that that's not actually how it works later like
18y/o me: learning that the code goes through line by line, one after the other.
25 y/o me: reading about memory ordering in C++ and seeing that the compiler can just decide to move your lines in the order it wants and you have to tell it to not do that.
BITCH WHAT THE FUCK IS THIS
10 notes · View notes
afallenwhogottaraise · 20 days ago
Text
I am on the verge of starting something new and facing my biggest fear; Starting my career and using my studies for me. Cause I shall invest in myself now. I am living in the world of poets, mood boards, lip gloss and self investments, computers, mathematics, music and AIs. I crave this obvious paradox between my heart beating for poems and humanity and love in all kinds and my brain seeking answers, ways, and results as if my life depends on it. I don't care how many followers i might get or how many people will read my texts, i think i like to give my ideas and experiences to whoever needs it. And I recently found the courage to speak up about life. So here it is <3
So as you might not know, I studied literature at school. Which means studying the humanities at elementary levels not just literature. So we can pick majors like Law, sociology, philosophy, literature, psychology and more. But even though I loved this major and i enjoyed everything about it, something in my heart yearned for mathematics, for other kinds of science i loved when i was a kid. I was fascinated with mathematics and astrology, to learn English and challenge my brain. I wanted so badly to be a writer and at the same time i wanted to work for NASA and become an astrologist. (Not an astronaut of course lol). And i think all these childhood Passions and thirst just never left my soul ever.
It's a long story of how a person like me from a whole different world and knowledge is now a computer science student. But I think I loved that crazy Change. And i might write more about my life in the future. But for now, about the current situation:
I am learning programming languages. Started by HTML-CSS many years ago before university. Then I learned more about c++ in university classes. It doesn't mean I know everything but i think i know enough to think about investing in myself. And I also know that I'm weak when it comes to mathematics but oh my God! Each time I study and try to actually learn things I come to the conclusion that I'm not stupid. I just need to study!! I won't know if I can do it unless I actually do it! And then I tried facing my fear; the fear of not being smart enough for this major.
I wanted to work on some random projects and post them on GitHub. Maybe i still haven't because I'm scared it might not be good enough. But then i started to ask myself "really? So you're only going to live in theory? Never trying and failing anything in work? Not daring to teach or help others? How do you know if you're not good enough to help people struggling like you when you're not everything but at least you're something." And so I decided to share myself, my life and struggles somewhere i feel comfortable and I like it here probably because no one is going to read this LOL.
2 notes · View notes
chaeggi · 6 months ago
Text
Tumblr media
Coding in CPP aesthetics lol
I can’t focus on shit today, so time to shitpost on tumblr 🫠
6 notes · View notes
grid417 · 8 months ago
Text
LeetCode Exercise Compilation
2 notes · View notes
mimimicpp · 1 year ago
Text
Hi all.
Today I want to share the result of many days of work.
I finished making a character input field for my application. And although some text editing capabilities are not available, the required minimum is present.
The following text editing options are currently available:
Typing.
Deleting characters using the backspace key.
Moving the carriage between characters.
Selecting characters using the Shift key.
Copying, cutting, pasting characters using the keys Control + C, Control + X and Control + V. Using the clipboard.
The next thing I want to do is read some books about C++. And then continue working on the project.
3 notes · View notes
stalkingmyfriends · 1 year ago
Text
Fun spike in motivation, gonna go learn literally an entire programming language, brb
3 notes · View notes
david-goldrock · 10 months ago
Text
My biggest argument against god's existence is that cpp exists
7 notes · View notes
agatedragongames · 9 months ago
Text
Object pool pattern console application tutorial
Learn how to code the object pool pattern by managing a pool of books in a library. Borrow and return books to the pool in this console application tutorial using C++ and Visual Studio.
Tumblr media
In the last tutorial you learned how to code a pool of bullets.
In this tutorial you will learn how to manage a pool of books. The tutorial is written in the C++ programming language and uses the Visual Studio development environment.
To follow along to this tutorial, you can either just read it and apply the knowledge to your programming language. Or you can use Visual Studio, by creating a solution, then create a project with a console application. Then run the project to see the output in the console window.
Walkthrough and full code example on the blog:
11 notes · View notes
skelleton-bullfrog · 2 years ago
Text
why is adding a library to c++ so hard and what are github workflows why is this so complicated I just wanna start coding
10 notes · View notes
waterfaii · 1 year ago
Text
CodeBeauty
POINTERS introduction
#include <iostream> using namespace std; int main(){ /* int n = 5; cout << n << endl; output: 5 */
// is for a comment line and /**/ is for multiple line comments //I make it like this so you can paste it immediately into a compiler //variable - &address - *pointers. //START //just like variable, a pointer is a container as well, storing an address (a memory location) //n is a variable meaning that it is a container storing certain value //because it's a container, it has it's address inside the memory, a physical location //in order to check the location / which address :
/* int n = 5; cout << &n << endl; output: 006FFD64 */
//because it's not always fun to remember long address numbers, so we give them names - variables. we create a pointer to name an address and easily access it.
//POINTERS //how to create a pointer holding address of our n variable:
int n = 5; cout << &n << endl;int* ptr = &n; cout << ptr <<endl; //in order to indicate that you're creating a pointer, use * star (int*) //then give it a random name (ptr) //assign it (to ptr) the address of our n variable which is = &n (= assign)(& address)(n variable) cout << *ptr << endl; // a star * before the pointer's name will only reference the pointer and then find the VALUE of the ADDRESS //which is our original variable n //basically we're asking for the value 5, not the address 006FFD64 //CHANGE THE VALUE (5) stored in the pointer ptr address: *ptr = 10 ; //a star * means access the memory location and (=)assign a NEW (10) value //let's check if it's now 10 instead of 5 cout << *ptr <<endl; cout << n ; //both *ptr and n now show 10
//NOTES //pointer has to be of the SAME TYPE as the variable it is pointing to //int pointer to int variable, not int to float //char pointer to char variable, bool pointer to a bool variable, etc //you can't assign a value to a pointer, it has to point to an address //first create a (example) variable to store that variable's & address to the pointer //pointers are problem solvers and not the casual way it's used in these examples system("pause>0"); return 0; }
3 notes · View notes
maxacoda · 2 years ago
Text
Entry one: A refreashers in code
Hello I am Maxa Coda,
This is a journal of my progress relearning to code. Today I started from scratch learning C++. Thought I have do coding with C++ before and even made some applications with it. However afer yonks of not pratice and kinda forgetting some thew stuff I originally learnt I thought it would be a good idea to have a refeasher.
So I made so very basic console apps even with some user inputs.
Tumblr media Tumblr media Tumblr media
So why I'm doing this? I want to work towards making my own simple game/application and not only upskill but also improve my current skillset.
Do I have a plan/project in mind? I do want to make a game, got a 2D side scroller in mind however one step at a time. I might do a few non game projects first. Will update as we go.
Signing off,
Maxa Coda
4 notes · View notes
tpointtechedu · 4 days ago
Text
0 notes