¡@

Home 

c++ Programming Glossary: coding

#pragma once vs include guards?

http://stackoverflow.com/questions/1143936/pragma-once-vs-include-guards

if you needed to change in the include name anyways. c coding style share improve this question I don't think it will..

What open source C++ static analysis tools are available? [closed]

http://stackoverflow.com/questions/141498/what-open-source-c-static-analysis-tools-are-available

A free tool to check C C source code against a set of coding standards http spinroot.com static Choosing a static code analysis.. static Choosing a static code analysis tool c coding style static analysis share improve this question Oink is..

How to check for equals? (0 == i) or (i == 0) [closed]

http://stackoverflow.com/questions/148298/how-to-check-for-equals-0-i-or-i-0

would never recommend the above. Any second opinions c c coding style share improve this question I prefer the second one..

Why use pointers? [closed]

http://stackoverflow.com/questions/162941/why-use-pointers

but I've just started with some basic C programming after coding a few projects with high level languages. Basically I have three..

C++: “std::endl” vs “\n”

http://stackoverflow.com/questions/213907/c-stdendl-vs-n

to prefer one over the other or is it just a matter of coding style c coding style iostream c faq share improve this question.. over the other or is it just a matter of coding style c coding style iostream c faq share improve this question The varying..

C++ cast syntax styles

http://stackoverflow.com/questions/32168/c-cast-syntax-styles

insists on using constructor syntax. What do you think c coding style casting share improve this question It's best practice..

When to pass by reference and when to pass by pointer in C++?

http://stackoverflow.com/questions/3613065/when-to-pass-by-reference-and-when-to-pass-by-pointer-in-c

unless in case of a string literal it already is. Some coding standards say that nothing should ever be passed by non const..

Is it safe to delete a NULL pointer?

http://stackoverflow.com/questions/4190703/is-it-safe-to-delete-a-null-pointer

Is it safe to delete a NULL pointer And is it a good coding style c pointers delete null share improve this question..

Pretty-print C++ STL containers

http://stackoverflow.com/questions/4850473/pretty-print-c-stl-containers

quick container printing facilities that require zero coding on your part. It is not an all purpose formatting library but..

WChars, Encodings, Standards and Portability

http://stackoverflow.com/questions/6300804/wchars-encodings-standards-and-portability

Encodings Standards and Portability The following may not qualify as.. mbsrtowcs wcsrtombs The C standard says nothing about encodings in fact it is entirely agnostic to any text or encoding properties... encodings in fact it is entirely agnostic to any text or encoding properties. It only says your entry point is main int char you..

Why artificially limit your code to C? [closed]

http://stackoverflow.com/questions/649789/why-artificially-limit-your-code-to-c

which case it would compile in C but be shunned by most C coding standards . They are not the same language and if you have an..

Difference between try-catch syntax for function

http://stackoverflow.com/questions/6756931/difference-between-try-catch-syntax-for-function

any technical difference between these syntax apart from coding style Is one of the syntax superior to other by any aspect ..

casting unused return values to void

http://stackoverflow.com/questions/689677/casting-unused-return-values-to-void

feels like overkill here. Finally if you're reviewing a coding standard or writing one then it's also a good idea to explicitly..

Is pass-by-value a reasonable default in C++11?

http://stackoverflow.com/questions/7592630/is-pass-by-value-a-reasonable-default-in-c11

about for custom objects What's the new best practice c coding style c 11 share improve this question It's a reasonable..

Is #pragma once a safe include guard?

http://stackoverflow.com/questions/787533/is-pragma-once-a-safe-include-guard

A free tool to check C/C++ source code against a set of coding standards? [closed]

http://stackoverflow.com/questions/93260/a-free-tool-to-check-c-c-source-code-against-a-set-of-coding-standards

free tool to check C C source code against a set of coding standards closed It looks quite easy to find such a tool for.. static code analyzer I only would like to check against coding standards like variable naming capitalization spacing identation.. spacing identation bracket placement and so on. c c coding style share improve this question The only tool I know is..

Is it possible to forbid deriving from a class at compile time?

http://stackoverflow.com/questions/1000908/is-it-possible-to-forbid-deriving-from-a-class-at-compile-time

