New answers tagged c++11
0
votes
Modify a string by identifying a substring, and replace it and the characters following it with a newly computed substring
Create a function that does the replacing
It is good practice to create a function for what you are doing. A function will have a name that describes what it is doing, and it clearly defines the input ...
2
votes
Accepted
Connect Four in C++
Avoid macros whenever possible
As marcinj already mentioned in the comments, you can replace the macro at() with a regular function. Macros are problematic in many ...
Top 50 recent answers are included
Related Tags
c++11 × 1721c++ × 1706
performance × 141
multithreading × 135
algorithm × 101
template × 100
pointers × 95
beginner × 82
strings × 73
template-meta-programming × 65
programming-challenge × 64
linked-list × 62
reinventing-the-wheel × 62
c++14 × 61
memory-management × 58
object-oriented × 55
vectors × 50
game × 48
tree × 44
design-patterns × 43
queue × 39
boost × 39
graph × 37
iterator × 34
sorting × 32