|
2011-04-04
, 13:37
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#12
|
The only problems I have now is my limited knowlage about * and & symbols before variables. so I have to deal with several "can not convert int* to int" errors..
Maybe someone could post a little summary about the meaning of int i, int *i and int &i.
int i; i = 17; int *pInteger = &i;
int &rInteger = i;
int j = *pInteger;
And why my compiler forbids me to do the following:
QDateTime *time;
time = QDateTime::currentDateTime();
|
2011-04-04
, 15:41
|
Posts: 560 |
Thanked: 422 times |
Joined on Mar 2011
|
#13
|
The Following User Says Thank You to demolition For This Useful Post: | ||
|
2011-04-06
, 12:36
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#14
|
The Following User Says Thank You to For This Useful Post: | ||
NULL is used in C-code to initialize pointer variables with
a NULL-pointer. (In c++-code you can just use 0 for NULL-Pointer.)
http://www.parashift.com/c++-faq-lite/index.html
my contributions:
Desktop Clock Widget|Calendar Home Widget|Lens Cover Reminder|ConnectNow|Scout|App Search Widget|ProfilesX|
Desktop-Switcher|SMS-Messageblocker
-Donate-