Search:

Type: Posts; User: swappo

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    6,720

    I just came to that conclusion myself. I can...

    I just came to that conclusion myself. I can save the .ods as a .csv, but it would be even better if I could convert it from .ods to .csv in my program, append the data to the .csv and convert it...
  2. Replies
    10
    Views
    6,720

    I want to be able to add data from a banking...

    I want to be able to add data from a banking statement to an open office spread sheet to balance my account. I would like to write a C++ program to handle this. Is there another format that I can...
  3. Replies
    10
    Views
    6,720

    Thanks, I was able to unzip the file by right...

    Thanks,

    I was able to unzip the file by right clicking the file and selecting extract here. However, I don't have anything that says compress here to compress the file when done. I guess I'll...
  4. Replies
    10
    Views
    6,720

    Thanks for the info. This is from the .odf wiki...

    Thanks for the info. This is from the .odf wiki page.

    Any ideas how to uncompress the file? Or is there a way that I can view the source in the Open Office Calc program?
  5. Replies
    10
    Views
    6,720

    how to view .ods as text?

    Hello,

    I am trying to open an open office calc .ods file and view it as text. I want to be able to add new data to this file. When I try to open a test.ods file I am getting all kinds of...
  6. Replies
    4
    Views
    19,738

    This is what I get when I try to cd to .autofsck....

    This is what I get when I try to cd to .autofsck. The same thing happens with .dbus.
  7. Replies
    4
    Views
    19,738

    S_ISDIR returns directories and files?

    Hello,

    I have a program where I am testing to see whether something is a file or directroy using S_ISDIR. Here is my code:

    void Find::get_dir()
    {
    struct dirent *ep;
    struct stat statbuf;...
  8. Replies
    4
    Views
    29,074

    Thanks for the help. I found the page for struct...

    Thanks for the help. I found the page for struct stat. S_ISDIR and S_ISREG is what I am looking for.
  9. Replies
    4
    Views
    29,074

    How to tell if a file or directory

    Hello,

    I need to determine if d_name in struct dirent is a file or directory. According to the Clibray I can use unsigned char d_type but it is not reliable for all posix systems. So, how would...
  10. Replies
    4
    Views
    6,267

    Why std:: and not using namespace std?

    Why use std:: instead of using namespace std? I was recently told that I should use std:: in my header files as opposed to using namespace std but I don't really know why. Should I be using std::...
  11. Replies
    3
    Views
    1,183

    I just edited this post. Some how I had the...

    I just edited this post. Some how I had the wrong error. It is buf that is not declared in this scope.
  12. Replies
    3
    Views
    1,183

    Accessing private string

    Hello,

    I wan't to get a private string from class CWDirectory in member function set_path(const char* s) and put it in a member function set_path() in class Directory.

    //cwdirectory.cpp...
  13. Replies
    9
    Views
    1,671

    I'm not sure if this is the best way to do it,...

    I'm not sure if this is the best way to do it, but here is my attempt.
    #include <iostream>
    #include <fstream>
    #include <string>
    using namespace std;

    int main()
    {
    fstream file;...
  14. Replies
    6
    Views
    16,522

    Ok, thanks.

    Ok, thanks.
  15. Replies
    6
    Views
    16,522

    If I put cin.ignore() after getline(cin, name); I...

    If I put cin.ignore() after getline(cin, name); I have a line with just a cursor which I have to hit enter to get to the next line of input. Yet, I put cin.ignore() after cin >> loop; as you...
  16. Replies
    6
    Views
    16,522

    Example: char loop = 'y'; while(loop != 'n')...

    Example:

    char loop = 'y';
    while(loop != 'n')
    {
    cout << "Enter a name: ";
    getline(cin, name);
    cout << "Enter a number: ";
    getline(cin, num);
    numbers[name] = num;
  17. Replies
    6
    Views
    16,522

    getline() and cin.ignore()

    I have a program where I call getline(cin, something); multiple times. I need to clear the input buffer of '\n' but if I use cin.ignore() after getline(), I get a cursor on the command line and have...
  18. Replies
    1
    Views
    1,035

    find a char in a string

    Hello,

    I am trying to find and replace a character in a string.

    #include <iostream>
    #include <string>
    using namespace std;

    int main()
    {
  19. Replies
    5
    Views
    4,943

    Thanks for pointing me in the right direction. ...

    Thanks for pointing me in the right direction.

    #include <iostream>
    #include <string>
    using namespace std;

    int main()
    {
    string contents("This is a test. I will extract <Title> the contents...
  20. Replies
    5
    Views
    4,943

    instantiated from here error

    Hello,

    I have the following code:

    #include <iostream>
    #include <string>
    #include <vector>
    #include <algorithm>
    using namespace std;
  21. Thread: I need...

    by swappo
    Replies
    10
    Views
    1,419

    I think I understand it now. I think it was the...

    I think I understand it now. I think it was the return statement being on two lines that threw me off. It looked as if the != url_ch.end()) was part of find(). Sometimes I have trouble making...
  22. Thread: I need...

    by swappo
    Replies
    10
    Views
    1,419

    Sorry, I couldn't think of anything better. ...

    Sorry, I couldn't think of anything better. Actually, its the "c)" in the red that I don't understand. What is the end parenthesis for? It looks like a typo to me, but the code compiles and runs. ...
  23. Thread: I need...

    by swappo
    Replies
    10
    Views
    1,419

    Possible typo

    I need an explanation of part of the following function that is highlighted in red (possible typo). At first I thought the parenthesis to the right of c was a typo(this is from the book Accelerated...
  24. Replies
    8
    Views
    4,339

    I did look up front_inserter but not...

    I did look up front_inserter but not front_inserter_iterator.

    I now understand what this means. I'm still trying to familiarize myself with the C++:Reference. Its certainly been a big help. ...
  25. Replies
    8
    Views
    4,339

    I am using front_inserter() which is part of...

    I am using front_inserter() which is part of iterator function.
Results 1 to 25 of 56
Page 1 of 3 1 2 3