#include <iostream>
using namespace std;
namespace characters {
char tm='a';
char tc='a';
}
using namespace characters;
class table {
public:
void printline (){
char m;
m=tm;
//m=tc;
cout<<m<<m<<m<<m<<m<<m<<m<<m<<m;
}
};
int main()
{
table myTable;
myTable.printline();
return 0;
}
but when you comment out the m=tm; line and reinstate the line m=tc the code works fine.
what is so special about the identifier tm?