Filling an Array : char array string « String « C++
- C++
- String
- char array 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;
}
Related examples in the same category