Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void stringPrint(string stringIn)
- {
- cout << stringIn <<endl;
- return;//returning void so no value needed here
- }
- int main()
- {
- string stringIn;
- cout << "Enter string" << endl;
- cin >> stringIn;
- stringPrint(stringIn);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement