Witam :) Pisząc menu gry tekstowej napotkałem error przy cin.get()
Log : error: no matching function for call to 'std::basic_istream<char>::get(std::string&, int)'|
a to mój fragment kodu :
#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <time.h>
#include <stdlib.h>
#include <cstdio>
#include <conio.h>
#include <string>
using namespace std;
int main()
{//////menu
int wybor1, wybor2, wybor3, wybor4, wybor5, wybor6;
char wybor;
string nick;
cout << "podaj nick\n" << endl;
cin.get(nick,20);
cout<< "witaj: " << nick <<" wybierz opcje i rozpocznij przygode !\n";
Proszę o pomoc oraz o wyjaśnienie problemu :)