Search:

Type: Posts; User: Jasonymk

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,303

    getting number for Month

    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...
  2. Replies
    2
    Views
    1,463

    how to delete all files in a directory?

    i would like to delete all files in a directory, is there any function can help with this?

    thank you for helping~~
  3. use file.clear()

    to those who are interested in this thread:

    problem solved.
    use file.clear();

    thank you~~~
  4. what should i do when .....(read/write txt file problem)

    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...
  5. Replies
    7
    Views
    1,444

    thank you but....

    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...
  6. Replies
    7
    Views
    1,444

    is it the only method?

    well error found cos i think i open the file using


    ifstream file(.......)

    is there any other method?
  7. Replies
    7
    Views
    1,444

    solved....but

    oh.......that's correct, but how to move back to the begin of file???
  8. Replies
    7
    Views
    1,444

    how to check the end of file?

    how to check the end of a txt file??


    if(file.eof()){.....}

    ???


    thank you for helping~~~
  9. haha...yes...i just guess that~~

    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.....
  10. how to check if certain files are being used by others??

    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...
  11. Replies
    1
    Views
    2,420

    uploading file using ftp

    hi all,

    i would like to ask if there is any resources about using wininet.h to upload file through ftp.

    thank you.
  12. Replies
    6
    Views
    1,157

    thank you

    thank you for teaching me ^_^
  13. Replies
    6
    Views
    1,157

    question about returning an array

    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;
    }
  14. Replies
    6
    Views
    1,005

    thank you!!

    thanks .....i should back to the basic before going forward....^_^
  15. Replies
    6
    Views
    1,005

    mmmi would like to know more.....

    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?
  16. Replies
    6
    Views
    1,005

    when do i need to set all back to Null??

    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...
  17. Replies
    7
    Views
    1,238

    thanks!!!!

    thank you soo much!!!
  18. Replies
    7
    Views
    1,238

    can the procedure in the program be hidden?

    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:"...
  19. Replies
    15
    Views
    3,284

    thank you.....i undrstand what you mean.... only...

    thank you.....i undrstand what you mean....
    only the idea is new to me.....
  20. Replies
    4
    Views
    2,203

    or sorry, i should ask about tellg() in fact...

    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;
  21. Replies
    4
    Views
    2,203

    simple problem about fseek()

    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...
  22. Replies
    5
    Views
    1,442

    > if (choice = getch() =='1') Check the operator...

    > 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')?
  23. Replies
    15
    Views
    3,284

    thank you for helping...

    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...
  24. Replies
    15
    Views
    3,284

    how to delete entry in a txt file?

    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
  25. Replies
    5
    Views
    1,442

    by the way.......

    by the way ...i have another question to ask.

    look at the following code:



    #include "stdafx.h"
    #include <iostream.h>
    #include <conio.h>
Results 1 to 25 of 119
Page 1 of 5 1 2 3 4