When I was learning in C ++, I learned that with the iomanip library I could repeat characters like this:
cout << setw(40) << setfill('=') << endl;
Now that I'm in C # I do not know how to do it or if it's valid
When I was learning in C ++, I learned that with the iomanip library I could repeat characters like this:
cout << setw(40) << setfill('=') << endl;
Now that I'm in C # I do not know how to do it or if it's valid
Its equivalent would be this:
string tabs = new String('=', n);
where n is the number of times to be repeated.
reference here, stackoverflow in English