Mega Code Archive
Use the generic rotate algorithm
#include
#include
#include
#include
#include
using namespace std;
int main()
{
string s("Software Engineering ");
vector vector1(s.begin(), s.end());
// Rotate the vector so that "Engineering " comes first:
rotate(vector1.begin(), vector1.begin() + 9,vector1.end());
for(int i=0;i