Answers for "how to find first letter of int in cpp"

C++
1

c++ first letter of string

// string::at
#include <iostream>
#include <string>

int main ()
{
  std::string str ("Test string");
  for (unsigned i=0; i<str.length(); ++i)
  {
    std::cout << str.at(i);
  }
  return 0;
}
Posted by: Guest on October-28-2020

Code answers related to "how to find first letter of int in cpp"

Browse Popular Code Answers by Language