PDA

View Full Version : print something on console application



cemtopkaya
10th June 2010, 13:55
How can i write to the screen when i am working with console application?

I want to write the address of some variable which is in memory.

borisbn
10th June 2010, 14:31
#include <iostream>

...
int someVariable;
std::cout << "address of some variable: " << &someVariable;

amoswood
10th June 2010, 14:41
Also check out QDebug