Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: June 4, 2024, 5:29 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom error message for stack overflow in C++
#21
RE: Custom error message for stack overflow in C++
(August 12, 2021 at 10:34 am)FlatAssembler Wrote: Well, I think I am competent enough to have a job. And even if I am not, I don't think university will make me competent. They did not teach me how to change a lightbulb in our electrical engineering classes, so they also will not teach me useful things in our programming classes.

I think you will struggle to get high pay without a degree, (or even your first job), but who knows.

As a test of this competence, lets see if you can fix your project.  The first thing that I've mentioned is to go through all your methods where const class parameters are being passed by copy, and change them to pass by reference.  Google it if you don't understand it.

If this were going to be part of your "portfolio" for showing people that you can code, it also has a structural problem.  Everything is a .cpp file, instead of the standard .h (or .hpp) file for the class declarations, and .cpp files for the class implementation.  Yes, having two separate files is a pain for maintenance, but there is a reason for it, related to compiling and linking.  You say you have problems with statics?  Yes, they are a pain, but they need to be declared in a .h (or .hpp) file, and actually implemented in the .cpp
Reply



Messages In This Thread
RE: Custom error message for stack overflow in C++ - by HappySkeptic - August 13, 2021 at 10:27 am

Possibly Related Threads...
Thread Author Replies Views Last Post
  What is the most absurd error message a program you have made was outputting? FlatAssembler 38 4191 June 14, 2023 at 8:01 am
Last Post: FlatAssembler
  Error 502 bad gateway for Rational Responders Brian37 13 1412 April 23, 2022 at 4:17 pm
Last Post: BrianSoddingBoru4
  How Do I Send an SMS message From UK mobile to a US one ReptilianPeon 11 1861 July 9, 2018 at 5:17 pm
Last Post: bennyboy
  HELPPPPP Blue screen error just now!!! Edwardo Piet 114 11073 November 10, 2015 at 2:26 am
Last Post: Aractus
  Disk read error. Creed of Heresy 12 4096 July 27, 2012 at 9:19 am
Last Post: Tiberius
  Video Error: Grey circle with a white exclaimation mark inside. Reforged 5 3810 July 5, 2012 at 1:19 am
Last Post: Reforged



Users browsing this thread: 1 Guest(s)