Horje
c++ back() Code Example
back() in c++
// my linkedin : https://www.linkedin.com/in/vaalarivan-prasanna-3a07bb203/
vector<int> vec = {1, 2, 5, 6};
int ele = vec.back();  //ele = 6
//back() method does delete the last element from the vector, it just returns\n
//the last element.
c++ back()
// string::back
#include <iostream>
#include <string>

int main ()
{
  std::string str ("hello world.");
  str.back() = '!';
  std::cout << str << '\n';
  return 0;
}




Cpp

Related
how to use command line arguments with integers in c++ Code Example how to use command line arguments with integers in c++ Code Example
adddynamic ue4 c++ Code Example adddynamic ue4 c++ Code Example
c++ Attribute Parser Code Example c++ Attribute Parser Code Example
data types in c++ Code Example data types in c++ Code Example
c++ pass ofstream as argument Code Example c++ pass ofstream as argument Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9