I'm creating a space-delimited file.
In another language, I'm used to using Space(n) to add n-number of spaces.
Does c++ have anything similiar? Google isn't doing well for me.
Printable View
I'm creating a space-delimited file.
In another language, I'm used to using Space(n) to add n-number of spaces.
Does c++ have anything similiar? Google isn't doing well for me.
Writes 20 spaces to cout:
You can easily do the same with a file.Code:#include <iostream>
#include <string>
...
std::cout << std::string(20,' ');
perfect, thanks.