Mega Code Archive

 
Categories / C++ / String
 

Filling an Array

#include <iostream> using namespace std; int main(){     char buffer[80] = {'\0'};     std::cout << "Enter the string: ";     std::cin >> buffer;     std::cout << "Here's the buffer: " << buffer << std::endl;     return 0; }