It's based on C, so I believe the answer is absolutely and the same.... perhaps someone will have more to add to this...
If you can do it in C, you can almost certainly do it in C++. In a handful of rare cases, this not being one of them, you might have to change the syntax here and there. Just do what you do in C and stick it in a C++ program and chances are it will compile as-is. The compiler will yell at you if you use C++ keywords, stuff like that.
Basically my assignment says. Write a program to read a series of names, one per line, from standard input and write out those names spelled in reverse order to standard output. Use I/O redirection and pipes to do the following:
a) Input a series of names that are typed in from keyboard, and write them out, reversed to file1.
b)Read the names in from file1; then write them out,re-reversed, to a file called file2.
c) Read the names in from file2, reverse them again, and then sort the resulting list of reversed words using sort.
So doesn't this imply that i must have unix. Which i don't so how am i supposed to do this?