Click here to Skip to main content
12,751,650 members (33,674 online)
Click here to Skip to main content

Tagged as


Posted 8 Nov 2012

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......



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


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


About the Author

United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 8 Nov 2012
Article Copyright 2012 by lostandconfused1234
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid