#I'm a complete C++ noob help :(

9 messages · Page 1 of 1 (latest)

night plaza
#

I got a couple of questions i need help with. I'd appreciate any help i can get.

daring flameBOT
#

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.

#

@night plaza

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

#
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!
foggy mirage
#

If we just gave you the answers, you wouldn't learn anything

#

Asking specific questions about something you're confused about will be much better

night plaza
#

does checking on visual studio help fully diagnose the problem?

raw cairn
#

Interesting problems. Presumably someplace there is a description of intended behaviour since one of the questions ask you if the code behaves as intended...

I would create source files for each bit of code and actually try to build and run it. That alone will answer some of the questions. I would then try entering both valid and invalid data to see the behaviour. This should answer more questions. I would specifically try the values on both sides of any limits tested in the code.

For the one that gives you the line number of the error, worst case you could try all of the suggested fixes.

If you have specific questions, they are easier to answer without just providing you the solutions.

night plaza
#

appreciate it