Tab space

Hi

I would like to know how the tab space is compared in the c++.
I would like to implement my own tab space using c++;
Ex ;

main()
{
std::string tab;
cout <<enter the tab;//i want to press tab key from the keyboard
cin<<i want to press tab key from the keyboard
if(tab == '?" // what to compare here for the tab
cout<< i wnat to have 5 spaces .

}
In C++ you use the character '\t' to represent a tab inside string literals.
Topic archived. No new replies allowed.