How do I write a function, class (not sure what I have to write to use it) so that I can return a value to an array. Example, cin is programmed to use that operator to put a char in or whatever.

How can I make a function that uses that? Just to demonstrate an example, let's say that I have this:

int function(char data[10])
{
strcat(data," bla bla")

return data;
}

this function would not work since c++ is worse then a nazi when it comes to arrays. Is there a way I can get data using the >> operator? This will help me allot since I have allot of functions I want to write that could use this. Thanks!