1) return a string function (if yes how do i display it) ?? |
What do you mean "return a string function"? Do you mean you want your function to return a string? If so, then yes - you can return a std::string just like you can return any other value.
Or do you mean you want a function to return a pointer to another function? That's possible too.
2) is it possible to store a word to a smaller variable so that i can just use that variable instead of typing the same word again and again |
If you want to use it as string data then, yeah, sure.
If, on the other hand, you want to use the word as the name of a variable, or function, or something like that then the answer is no, not directly. There are ways to simulate doing it, but they'll complicate your code. It's not worth doing it just to save typing same function/variable/whatever name a few times.
Anyway, isn't that what Copy and Paste in your editor is for?