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.
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,' ');
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
perfect, thanks.