I just wanted to share the humour but everyone is attacking me, I thought this a fun group but just miserable people spreading misery to others☹. I am just a beginner, I am learning C++ from "Bro code" YouTube channel. ( I gonna quit reddit just as I quit Tiktok.)
Not only that. The current version actually has a bug. If they pass the value 2147483647, it will enter an infinite loop because incrementing i will overflow to -2147483648. The loop condition will then never be met. Using i < time instead would fix this.
We have all been there, now you know how to do it right and there is also nothing wrong with doing it your way, since that makes it a bit less confusing, but as mentioned if you want to use a loop to iterate through an array or vector you have to start with i = 0 because the first element in an array has the index 0
I get it is funny but sorry is just lazy and Easy said, regardless of how often. It doesn't acknowledge any mistake, doesn't vakidste the feeling of the other person and doesn't provide a outlook how the person wants to make sure it doesn't happen again.
C++ users obviously. And I'd definitely argue that << is vastly superior to printf, as you can define arbitrary formatters and streams. Both scanf and >> should never be used outside toy examples though. Real parsing is never that easy.
63
u/Educational_Elk210 Oct 23 '26
I just wanted to share the humour but everyone is attacking me, I thought this a fun group but just miserable people spreading misery to others☹. I am just a beginner, I am learning C++ from "Bro code" YouTube channel. ( I gonna quit reddit just as I quit Tiktok.)
164
u/soundwave_sc Oct 23 '26
Bro, just compile it, give it to her on a USB and flowers.
48
u/Infinite_Rub3674 Oct 23 '26
i = 1; i <= time 🥀
12
u/Single-Virus4935 Oct 23 '26
I get it is funny but sorry is just lazy and Easy said, regardless of how often. It doesn't acknowledge any mistake, doesn't vakidste the feeling of the other person and doesn't provide a outlook how the person wants to make sure it doesn't happen again.
8
u/Pizza_Secretary9621 Oct 23 '26
Give her flowers and C-hocolate
3
u/D_ATX Oct 24 '26
while (1) std::cout << "sorry ";
Edit: sorry
2
u/AdBrave2400 Oct 23 '26
Uh who doesnt just use the printf and scanf except some cases with better string handling
2
u/Otherwise_Rain_4879 Oct 23 '26
What is wrong with the text? Is this fuckin AI?
2
u/Distinct_Lion7157 Oct 25 '26
i love python
print("sorry\n"*int(input("How many time you want me to say sorry?: ")))
2
u/dankshot35 Oct 23 '26
hilarious, i can’t stop laughing
1
u/Im2bored17 Oct 23 '26
Can tell this app wasn't vibe coded because it lacks a 10-line comment describing the function
1
u/Pinkishu Oct 23 '26
What's this? INTERCAL?
1
u/suspiciousvine Oct 23 '26
where is input validation?
1
u/CompetitionLazy9236 Oct 23 '26
Should have written it in brainf**k
1
u/a3th3rus Oct 24 '26
Inverse of Control 😂
1
u/ahmed20gh Oct 24 '26
Golden
1
u/Random_Dancer007 Oct 24 '26
Use the namespace std man, so you dont have to add std:: so often
1
u/8Erigon Oct 24 '26
You should flush the cout (or use endl) Otherwise it may not but wait for further text (not sure how it works and it may even still work)
1
u/yuehuang Oct 25 '26
She turned you into a LLM.
1
u/DoctorSalt Oct 27 '26
I find it annoying they dont have i = 0; i < 1000; i++
1
u/fearfulEntity Oct 27 '26
I'll type "erm"
1
u/Interesting_Buy_3969 Oct 28 '26
at this point just
std::terminate-1
u/partytoni1 Oct 23 '26
eww c++
0
u/dashingThroughSnow12 Oct 23 '26
i + 1
0
u/FewEquipment9771 Oct 23 '26
I'd block a cpp user
-3
u/Ill-Education-169 Oct 23 '26
Ngl texting this is just cringy
1
u/Antagonin Oct 25 '26
You can cause UB, if you say "fuck you" instead.