#learn c++
Explore tagged Tumblr posts
waterfaii · 1 year ago
Text
CodeBeauty
Switch/case part 2 leap year
#include <iostream> using namespace std; int main(){ //program to determine whether it's a leap year //below is the rule to determine whether the year is leap year or not: year % 4 = = 0 & & year % 100 ! = 0 | | year % = = 0
int year, month; cout << "year, month: " cin >> year >> month;
switch (month) {
case 2: (year%4==0&&year%100!=0||year%==0) ? cout << "21 days month." : cout<< "28 days month."; break;
case 4 : //30 days case 6 : //30 days case 9 : //30 days case 11 : cout << "30 days month."; break;
case 1 : //31 days case 3 : //31 days case 5 : //31 days case 7 : //31 days case 8 : //31 days case 10 : //31 days case 12 : cout << "31 days month.";break;
default : cout << "not valid"; }
}
18 notes · View notes
tpointtechedu · 18 hours ago
Text
Tumblr media
1 note · View note
spoopdeedoop · 6 months ago
Text
Tumblr media
when the duo has bees
2K notes · View notes
fredlikesrats · 1 month ago
Text
"boromir taught eomer how to speak the common tongue" I say. I am booed off the stage. the crowd throws tomatoes. suddenly from somewhere in the audience, someone says, "he's right." it's eomer son of eomund, speaking in the same dialect and tone as boromir of gondor
470 notes · View notes
nevermeyers · 1 year ago
Text
Tumblr media
“When it's your time to go, make sure you're surrounded by others”
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
3K notes · View notes
thingsmaygetalittlecrazy · 4 months ago
Text
Tumblr media
My humble offering to the choccy gods 🫴🙏🙌😉
Clora is hyper-focused on school and Seb is hyper-focused on Clora 😌🫶
I saw a photo of a couple like this and all I could think was how SebClora coded it was LOOOL 😆 and honestly this piece may not be my fav thing but I learned so much while I made it and im just glad I didn't scrap it during any of my frustrating moments 🫶💖
I HOPE YOU LIKE IT @choccy-milky 🫶🫶🫶
(Just ignore all the sloppiness and errors I'll do better next time, I didn't even know what clipping layers WERE when I made majority of this 😅)
518 notes · View notes
archangeldyke-all · 4 months ago
Note
ANGEEEEEEL DO A LITTLE FUCKER AND ISHA FIC AND MY LIFE IS YOURS 🫵🫵🫵
okay okay okay long awaited but let's do it finally ehheehehe
as always with these fics, don't ask me the logistics of how the pregnancy happened. it's yuri magic. have some fun.
men and minors dni
jinx is twenty when she decides to go to college. after a few years of taking care of herself-- through therapy, moving in with you and sevika, isha's good influence, and vi and ekko's support-- jinx finally felt ready to look to her future.
she got into a good school in piltover; full scholarship, because she's a fucking genius.
you don't worry about the workload overwhelming her, though she's decided to enroll in a dual degree program, studying chemistry and engineering at the same time.
you don't worry that her demons will catch up to her; she'll be living with cait and vi, and she'll be within walking distance of her therapist. plus, she's done a lot of good work for herself.
the only thing you worry about is isha.
though the girl is older now, around eight years old and much more used to you and sevika than she was when you first met, isha's favorite person in the entire world is still jinx. and the feeling is mutual. so, while jinx will spend her weeks with cait and vi up top, on weekends she'll come back to zaun to catch up with isha.
it's still a rough adjustment.
isha's just... lonely. you miss the giggles that used to fill your home-- isha entertained endlessly by her older sister's shenanigans. and despite all you and sevika have done to keep her occupied-- buying her new games and pets and books-- you can tell that isha's bored all alone.
"what if we had a baby?" sevika asks one night after you've turned off the lights and cuddled into her arms.
"another cat?" you mumble. sevika laughs.
"i was thinking a human baby, but we could get another cat if you want."
you sit up in bed, reaching out to flick a light on and stare down at your wife. "where the fuck is this coming from!?" you squeal.
sevika shrugs. "isha's lonely! we should give her a little sibling."
"wh-- like our own baby?! like one of us gets pregnant!?"
"well unless isha drags home a stray kid i don't see how else we'll get one." sevika chuckles.
you gawk at her. sevika smiles up at you. "s-sevika, we already have two to five children, depending on the day." you say.
sevika snorts. "ekko, cait and vi are ours only in spirit, love, they won't ever need us in the way jinx and isha do." she says. you pout. sevika snorts. "and jinx is all grown up, now." she reminds you.
tears well up in your eyes. "no she's not." you say, your pout worsening. sevika giggles and swipes your tears away.
"look; i know we said no kids when we started dating. but we said a lot of shit back then. remember when we thought we'd go hiking every saturday? we were crazy." sevika says. you giggle. "shit happened between then and now baby. life happened. deaths and marriage and adoptions and moves-- that kinda shit changes people. you changed me. and... we bought this big ass house for our family. might as well fill it up."
"well fuck, sevika, how many babies are you planning on giving me!?" you ask through a sob of happy tears. sevika laughs.
"as many as you'll let me." she says with a shrug.
you go to the doctor to talk about pregnancy the next week, only to find out that you're already a month into your first trimester.
"wh-- i'm-- but--" you sputter.
"she's already pregnant!?" sevika squeals.
the doctor laughs. "it would seem so. good timing."
sevika bursts into laughter and scoops you out of the doctor's paper covered seat, spinning you around her office and sobbing into your shoulder as you blink in shock.
"what the fuck?" you ask. sevika cackles.
on your drive home, you look over at your wife with a suspicious glare. "did you plan this?"
sevika laughs. "you think i'm that diabolical?"
"no, i just-- you decide you want a baby and boom, i'm magically already pregnant?!"
"i can probably smell it on you or somethin'-- my instincts could sense it. like how i can smell when you're ovulating."
you giggle. "that's probably how you knocked me up in the first place."
sevika grins. "fuck yeah it is. i did the math. i think it was the weekend we sent isha up to spend with the girls."
at the mention of your girls it hits you. you're about to have a baby. another one. your own-- one that you know from the first shit it takes.
you burst into tears, and sevika laughs. "there you go, i was waiting for that to happen."
"we're having a baby." you cry, scrambling to grab the hand she reaches across the console. "oh, janna, sev-- i don't know how to change diapers! all our other kids came to us potty trained!"
"i'll change all the diapers in the world, for you, love." sevika promises, kissing your knuckles. you laugh.
"you're such a liar."
isha's one smart little shit. you and sevika decide not to tell her until the second trimester, when it's less likely that you'll miscarry.
she figures it out within a week of you and sevika getting the news.
it could be the way sevika keeps touching your stomach, or the giddy kisses the pair of you keep exchanging when you think isha's not looking-- but something tips her off.
she sits you and sevika down one evening with a frown and her arms folded in front of her chest.
is there a baby in your belly? she signs. you sputter. sevika gasps. isha's suspicious glare melts into an excited smile. is there!? she asks with a gasp.
you burst into laughter and sevika shrugs. "we thought you might wanna be a big sister." isha grins, tears welling up in her eyes as she launches herself at you and sevika, laughing and crying.
i do. isha signs. i'm gonna be the best big sister ever. don't tell jinx. or violet.
you spend your pregnancy being waited on hand and foot by all your girls. vi, cait, and jinx all come to visit once or twice a week-- all three of them enchanted with your swollen stomach and always bringing baby supplies in tow.
isha makes a count-down to your due-date, bedazzles it and hangs it on the fridge so she can keep perfect track of how much longer she has to wait before meeting the baby.
isha's also started to call the baby her baby.
how many more doctors visits do you have before you have my baby? isha signs to you one afternoon as you wait in your doctor's office. you burst into laughter.
"your baby, huh?"
isha nods. i'm her sister! she signs, before gently reaching out and rubbing your stomach.
"what makes you think it's a girl?"
isha shrugs. most of your other babies are girls.
you cackle.
isha must be psychic, because your little girl comes into the world kicking and screaming in the middle of a family potluck.
it's horrible. violet passes out. surprisingly, ekko is the most helpful, giving everyone instructions and calling an ambulance for you while you wail on the living room floor.
isha's watching with a disgusted fascination the entire time, her lips curled in horror and shock, her eyes big and sparkling as she witnesses the miracle of birth.
powder and cait help keep you propped up-- both of them toweling up all your... fluids... while sevika holds your hand and kisses your head.
one baby, a ruined rug, and an ambulance ride to the hospital later, and your family finally gets to see you in better condition, and they get to meet your little girl under better circumstances.
"aweee." your four grown kids coo as they shove into the hospital room.
"hey, no shoving around the baby!" sevika whisper scolds.
isha pushes her way through all her older siblings, crawling up in sevika's lap to look down at her little sister.
she gasps in wonder. she looks like big mama. isha signs.
cait chuckles. "she does."
"what a little fucker, comin' out lookin' like the parent that did nothin..." vi teases. sevika scoffs and you giggle in agreement.
"she really is a little fucker. ruined our dinner." jinx huffs. "i was looking forward to that potroast, y'know."
isha giggles, pinching her fingers together, then flipping off the baby and pointing at her. little fucker.
you all burst into laughter. little fucker's silver eyes pop open, and she bursts into tears.
taglist!
@fyeahnix @lavendersgirl @half-of-a-gay @thesevi0lentdelights @sexysapphicshopowner
@kissyslut @chuucanchuucan @badbye666 @femme-historian @lia-winther
@lavenderbabu @emiliabby @sevikasbeloved @hellorai @my-taintedheart
@glass-apothecary @macaroni676 @artinvain @k3n-dyll @sevsdollette
@ellieslob @xayn-xd @keikuahh @maneskinwh0re @raphaellearp
@iamastar @sevikitty @mascdom @nhaaauyen @annesunshiner
@mirconreadzztuff22 @veoomvroom @lushh-s3vik4s @katyawooga @lesbodietcoke
@strawberrykidneystone @sevikasfan @fict1onallyobsessed @dvrkhcld @sweetybuzz25
@sluttysierraaa @snake-in-a-flower-crown @ruiwonderz @littlemisszaunite @biblicalcrybaby
@blackgaladriel @nightlyconfusion @dancingqu33n17 @losernb
403 notes · View notes
bruciemilf · 1 year ago
Text
Jason’s protectiveness over his dad comes to bite him in the ass when a rumor chain about Red Hood and Bruce Wayne dating spreads like wildfire.
Everyone is disgusted and amused in equal parts
2K notes · View notes
pandadrake · 1 year ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
Shots fired by the Spider-man sequels.
Was ruminating on how Miles and Miguel are technically both 'Spider-man 2' in their respective universes. Got me thinking about the other Spider-successors in the cast, and also what if they all got matching T-shirts or something.
Tumblr media Tumblr media
3K 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; }
1 note · View note
tpointtechedu · 1 month ago
Text
0 notes
blackjackkent · 9 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
Can we say my Harper responsibilities to maintain balance start *tomorrow*? Hm... no.
Bonus:
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
/cc @astreamofstars and @springagainafter, my fellow Jaheira-lovers. <3
675 notes · View notes
sethdomain · 8 months ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
michael: It's so sad y'know... when uncle tommy gonna.... yknow...
puffy who's babysitting michael: what
michael: you know how he keep smoking... cancer...
560 notes · View notes
luppiart · 2 years ago
Text
Tumblr media
Blorbos (in love)
3K notes · View notes
blitzbittz · 21 days ago
Text
Tumblr media Tumblr media
a little lovestruck imp and his witch wife doing normal witch things <3
redraw comm for @/sheepingly on bsky!!! based on this image
190 notes · View notes
lazy30 · 2 months ago
Text
Day 4 : thawing out/beginnings
The first time I met you on that mountain
Tumblr media
Rivals Duo prompt week
261 notes · View notes