I think it's okay now.
#include <iostream>
#include <string>
#include <cstring>
#include "../Headers/golf.h"
int main()
Type: Posts; User: thames
I think it's okay now.
#include <iostream>
#include <string>
#include <cstring>
#include "../Headers/golf.h"
int main()
I wil try to use cin.ignore(fullname.length(), '\n');
I don't get it. It prevents this:
Please enter a number: 8
Please enter your full name: Enter hobby:
when you only code a cin >> number;
I see. But what about full names? when Stephen Prata showed a code like this one:
#include <iostream>
int main()
{
using namespace std;
int number;
Sorry. I meant: Stephen Prata says in his book you will have buffer problems if you only use general input with cin when it comes to having a number input followed by string input.
so, how...
Not really... Stephen Prata says in his book you will have buffer problems if you only use general input with cin. Particularly for string input after number input, the problem below appears:
...
I'm not using it. :D I forgot to delete the #include <array> directive.
but the problem remains :p
Continuing the golf odyssey, the program is not printing the first letter.
#include <iostream>
#include <string>
#include <cstring>
#include "../Headers/golf.h"
int main()