C++: First message

#include <iostream>
#include <string>
 
int main()
{
  std::string greeting = "Ifmmp!xpsme\"";
   
  for (std::string::const_iterator i = greeting.begin(); i != greeting.end(); ++i)
       std::cout << static_cast<char>((*i) - 1);
   
  std::cout << std::endl;
  return 0;
}

 Hello,

In this blog, I want to publish interesting information about C++ and related topics (object-oriented programming, generic programming, etc.). The goal is to provide useful and accurate information. Since I am passionate about these topics but far from being an expert, I would appreciate your help in improving the accuracy of each post I write. Your comments and suggestions will be greatly appreciated and will help me enhance the content of this blog day by day.

Welcome, and thank you for reading!

Leave a comment