can someone tell me what i am doing wrong
#include<iostream>
using namespace std;

void char play_again(char letter, char 'y', char 'n');
void char play_again( char letter, char 'y', char 'n')
{
    char 'y', 'n';
    char letter ;
    cout << " Would you like to play agian?( press y or n): ";
    cin >> letter;
    return letter;
}

'y' and 'n' are already characters. You cannot define them as char

And: [B]void char[/B] play_again(... . What does this function return? void or char?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.