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...
Type: Posts; User: swappo
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...
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...
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...
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?
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...
This is what I get when I try to cd to .autofsck. The same thing happens with .dbus.
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;...
Thanks for the help. I found the page for struct stat. S_ISDIR and S_ISREG is what I am looking for.
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...
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::...
I just edited this post. Some how I had the wrong error. It is buf that is not declared in this scope.
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...
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;...
Ok, thanks.
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...
Example:
char loop = 'y';
while(loop != 'n')
{
cout << "Enter a name: ";
getline(cin, name);
cout << "Enter a number: ";
getline(cin, num);
numbers[name] = num;
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...
Hello,
I am trying to find and replace a character in a string.
#include <iostream>
#include <string>
using namespace std;
int main()
{
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...
Hello,
I have the following code:
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
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...
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. ...
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...
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. ...
I am using front_inserter() which is part of iterator function.