Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- struct stringy // structure definition
- {
- char *str;
- int ct;
- };
- void set(stringy &beany, const char *testing); // function definition
- int main()
- {
- stringy beany;
- char testing[] = "Reality isn't what it used to be.";
- set(beany, testing); // function call
- return 0;
- }
- void set(stringy &beany, const char *testing) // function prototype
- {
- int i=0;
- while (*(testing+i) != '