|
-
November 28th, 2001, 07:22 PM
#1
using >> operator
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|