I have a word from a parts of speech wordlist that looks like this:
aardvark\N
I would like to write code to separate the "\N" so that the program will first find aardvark and then return "\N". The program is supposed to return the "Parts of Speech" for any word that you enter...
how would I iterate through the word "aardvark" and stop at the "\N"?
Are you allowed to use standard functions? Classes?
In another of your mails you're using std::getline with a char buffer. It would be better to use std::getline with a std::string. Then you could use something along the lines of:
compiler issues error: "missing terminating character."
new problem...the buffer in the parts of speech word list is a forward slash..."\" . Here is code so far:
for whatever reason, I added "\\" into the following code and the program now outputs the word and part of speech separately...everything works but I would appreciate an explanation if anyone has one...is "\\" a way of pointing towards a '\' in a string...?