Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I post a question about code that doesn work correctly?

code correctly
0
10 Posted

How do I post a question about code that doesn work correctly?

0

Key guidelines: • Post compile’able code: avoid ellipses, such as void f() { … } • Post complete code: put in all necessary #includes and declarations of needed types and functions • Post minimal code: just enough to demonstrate the problem; skip I/O and calls to libraries if possible • Post one compilation unit: if possible, combine Foo.h into Foo.cpp • Post the tools you used: compiler name, version number, operating system, etc • Post the tool options you used: libraries, exact compiler and linker options, etc • Post the exact messages you received; differentiate between compiler, linker, and runtime messages • Make sure main() has a return type of int, not void! As always, make sure your question isn’t already in the FAQ. Use the subject index to check.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123