5 Reusable Code Snippet Topics

Remove Filter
Member Avatar for Lucaci Andrew

Ok, so, this code snippet is a reply to this thread: http://www.daniweb.com/software-development/cpp/threads/425821/prime-number-c From what I understood form the OPs request, is that, he wanted an algorihm which would check for prime numbers in a given range, applying these conditions: a number is to be considered valid if: a. the number …

Member Avatar for RainbowMatrix
0
601
Member Avatar for Lucaci Andrew

Here's some simulation of the basic push_back and pop_back functions from stl vectors, "inspired" by this thread: http://www.daniweb.com/software-development/cpp/threads/427912/question-about-a-simple-vector-class-template

Member Avatar for Rashakil Fol
0
500
Member Avatar for Lucaci Andrew

This is a program which I made back in the beginnings when I was trying to figure out how to work with strings, and how to work with files. This is suppose to format a C++ code, for example if the syntax of an if statement is if (condition) { …

Member Avatar for Lucaci Andrew
0
367
Member Avatar for Lucaci Andrew

Inspired by some C and C++ threads regarding finding a specific pattern in a file.

Member Avatar for TrustyTony
0
319
Member Avatar for Lucaci Andrew