i would like to be able to add characters to the end of a string suck as
string funString;
funString="asdfffjds"; //whatever inside the quotes
//add .txt to string so that its
funString="asdfffjds.txt";
i would like to be able to add characters to the end of a string suck as
string funString;
funString="asdfffjds"; //whatever inside the quotes
//add .txt to string so that its
funString="asdfffjds.txt";
Style is overrated.
- —₽‚¢‰Î -
make sure to include <string>Code:funString += ".txt";
source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense
Note that you can only add characters and strings using +=. To add numbers n such you have to use a stringstream.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
thx for the help guys or gals
Style is overrated.
- —₽‚¢‰Î -