y += d;
I would use +=
operator instead of named functions.
More Related Contents:
- Read whole ASCII file into C++ std::string [duplicate]
- How do I read an entire file into a std::string in C++?
- How can I convert a std::string to int?
- Legality of COW std::string implementation in C++11
- C++ convert string to hexadecimal and vice versa
- printf with std::string?
- How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
- Difference between string and char[] types in C++
- Does std::string have a null terminator?
- how to check if given c++ string or char* contains only digits?
- How do I check if a C++ std::string starts with a certain string, and convert a substring to an int?
- Why I cannot cout a string?
- What exactly is the L prefix in C++?
- Convert wstring to string encoded in UTF-8
- reading a line from ifstream into a string variable
- Modifying a char *const string
- Custom manipulator for C++ iostream
- Why is there no support for concatenating std::string and std::string_view?
- What encoding does std::string.c_str() use?
- Convert between string, u16string & u32string
- how to check string start in C++
- Padding stl strings in C++
- Align cout format as table’s columns
- How to compare strings
- C++ Extract number from the middle of a string
- Parse string containing numbers into integer array
- C++ Passing std::string by reference to function in dll
- Concatenate compile-time strings in a template at compile time?
- C++ most efficient way to convert string to int (faster than atoi)
- How do I include the string header?