Search:

Type: Posts; User: Tesnik

Search: Search took 0.01 seconds.

  1. Thread: New to pointers

    by Tesnik
    Replies
    5
    Views
    1,500

    yes! thanks very much

    yes!

    thanks very much
  2. Thread: New to pointers

    by Tesnik
    Replies
    5
    Views
    1,500

    I dont see why *p1 = 20 makes second value...

    I dont see why *p1 = 20 makes second value change. p1 is the reference to the firstvalue, so why does secondvalue change and not the firstvalue.

    ive tried with the bunnies... they dont work.
  3. Thread: New to pointers

    by Tesnik
    Replies
    5
    Views
    1,500

    New to pointers

    Hi, I sort of understood pointers, until I went to cplusplus.com and saw this code:




    #include <iostream>
    using namespace std;

    int main ()
    {
  4. Replies
    5
    Views
    1,661

    Try typecasting. Maybe that will work

    Try typecasting. Maybe that will work
  5. Replies
    2
    Views
    1,108

    Learning how to program

    hey,

    just one question, whats the best way to learn how to program?
    Do you first learn all the basics and later you start programming things, or you program things while you are learning the...
  6. Thread: Money problem

    by Tesnik
    Replies
    6
    Views
    2,240

    :D:D thanks all of you for the help! Bench82...

    :D:D thanks all of you for the help!

    Bench82 very good explanation :)
  7. Thread: Money problem

    by Tesnik
    Replies
    6
    Views
    2,240

    Money problem

    Hi! I'm stuck with a new problem here, and I would really appreciate some help.
    lets see... what I want to know is in how many years will the variable money duplicate itself, having an interest...
  8. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    :( and i thought you were being a good, kind...

    :( and i thought you were being a good, kind person :D
  9. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    very clear, thanks.

    very clear, thanks.
  10. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    umm yeah, but its good to know what n += i++...

    umm yeah, but its good to know what n += i++ means, or why doesn't the cout go inside the for loop.
  11. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    so... n+= i++ means.... n=n+(i+1)??? i dont...

    so... n+= i++ means.... n=n+(i+1)???

    i dont get this part of code:




    for ( int i = 1; i <= 10; n += i++ );

    cout << n << endl;
  12. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    I sure will :)

    I sure will :)
  13. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    haha thanks cpjust i appreciate it :) robwhit...

    haha thanks cpjust i appreciate it :)

    robwhit i have answered you on top of cpjust, we must have press the post button at the same time :D

    cpjust what does n+= mean?
  14. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    thanks a lot. You know, this is my first really...

    thanks a lot. You know, this is my first really serious attempt to study a programming language.
    Ive seen some Pascal, some Python and also some Delphi, but i got tired of it. But C, i dont know......
  15. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    wow haha i think thats a little more advanced. I...

    wow haha i think thats a little more advanced. I understood the other code better :)

    I haven't seen the loop: thing.
    and the --i... dont know what it is :D

    but i will learn.

    thanks again
  16. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    ok :D thanks very much

    ok :D thanks very much
  17. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    oops i wrote to slow :) cpjust THATS what i...

    oops i wrote to slow :)

    cpjust THATS what i wanted!!

    thanks both of you:)

    Ive been studying C++ from this page (which is great) for about two weeks, and Ive done simple programs a little...
  18. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    ok umm, from your post ive tried this: ...

    ok umm, from your post ive tried this:




    #include <iostream>

    using namespace std;

    int main()
  19. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    ok this is what i got: #include...

    ok this is what i got:




    #include <iostream>

    using namespace std;

    int main()
  20. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    I dont see any loop there. Imagine a want to do...

    I dont see any loop there. Imagine a want to do it with a while loop. How would I do it?
  21. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    Thanks. but ive tried your code, and this isnt...

    Thanks. but ive tried your code, and this isnt what im looking for. What i want to do is to add ALL the numbers between 1 and 10 using loop.
  22. Thread: Loop problem

    by Tesnik
    Replies
    29
    Views
    5,181

    Loop problem

    Hi, first of all i have to say Im a little embarrassed of making this question because Ive been reading a lot of posts out there, and they are really advanced topics. This is really simple.
    I'm ...
Results 1 to 22 of 22