Search:

Type: Posts; User: luca

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,112

    thnx a lot, that will get me started!!!

    thnx a lot, that will get me started!!!
  2. Replies
    5
    Views
    1,112

    In my case I'm using Linux and Unix. Any...

    In my case I'm using Linux and Unix.

    Any suggestion about documentation for these kind of things would be very useful!!

    LuCa
  3. Replies
    5
    Views
    1,112

    how to get information about a file

    Hi All

    Is there an easy way to get information about a file, like size, modification date, permissions, etc ?

    Thnx in advance
    LuCa
  4. Replies
    6
    Views
    1,205

    thanks a lot, this is all I need!! The vector...

    thanks a lot, this is all I need!!

    The vector seems perfect!

    LuCa
  5. Replies
    6
    Views
    1,205

    from const char to char

    Hi All

    I'm writing a tool that uses C libraries.

    Which means that I have to convert strings into 'const char*'s

    So, this is how I think a string is converted into a char:
    const char* c =...
  6. Replies
    14
    Views
    1,891

    why 'const' ?

    why 'const' ?
  7. Replies
    14
    Views
    1,891

    Book is just a work I use for here :) The...

    Book is just a work I use for here :)

    The strange thing is that I only get this error when I try to create a BOOK object: Book book("bla bla")
    So if I do nothing with the Book class it compiles...
  8. Replies
    14
    Views
    1,891

    hmm, I've still problems. Now I've add a...

    hmm, I've still problems.
    Now I've add a initialization method to Book.h
    Book(std::string t): title(t) {}[code]
    However if I add the following line to main.C[code]Book book("The Code book") ;
    I...
  9. Replies
    14
    Views
    1,891

    I thought for c++ (linux) the convention was...

    I thought for c++ (linux) the convention was capital .C
    So thats not true ?

    LuCa
  10. Replies
    14
    Views
    1,891

    Basic compile problem

    Hi All

    I have the most simple situation, but I cannot compile it

    I have the following files: main.C, Book.C and Book.h:

    Book.h:
    class Boek {
    public:
    Boek() ;
  11. Replies
    5
    Views
    7,279

    Not sure why but this compiles c++ -o xxx...

    Not sure why but this compiles
    c++ -o xxx -I/usr/include/mysql -I/usr/include/mysql++/ -I/usr/local/include/mysql++/ -lmysqlpp -lmysqlclient main.C
  12. Replies
    5
    Views
    7,279

    I think I've installed everything. I can find the...

    I think I've installed everything. I can find the mysql.h file, its located at /usr/include

    UPDATE: I just found a couple of example files (which came together with the mysql++ stuff) With that...
  13. Replies
    5
    Views
    7,279

    Ok, now I tried the following command: c++...

    Ok, now I tried the following command:
    c++ main.C -lmysqlpp -I /usr/local/include/mysql++

    ~/c++> c++ main.C -lmysqlpp -I /usr/local/include/mysql++
    In file included from...
  14. Replies
    5
    Views
    7,279

    cannot find mysql++.h

    Hi All

    I just install the mysql++ api, but when I compile an example ( http://tangentsoft.net/mysql++/doc/userman/html/tutorial.html#id2860437 )
    I get the following errors:

    ~/c++> c++ main.C...
  15. Replies
    6
    Views
    2,951

    I actually never used the :help function, but I...

    I actually never used the :help function, but I must admit it is usefull!
    Anyway, when I added
    filetype plugin indent on it worked!!

    Thanks a lot
    LuCa
  16. Replies
    6
    Views
    2,951

    thnx. however it doesn't seem to work, I don't...

    thnx.

    however it doesn't seem to work, I don't get tabs when I'm working on a Makefile
    This is what I have so far:

    set expandtab
    set tabstop=2
    set shiftwidth=4
    set shiftround
    set...
  17. Replies
    6
    Views
    2,951

    problem with Makefile separator

    Hi All

    I recently changed my vim config file. Now when I hit tab it will produce 4 spaces.

    But now I get a problem with Makefiles, it really seem to need a tab character (\t doesn't work)
    ...
  18. Replies
    7
    Views
    2,100

    thnx a lot!!

    thnx a lot!!
  19. Replies
    7
    Views
    2,100

    So I should declare this array 1 element longer...

    So I should declare this array 1 element longer than I actually need, for this NULL character ?

    LuCa
  20. Replies
    7
    Views
    2,100

    the length of my array is not what I expected

    Hi All

    I just tried the following program


    #include <stdio.h>
    #include <string.h>

    main() {
    char c[5] ;
Results 1 to 20 of 20