understood now
thank you all guys !
if we go back to the code in the main thread and print the value of pInt and pLong it is really the same.
thank u !
Type: Posts; User: Jonathan Yaniv
understood now
thank you all guys !
if we go back to the code in the main thread and print the value of pInt and pLong it is really the same.
thank u !
You answered my question.
Thank you all again guys!
Edit
ummm some thing is still not clear.
Lets say pInt == 5
So *pInt will give me also 5
And &pInt will print its address.
You said printed the allocated memory address, isn't the &pInt is the allocated? If not how do,I print the allocated memory?
What you explained me is something I understood immediately but how...
hello there,
take a look carefully on this code for example :
#include <iostream>using namespace std;
typedef unsigned short USHORT;
Hi,
But although there is no break line, the number 4 or 3 does not have any meaning? Although it is not the case of 4 (in this e.g. It's 5) it will still print what has to be printed in case of...
hello guys,
I was reading about SWITCH now and I have something misunderstood.
take a look on this piece of code please
http://db.tt/BwcGOr8g
My question is why when the number == 5 it...
hello there,
take this code for example (taken from the teachyourself in 21days tut)
class Cat {
public:
unsigned int Age;
unsigned int Weight;
void Meow();
do i have to cout << dayVals[mon] ?
what if i want to print all the days in a loop, can't it be printed by dayVals[i] for e.g. ?
hello there,
i have something confused.
if i type this
enum days { sun, mon, tue, wed, thu, fri, sat };
then typing ;
I actually searched for this and I found that adding -static to the g++ command fixes this.
Worked well !
Thank you so much guys being so helpful.
We will be in touch in other threads I...
worked !
i think i got the idea after reading that namespace thing though i did not understand fully what it is for.
that's the line i was missing all the way..
if the "cout" command is...
doing so right now.
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
return 0;
this is what i get now
$ gcc helloworld.cpp
C:\Users\Johni\AppData\Local\Temp\ccWmztK5.o:helloworld.cpp:(.text+0x19): undefined reference to `std::cout'...
hello there,
started to learn the lang yesterday.
trying to compile the helloworld code.
#include <iostream>
int main();