How do I post a question about code that doesn work correctly?
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
- How do I know if the code being taken correctly by the reader while programming the Omni reader? What else do I need to know when programming the reader through keyboard entry?
- If a provider enters the HCPCS Level I, II or III code, units and/or NDC correctly, but does not enter the unit of measurement correctly, will that line item be denied?
- Why doesn Remark Office OMR recognize my Code 39 barcode correctly?