Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

char array issue with scope

, 8 Nov 2012
Hey guys,I need to make a program that reads a user inputted (cin) line and stores it in a char array. easy?cout << "Enter your name" << endl;cin.getline(name, 50);name's declared as an array.This is fine... but I need it in a seperate function that returns the data to main......

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 8-Nov-12 17:12 Available lostandconfused1234
Updates in content. 3 changes had been made.
5 No 8-Nov-12 14:27 Available Nelek
code tags 2
4 No 8-Nov-12 14:26 Available lostandconfused1234
added code i tried.
2 No 8-Nov-12 14:18 Available fjdiewornncalwe
Updates in content.
1 No 8-Nov-12 14:17 Available lostandconfused1234

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

lostandconfused1234

United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 8 Nov 2012
Article Copyright 2012 by lostandconfused1234
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid