Click here to Skip to main content
12,066,952 members (58,348 online)
Click here to Skip to main content

Tagged as

Stats

1.2K views
Posted

char array issue with scope

, 8 Nov 2012 CPOL
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
6 - 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

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.160208.1 | Last Updated 8 Nov 2012
Article Copyright 2012 by lostandconfused1234
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid