Hi all,
would like to ask if there are any function which convert month name to number(e.g. JUL ----> 07) ? or do i have to wrtie the function my self?
second question, if i have to write that...
Type: Posts; User: Jasonymk
Hi all,
would like to ask if there are any function which convert month name to number(e.g. JUL ----> 07) ? or do i have to wrtie the function my self?
second question, if i have to write that...
i would like to delete all files in a directory, is there any function can help with this?
thank you for helping~~
to those who are interested in this thread:
problem solved.
use file.clear();
thank you~~~
Dear All,
i have a txt file which have the following data:
data1
data2
(new line but with nothing type,i.e. the cursor can move to this line)
i discover that when the point moved to the...
thank you ... i have use the seekg function and i have also use tellg and it said that the position is zero.
but when i use getline to get the character, the character is empty.
what is the...
well error found cos i think i open the file using
ifstream file(.......)
is there any other method?
oh.......that's correct, but how to move back to the begin of file???
how to check the end of a txt file??
if(file.eof()){.....}
???
thank you for helping~~~
i just make a guess cos ios::nocreate can detect whether the file exist or not.....i just wanna know if there will have some similar thing.....
i have written a program which is about file read write and what should i do if i dun want another user use the program while someone is using it?
cos this program can be used in different...
hi all,
i would like to ask if there is any resources about using wininet.h to upload file through ftp.
thank you.
thank you for teaching me ^_^
i would like to write a function to return a array....
should i write in this way?
char get_local_ftp_Sdir()
{
char local_ftp_Sdir[256] = "webRfq\\ftp";
return *local_ftp_Sdir;
}
thanks .....i should back to the basic before going forward....^_^
mmmm i understand what you mean....do you mean that the definition of the string or char does not really have a location in the memory? so i don't have to free up them?
hi all,
sometimes when i look to some programs, the variables(mostly char) will be set to NULL when the program ends.
i would like to ask when do i need to do so?
if i have a program which...
thank you soo much!!!
is there any way to hidden the procedure performed by the program which is the system("") command?
e.g.
i have a sentence :
system("map delete m:");
when i run the program, "map delete m:"...
thank you.....i undrstand what you mean....
only the idea is new to me.....
or sorry, i should ask about tellg()
in fact my code is:
file6.seekg (0, ios::end);
int file_size = file6.tellg();
cout << "The file is " << file_size << " bytes." << endl;
i have seen some thread discuss about using fseek() to tell the size of the file.
from the msdn, it said it will return -1L if there is error.
i would like to ask how to check if the return...
> if (choice = getch() =='1')
Check the operator precedence table - this does not mean what you want it to
what do you mean??
you mean i should set choice = getch(),then if (choice == '1')?
hi all,~~~
may be i should make the question more clearer....
my txt file is like this:
data 1 data 2 data 3 data 4
data 1 data 2 data 3 data 4
and so on
say for...
if there is a *.txt file with the following entries:
hello
hi
all
how to delete the line "hi" so that the file will have the following pattern?
hello
all
by the way ...i have another question to ask.
look at the following code:
#include "stdafx.h"
#include <iostream.h>
#include <conio.h>