cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
a string array being passed to function
a string array being passed to function alias arg
Dec 11, 2019 at 12:42pm UTC
marhuum
(181)
How do we handle a string array being passed to function alias argument. (not simply just argument but its alias) ?
Last edited on
Dec 11, 2019 at 12:43pm UTC
Dec 11, 2019 at 12:45pm UTC
Repeater
(3046)
What is a function alias argument? Do you mean a reference parameter?
1
2
3
void
function (string*& a_reference_to_a_string_pointer) { ...
Also, because this is C++, we don't use a string array. We use a vector of strig instead:
vector<string> vector_of_string;
Topic archived. No new replies allowed.