no matching function for call to `getline(std::string&, char&)'
Why is this error occuring?
HELP ME SOLVE THIS My Aim is to copy each character or integer to an array
A.S.A.P
MY PROGRAM:-
#include <fstream>
#include <iostream>
#include<conio.h>
#include<string.h>
using namespace std;
getline(line,a[i]); What are you doing here?
If you want to copy content of line into a, you should use c-string manipulation functions: strncpy(a, line.c_str(), 49);