Search:

Type: Posts; User: Jonathan Yaniv

Search: Search took 0.01 seconds.

  1. understood now thank you all guys ! if we go...

    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 !
  2. You answered my question. Thank you all again...

    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.
  3. You said printed the allocated memory 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...
  4. Question about Stray or Dangling Pointers

    hello there,

    take a look carefully on this code for example :


    #include <iostream>using namespace std;


    typedef unsigned short USHORT;
  5. Replies
    5
    Views
    1,016

    Hi, But although there is no break line, the...

    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...
  6. Replies
    5
    Views
    1,016

    Question about SWITCH

    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...
  7. Replies
    2
    Views
    784

    Question about Classes

    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();
  8. Replies
    3
    Views
    881

    do i have to cout

    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. ?
  9. Replies
    3
    Views
    881

    Question about ENUM

    hello there,

    i have something confused.

    if i type this

    enum days { sun, mon, tue, wed, thu, fri, sat };

    then typing ;
  10. Replies
    11
    Views
    2,591

    I actually searched for this and I found that...

    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...
  11. Replies
    11
    Views
    2,591

    worked ! i think i got the idea after reading...

    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...
  12. Replies
    11
    Views
    2,591

    doing so right now. #include int...

    doing so right now.

    #include <iostream>

    int main()


    {
    std::cout << "Hello World!\n";
    return 0;
  13. Replies
    11
    Views
    2,591

    this is what i get now $ gcc helloworld.cpp...

    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'...
  14. Replies
    11
    Views
    2,591

    The helloworld code. yes i'm a newbie.

    hello there,

    started to learn the lang yesterday.
    trying to compile the helloworld code.


    #include <iostream>

    int main();
Results 1 to 14 of 14