is it possible to convert a type string to a char[]?
like
string s;
char[8] c;
can you copy the contents of c into s?? i so how
Type: Posts; User: stevew2607
is it possible to convert a type string to a char[]?
like
string s;
char[8] c;
can you copy the contents of c into s?? i so how
when assigning a path name to a file stream is there any way to make the extension the part after the period a variable and tack it onto the name of the file?? If so how
can you advise me on how please
Thanks a lot
it works perfectly
when creating an output file stream is there any way to the path name a varible and the extention is three digits the first number represent the day of the week (mon, tues, etc) and the last...
ok changed my loop to this:
while(in>> report.accountnum)
{
in >> report.accountnum;
in >> report.lastname;
out << defaultnum;
out << report.accountnum;
out << "M";...
here is the loop i tried to do an extra read an now it causes an infinite loop
ifstream in("a://visi.txt", ios::in);
ofstream out("c://opreg", ios::out);
if(!in)
{...
I am reading from a data file sequentially, when i get to the last record in the file it reads it twice and outputs to my output file twice. I am using a while loop with a not end of file condtion,...
i would like to use <ctime> becuase i need the date from the computer is this even possible??
I am using c++ and is there an method i can use to format a date into the following form 06/07/02 which is the month, day and year??