Computer Science | Artificial Intelligence | Computational Biology | Chess | Blender
#include <iostream> int main() { std::string name; std::cout << "Enter your name: "; std::getline(std::cin >> std::ws, name); // Displaying the ASCII values of the characters in the name for(int i = 0;i < name.length(); i++){ std::cout << static_cast<int>(name[i]); } std::cout << std::endl; return 0; }