Newsgroup: comp.lang.c++
Subject: Assigning Default string Values
From: mrc2323@...
Date: Wed, 18 Sep 2013 08:07:55 -0700
During execution of my programs, I repeatedly initialize a number of
basic::strings to default lengths and values - usually blanks (but not
always). Currently, I create a single string variable of the largest
needed size and use it with .substr() to assign the default values.
Is there a better way? TIA
Subject: Assigning Default string Values
From: mrc2323@...
Date: Wed, 18 Sep 2013 08:07:55 -0700
During execution of my programs, I repeatedly initialize a number of
basic::strings to default lengths and values - usually blanks (but not
always). Currently, I create a single string variable of the largest
needed size and use it with .substr() to assign the default values.
Is there a better way? TIA
via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?90824-Assigning-Default-string-Values&goto=newpost
View all the progranning help forums at:
http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums
No comments:
Post a Comment