Library Help

Im trying to make a simple library but im getting a lot of errors when compiling.
this is what i have so far.

1
2
3
4
5
6
7
8
9
10
 #ifndef my_library
#define my_library

void out(string x);

void out(string x){
cin >>x;
cout <<"Entered "<< x;
}
#endif 
well you may start with a struct (or class maybe)
http://www.cplusplus.com/doc/tutorial/structures/
Topic archived. No new replies allowed.