The benefit is psychological, it might change later on when I advance through the tutorials and start actually programming. As for NEWLINE_FLUSH, I don't know how to make that one an alias, but I did...
Type: Posts; User: deztox
The benefit is psychological, it might change later on when I advance through the tutorials and start actually programming. As for NEWLINE_FLUSH, I don't know how to make that one an alias, but I did...
Oh I see now! So something to the tune of:
a_file << "This text will go inside!" << NEWLINE;
Wouldn't this code here replace anywhere that I put NEWLINE with \n? Kinda like an alias, that is the intended affect anyway...
const std::string NEWLINE = "\n"
The darn semi-colons! Thanks for pointing that out! Can you explain your comment here:
I've just began programming and the furthest explaination of strings was C-style vs std::string.
I'm trying to make a program that checks if a file is there, if not make it with some writting in it. I've done my best make sure everything is correct.
Code:
/* Section: header */
#include...