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
enter array element until pressing enter
Page 2
enter array element until pressing enter
Pages:
1
2
Mar 18, 2015 at 6:45pm UTC
JLBorges
(13770)
gets_s()
is optional; a conforming implementation need not have it.
http://en.cppreference.com/w/c/io/gets
fgets()
is guaranteed to be available.
http://en.cppreference.com/w/c/io/fgets
Reading into a string first is both messy (if we want to handle overflow) and unnecessary.
See:
http://www.cplusplus.com/forum/general/159801/#msg815687
Topic archived. No new replies allowed.
Pages:
1
2