Come on people!!!!!
Closing this as of-topic is ridiculous. It compiles it runs it works (for specific input). Yes it has flaws but this code is basically 99.9999999% complete and for a beginner an already large investment of time.
We have a small community that most of us would like to see grow. But cutting of newbies like this is not going to help grow the community its just going to isolate it.
The OP is is clearly marked as "New contributor" you are supposed to be nice and a little more lenient towards these contributors and give them a helping hand. Reviewing this code would have been no effort because it actually works you don't need to fix anything for him and you can give him/her extra valuable information as part of the review that would help them become a beter contributed in the future.
The requirements for review.
Is code included directly in my question?
Yes
Am I an author or maintainer of the code?
Personally I don't know. But it seems to be the OP code.
Is it actual code from a project rather than pseudo-code or hypothetical code?
Again seems yes.
To the best of my knowledge, does the code work as intended?
Does it work. Yes. Does it work perfectly. No. But we are allowed to submit code that does not work perfectly.
Do I want the code to be good code?
It seems that way.
Do I want feedback about any or all facets of the code?
He did not limit the review. So again yes.
So the only part where it "Seems" to fail according to your ultra strip interpretation.
To the best of my knowledge, does the code work as intended?
But even the OP says that his code works in some situations:
The program I have will work fine as long as there are no spaces in the message I enter.
So the code works perfectly if there are no spaces in the input.
But we have also stated many times that if corner cases don't work the code is perfectly acceptable. This is a corner case. As long as I exclude a small set of characters the code would continue to work (less than 10% of characters will cause an error).
But the question would be perfect if we simply the question.
If the question was asked like this:
So I am pretty new to programming, trying to teach myself C++. I thought I would try to create a program based on the Caesar Cipher. The program I have workperfectly for single word encyptions. I would love if you could suggest ways to make this better. e.g. How would I go about encrypting a sentence? Been working on this for a little while now to try and figure it out myself, but have yet to make progress on encrypting or decrypting more than a single word. Here is my code:
Now its perfectly acceptable to the group.
The ludicrous nature that we so strictly interpret the rules here is why I think it is ridiculous to close it.
The program I have will work fine as long as there are no spaces in the message I enter.
\$\endgroup\$