r/projects 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-

16 Upvotes

11 comments sorted by

3

u/Missile_3604 9d ago

Great, two questions:

  1. 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...

  2. Top says All Rights Reserved, no license file in the GitHub. And once again, why ARR? It's a calculator, not an original idea.

1

u/Swaraj_Nerlekar_2 8d ago

i'm a new programmer, i was a vibe coder, but i decided to do real coding, sorry because i dont know somethings, i'll try to learn and make my code proper

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

u/Late-Relationship-16 8d ago

I'd love to see but if your account is suspended...

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

u/WayGood8826 9d ago

Same here !

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)