#Member Operators, Helper functions

1 messages · Page 1 of 1 (latest)

desert arrow
worldly zealotBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

worldly zealotBOT
#
How to Ask a Programming Question

Anyone can ask a question in our programming channels. Following the guide Writing The Perfect Question is recommended.

What to Post

State your problem clearly and provide all necessary details:

  • the relevant portion of your code, or all of it
  • the expected output
  • the actual output (or the full error)
    :trophy: Gold Standard: Minimal Reproducible Example
Where to Post

Provide the relevant code in the message, and format it nicely with a code block*. If it's too much for one message, you can upload it:

  • Compiler Explorer for most C and C++ snippets
  • OnlineGDB for interaction, debugging
    :no_entry: Do not post screenshots, let alone photos of your screen!
paper heron
#

I’m on my phone and can’t see the cpp files. So you might have asked the right way now that I’m looking at the files names

desert arrow
#

ok in my .cpp file is the issue

#

my output doesn't match the output i'm supposed to have for some reason

dapper pond
#

Did you debug?

desert arrow
#

yeah

#

I tried

dapper pond
#

So what break points did you set? What info did you get?

desert arrow
#

okay what info was given was void Account::setEmpty(), Account::Account(), Account::Account(int number, double balance ), std::ostream& Account::display() const in the cpp file

#

the main file was already was done

#

and I did the .h file

#

the rest I did

dapper pond
#

So no debugging

desert arrow
#

I don't know how to debug that well

paper heron
#

Are you on Visual Studio, Visual Studio Code, or something else?

#

No matter what it is, if you look up debugger along with what you use online you'll get information on how to use the debugger

desert arrow
#

I'm on vs code

#

ok thanks

worldly zealotBOT
#

@desert arrow Has your question been resolved? If so, type !solved :)

desert arrow
#

!solved