Search:
Forum
Beginners
problem with arrays
problem with arrays
Mar 3, 2009 at 11:03am UTC
Harlequin
(66)
#include<iostream.h>
#include<conio.h>
void replace(char[]);
void main()
{
char name[10];
cout<<"Name????:";
cin.getline(name,10);
replace(name);
getch();
}
void replace(char h[10])
{
cout.write(h,10);
}
Mar 4, 2009 at 1:06am UTC
Space
(3)
Hmmm I don't understand the question, But I got you this.
http://www.augustcouncil.com/~tgibson/tutorial/arr.html
Hope that helps, it contains quite a bit about arrays.
PS: I'm new to C++ myself.
__________________
Just trying to help.
Mar 4, 2009 at 3:00am UTC
kevinchkin
(450)
What's the problem?
Code's output is
1
2
3
:!./a.out Name????:testUser testUser
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs