thnx a lot, that will get me started!!!
Type: Posts; User: luca
thnx a lot, that will get me started!!!
In my case I'm using Linux and Unix.
Any suggestion about documentation for these kind of things would be very useful!!
LuCa
Hi All
Is there an easy way to get information about a file, like size, modification date, permissions, etc ?
Thnx in advance
LuCa
thanks a lot, this is all I need!!
The vector seems perfect!
LuCa
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 =...
why 'const' ?
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...
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...
I thought for c++ (linux) the convention was capital .C
So thats not true ?
LuCa
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() ;
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
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...
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...
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...
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
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...
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)
...
thnx a lot!!
So I should declare this array 1 element longer than I actually need, for this NULL character ?
LuCa
Hi All
I just tried the following program
#include <stdio.h>
#include <string.h>
main() {
char c[5] ;