Search:

Type: Posts; User: tu_user

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: pointers?

    by tu_user
    Replies
    5
    Views
    1,182

    thanku v m.

    thanku v m.
  2. Thread: pointers?

    by tu_user
    Replies
    5
    Views
    1,182

    pointers?

    What is the diference btw a pointer & a pointer variable?

    I mean I was confused by the following statement while reading an article,

    int x, y;

    *yPtr = 7;

    yPtr =&y;
  3. Thread: 0 & Null?

    by tu_user
    Replies
    4
    Views
    1,852

    Okeys thankx but u answered only one part of the...

    Okeys thankx but u answered only one part of the question. But y? c++ prefers 0 over NULL?
  4. Thread: 0 & Null?

    by tu_user
    Replies
    4
    Views
    1,852

    0 & Null?

    Well its just a general programming question. I was going through a topic in which it was clearly written that c++ prefer 0 and not NULL. I wanted to ask that if there is any solid difference btw 0...
  5. Thread: range?

    by tu_user
    Replies
    13
    Views
    3,434

    Thanku v m. It works well now. see the code...

    Thanku v m. It works well now.
    see the code again. Can I make it even better?


    #include<iostream>
    #include<conio.h>
    #include<ctime>

    using std::cout;
    using std::cin;
  6. Replies
    33
    Views
    3,297

    Yeah right DougDbug. Thanku. I got it now....

    Yeah right DougDbug. Thanku. I got it now. Actually I am new to c++ so it will take some time, know what I mean? Anyways I have finally arrived to a conclusion that there is nothin called perfect...
  7. Thread: range?

    by tu_user
    Replies
    13
    Views
    3,434

    I agree with u major_small. To be precise I agree...

    I agree with u major_small. To be precise I agree with all of you. The problem is that I am a beginner so I usually come across such problems. I wanted to generate random numbers ie,...
  8. Thread: range?

    by tu_user
    Replies
    13
    Views
    3,434

    It still not works.:(

    It still not works.:(
  9. Thread: range?

    by tu_user
    Replies
    13
    Views
    3,434

    range?

    I am not getting random value within my described limit. y? is that?



    #include<iostream>
    #include<conio.h>
    using std::cout;
    using std::cin;
    using std::endl;
    void genNum(void);// prototype
  10. Replies
    33
    Views
    3,297

    Well I was trying to generate some random numbers...

    Well I was trying to generate some random numbers here but it seems that the values generated by the following code are not within my defined limit?


    #include<iostream>
    #include<conio.h>
    ...
  11. Replies
    33
    Views
    3,297

    Thanku. Its a very complicated topic.

    Thanku. Its a very complicated topic.
  12. Replies
    33
    Views
    3,297

    what is seed? and diff btw rand() and srand()?

    what is seed? and diff btw rand() and srand()?
  13. Replies
    33
    Views
    3,297

    what is eexactly the diff btw rand() and srand()?

    what is eexactly the diff btw rand() and srand()?
  14. Replies
    33
    Views
    3,297

    okeys. It means that my result 52-48 is very much...

    okeys. It means that my result 52-48 is very much random.
  15. Replies
    33
    Views
    3,297

    perfect randomness?

    In my other post with the subject frequency? , the result comes out to be 52 for heads and 48 for tails. It means that it is not 100% randomized result. If had been correctly randomized the result...
  16. Thread: frequency?

    by tu_user
    Replies
    2
    Views
    1,084

    Thanku Salem.

    Thanku Salem.
  17. Thread: frequency?

    by tu_user
    Replies
    2
    Views
    1,084

    frequency?

    #include<iostream> /* include header files */
    #include<conio.h> /* */
    #include<iomanip> /* */

    using std::cout;
    using std::cin;
    using std::endl;
    using...
  18. Replies
    2
    Views
    797

    Thanku v m. So nice of u.

    Thanku v m. So nice of u.
  19. Replies
    2
    Views
    797

    strange numbers?

    #include<iostream>
    #include<cstdlib>
    int qualityPoints(int); // prototype
    int main()
    {
    int average; // declare variable
    cout<< "Enter your average"; // prompt the user for input
    cin>>...
  20. Replies
    2
    Views
    1,085

    system("PAUSE");

    // euclid.cpp - Compute Greatest Common Divisor of two positive integers
    // using the Euclidean Algorithm
    #include <iostream>
    #include<cstdlib>
    // Get a positive integer from user...
  21. thanku

    thanku
  22. Replies
    11
    Views
    3,562

    yeah i think so. Version 4.9.8.0 is great.

    yeah i think so. Version 4.9.8.0 is great.
  23. Replies
    11
    Views
    3,562

    yeah thankx. The code is okeys. The prob was with...

    yeah thankx. The code is okeys. The prob was with my compiler. I downloaded version4. its not bets. The one i was usin was beta so it stuck. Well thanku v m for ur help.
  24. #include #include ...

    #include <conio.h>
    #include <iostream>
    #include<cstdlib>
    bool prime(int n)
    {
    int i;
    if (n % 2 == 0)
    return (n==2);
    if (n % 3 == 0)
    return (n==3);
  25. implicit declaration of function getchar(...)?

    #include <conio.h>
    #include <iostream.h>
    int prime(int n)
    {
    int i;
    if (n % 2 == 0)
    return (n==2);
    if (n % 3 == 0)
    return (n==3);
    if (n % 5 == 0)
Results 1 to 25 of 36
Page 1 of 2 1 2