I started teaching myself C about seven months ago and moved up to C++ about two months ago, mostly using the tutorials on this website.
Here is my first stab at a program: a crude, uber-simple copy program that makes a copy of a file the user types and places the copy within the same directory.
It works, but I'm looking for general advice and guidance on what's noob about this (I'm sure there's plenty that is). Any suggestions on practices that I should be steering away from?
Sweet, thanks for the suggestions Whovian! I added the delete[] functions after reading your post. Also, I thought it seemed like unnecessary overhead to go through the conversions from my strings to *chars, too. But I wasn't sure how else to handle it. According to the reference on here, ifstream::open() has to have a *char for its first argument. Is there an cleaner way to extract a *char from a string object than what I coded?