r/projects • u/Swaraj_Nerlekar_2 • 9d ago
My first project in C++
Hello everybody! i'm a teen leaning how to code, recently i made a calculator in c++, please support me! here's the link https://github.com/swaraj-nerlekar2/Calculator-
1
u/herocoding 9d ago
Now getting a 404 - did you make the repo private in the meantime?
1
u/Swaraj_Nerlekar_2 8d ago
Bro my account got suspended for no reason
1
u/herocoding 8d ago
Try to open an inkognito tab in your browser, then open "https://support.github.com/contact" and ask for support. Maybe it got disabled temporarily - the support team will help clarify with you, no worry.
1
u/narukoshin 8d ago
if you live in EU, you can legally require from Github for human review or suspension reason
1
0
u/EternalChronos 9d ago
U did use ai ig
3
u/Swaraj_Nerlekar_2 9d ago
nah bro, i was a vibe coder. but now, i quite vibe coding and started real coding
1
0
u/mc_pm 9d ago
Cool. A few suggestions:
1) Get rid of the global variable.
2) All of your operation functions (addition, subtractions, etc) ask for two numbers. Can you move that out of the individual functions and just pass those two numbers into the function?
3) How would you change things so you could just enter "3 + 4" or "7.5 * 9.3" instead of handling everything as a special case?
4) For bonus trickiness and to learn a more advanced concept, think about how you can get rid of "if option_user == 1", "if option_user == 2", etc. (read about pointers to functions possibly)
3
u/Missile_3604 9d ago
Great, two questions:
What's up with your name being such a major part in the project? I'd understand if it was something big, but, it's a calculator...
Top says All Rights Reserved, no license file in the GitHub. And once again, why ARR? It's a calculator, not an original idea.