Search:

Type: Posts; User: ivotron

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    2,048

    Wow! Thank you all for your responses, the...

    Wow! Thank you all for your responses, the discussion turned out to be very helpful.

    Just as a comment, after reading your posts i encountered with the following FAQ entry in the page of the DTL...
  2. Replies
    14
    Views
    2,048

    I've found the following: SOCI - The C++...

    I've found the following:

    SOCI - The C++ Database Access Library http://soci.sourceforge.net/index.html
    SimpleDB http://simpledb.sourceforge.net/
    Oracle, Odbc and DB2-CLI Template Library...
  3. Replies
    14
    Views
    2,048

    Database Access

    Do you know if there's a DBMS independent library like JDBC? So far, I've seen SimpleDB and DTL, but they don't seem to be well supported.
  4. Thread: Templates

    by ivotron
    Replies
    2
    Views
    900

    If you want School to be a template you have to...

    If you want School to be a template you have to declare it as such and the data type passed to School will be passed to Queue:



    template<class T>
    class School{

    public:
    .
    .
  5. Replies
    7
    Views
    2,423

    Wait! You're right, my final version is not that...

    Wait! You're right, my final version is not that one, is this one:



    int main() {
    std::ifstream file("file.txt");
    unsigned long long oldval, newval;

    while(!file.eof()) {
    if(file...
  6. Replies
    7
    Views
    2,423

    Hi, this is my last working version int...

    Hi, this is my last working version


    int main() {
    std::ifstream file("file.txt");
    unsigned long long oldval, newval;

    while(!file.eof()) {
    file >> oldval >> newval;
    std::cout...
  7. Replies
    7
    Views
    2,423

    Re: Problem with fstream

    Thanks a lot for your time. I changed the data type to long long and it worked.

    >> while(!file.eof())
    > This is bad, see the FAQ

    The eof that the FAQ talks about is from C, i think that the...
  8. Replies
    7
    Views
    2,423

    problem with fstream

    Hi,

    I have very strange problem with std::fstream. I want to read a simple two-column space-separated file with the following code:

    #include <iostream>
    #include <fstream>

    Code:
Results 1 to 8 of 8