Search:

Type: Posts; User: xbusterx

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,856

    a = 10, c = 27 ?, dunno what d is

    a = 10, c = 27 ?, dunno what d is
  2. Replies
    9
    Views
    1,856

    My program isn't working right now and I don't...

    My program isn't working right now and I don't know what to do. What is the output can someone help me?
  3. Replies
    9
    Views
    1,856

    What is this output?

    a= 5 , b = 6


    a = (b++) + 3;

    c = 2*a + (++b);

    d = 2 * (++c) - (a++);
  4. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    .....

    .....
  5. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    Well I've read the notes in class and I don't...

    Well I've read the notes in class and I don't have the book for the class since it's optional it was over $200 and I couldn't afford it sorry some people aren't rich.
  6. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    That's exactly what I've been trying to do, but...

    That's exactly what I've been trying to do, but how do I read it from the stream I tried, but it didn't work!
  7. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    By open I mean I want to display what is in the...

    By open I mean I want to display what is in the file on the terminal screen. That's what I mean, but's not working.
  8. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    So I opened it and closed it? Why did it close?

    So I opened it and closed it?

    Why did it close?
  9. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    the stuff that's inside the file. What do u think?

    the stuff that's inside the file. What do u think?
  10. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    Because I don't see it......

    Because I don't see it......
  11. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    #include #include #include...

    #include <iostream>
    #include <string>
    #include <fstream>


    using namespace std;


    // Function prototypes
  12. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    Well I'm trying to open the file, but it's not...

    Well I'm trying to open the file, but it's not opening.
  13. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    Well that isn't the problem I do it this way.

    Well that isn't the problem I do it this way.
  14. Thread: Need Help

    by xbusterx
    Replies
    38
    Views
    3,867

    Need Help

    I'm making a program where the user type in a file name and opens the file.

    This is what I did, but it's not working.

    What do I do?

    Plz help thx.
  15. Thread: prime numbers

    by xbusterx
    Replies
    10
    Views
    1,331

    i'm using emacs.

    i'm using emacs.
  16. Thread: prime numbers

    by xbusterx
    Replies
    10
    Views
    1,331

    that doesn't do any this.

    that doesn't do any this.
  17. Thread: prime numbers

    by xbusterx
    Replies
    10
    Views
    1,331

    Ya I'm asking you what would u do?

    Ya I'm asking you what would u do?
  18. Thread: prime numbers

    by xbusterx
    Replies
    10
    Views
    1,331

    prime numbers

    #include <iostream>
    using namespace std;

    int main ()

    {

    int j;
    int t;
    int p;
  19. Replies
    20
    Views
    4,495

    int sum =0; int n; cout

    int sum =0;
    int n;

    cout << enter number;
    cin >> n;

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

    if ( n % i == 0 )
    sum += i
  20. Replies
    20
    Views
    4,495

    Ok so can I do this? int sum =0; int...

    Ok so can I do this?




    int sum =0;
    int n;

    cout << enter number;
    cin >> n;
  21. Replies
    20
    Views
    4,495

    Ya don't I don't know how to do that here since ...

    Ya don't I don't know how to do that here since i is changing.
  22. Replies
    20
    Views
    4,495

    um like sum += num ?

    um like sum += num ?
  23. Replies
    20
    Views
    4,495

    exactly you're right , BUT how do I add them?...

    exactly you're right , BUT how do I add them? that's why I need to exact the divisors to add them.
  24. Replies
    20
    Views
    4,495

    No that's not what I mean. IF ( n % i = 0 ) that...

    No that's not what I mean. IF ( n % i = 0 ) that means i is a divisor, but how do I extract the divisors so I can add them? sorry I'm new.
  25. Replies
    20
    Views
    4,495

    ok what if I say this: int n; cout

    ok what if I say this:


    int n;
    cout << enter number;
    cin >> n;

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

    if ( n % i = 0 )
Results 1 to 25 of 45
Page 1 of 2 1 2