I want to print out the letter B, instead I get a blank line. Any tips would be great
#include <iostream>
using namespace std;
void add(string n);
int main()
{
string B;
add(B);
}
void add(string n)
{
if(n.length() <= 1)
{
cout<<n[0]<<endl;
}
}