I have a value class according to the description in C Coding Standards Item 32. In short that means it provides value semantics..

Coding C++ without headers, best practices?

http://stackoverflow.com/questions/1001639/coding-c-without-headers-best-practices

C without headers best practices When i first learned c I had..

Class design vs. IDE: Are nonmember nonfriend functions really worth it?

http://stackoverflow.com/questions/135634/class-design-vs-ide-are-nonmember-nonfriend-functions-really-worth-it

really worth it In the otherwise excellent book C Coding Standards Item 44 titled Prefer writing nonmember nonfriend..

Existing Standard Style and Coding standard documents

http://stackoverflow.com/questions/145570/existing-standard-style-and-coding-standard-documents

Standard Style and Coding standard documents The following have been proposed for an.. following have been proposed for an upcoming C project. C Coding Standards by Sutter and Alexandrescu JSF Air Vehicle C coding..

When should functions be member functions?

http://stackoverflow.com/questions/1638394/when-should-functions-be-member-functions

functions to member functions and Sutter Alexandrescu's C Coding Standards 44 Prefer writing nonmember nonfriend functions ...

Difference between [square brackets] and *asterisk

http://stackoverflow.com/questions/1790704/difference-between-square-brackets-and-asterisk

sizeof char void test2 char p assert sizeof p sizeof char Coding style for passing to functions It really doesn't matter which..

catch exception by pointer in C++

http://stackoverflow.com/questions/2023032/catch-exception-by-pointer-in-c

Alexei Alexandrescu explain that really well in their C Coding Standards book which I paraphrased. See C Coding Standards Throw.. their C Coding Standards book which I paraphrased. See C Coding Standards Throw by Value Catch by Reference . share improve..

Coding Practices which enable the compiler/optimizer to make a faster program

http://stackoverflow.com/questions/2074099/coding-practices-which-enable-the-compiler-optimizer-to-make-a-faster-program

Practices which enable the compiler optimizer to make a faster..

Fastest cross-platform A* implementation?

http://stackoverflow.com/questions/2107601/fastest-cross-platform-a-implementation

roll my own A Joel on Software Not Invented Here Syndrome Coding Horror Don't Reinvent the Wheel Overcoming the Not Invented..

C++ Error Handling — Good Sources of Example Code?

http://stackoverflow.com/questions/231128/c-error-handling-good-sources-of-example-code

question Herb Sutter's and Andrei Alexandrescu's book C Coding Standards comes with a whole chapter on Error Handling and Exceptions..

Open source examples of well designed applications [closed]

http://stackoverflow.com/questions/234276/open-source-examples-of-well-designed-applications

in the world. Herb Sutter and Andrei Alexandrescu C Coding Standards Item 55 Familiarize yourself with Boost. Scott Meyers..

Links to official style guides

http://stackoverflow.com/questions/2434213/links-to-official-style-guides

c coding style share improve this question Not a Coding Guideline per se but I find this mighty useful Bjarne Stroustrup's..

What are your favorite C++ Coding Style idioms [closed]

http://stackoverflow.com/questions/276173/what-are-your-favorite-c-coding-style-idioms

are your favorite C Coding Style idioms closed What are your favorite C coding style idioms..

How to learn proper C++? [closed]

http://stackoverflow.com/questions/2963019/how-to-learn-proper-c

Effective C More Effective C Effective STL A book C Coding Standards by Herb Sutter also comes recommended with a reasonable..

What C++ pitfalls should I avoid? [closed]

http://stackoverflow.com/questions/30373/what-c-pitfalls-should-i-avoid

Effective C Scott Meyers More Effective C Scott Meyers C Coding Standards Sutter Alexandrescu C FAQs Cline Reading these books..

What is the copy-and-swap idiom?

http://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom

where it was previously mentioned What are your favorite C Coding Style idioms Copy swap Copy constructor and operator overload..

Passing Variable Number of Arguments with different type - C++

http://stackoverflow.com/questions/3555583/passing-variable-number-of-arguments-with-different-type-c

at runtime . In Bjarne Stroustrup C In Depth Series C Coding Standards 101 Rules Guidelines And Best Practices by Herb Sutter..