Search:

Type: Posts; User: freddyvorhees

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    854

    while not '\n'

    suppose you will get the average of N numbers.
    the input would just be the N numbers

    e.g.

    1 2 3 4
    2.5

    1 2 3 4 5
    3
  2. Replies
    6
    Views
    1,514

    c++ to java

    the problem:

    say you input from a file

    "name1 1 2 3 4 5 6"
    "name2 1 2 3 4 5 6"
    "name3 1 2 3 4 5 6
    "name4 1 2 3 4 5 6"
    "name5 1 2 3 4 5 6"
    "name6 1 2 3 4 5 6"
  3. Replies
    7
    Views
    2,922

    I think the subtraction algorithm wont work. The...

    I think the subtraction algorithm wont work. The integer size is too large.

    I'll try two's compliment
  4. Replies
    7
    Views
    2,922

    i need this by monday if you can just give me...

    i need this by monday

    if you can just give me some suggestions i'd really appreciate it
  5. Replies
    7
    Views
    2,922

    the first non zero digit is signed. I store...

    the first non zero digit is signed.

    I store the ones place on index 0.
  6. Replies
    7
    Views
    2,922

    40 digit integer arithmetic (arrays)

    what is the best way to deal with negative integers?

    what I did is to string the integer. store each digit in an int array[40]. in case of a negative integer, the only negative digit will be the...
  7. Replies
    5
    Views
    1,000

    Nice. Thanks

    Nice. Thanks
  8. Replies
    5
    Views
    1,000

    How do I use this function can you give me an...

    How do I use this function can you give me an example?
  9. Replies
    5
    Views
    1,000

    locate index

    It determines the location index of a number k.

    #include <iostream>
    using namespace std;

    int main()
    {
    int a[1024], k, x, i, flag;
    unsigned int n;
  10. Replies
    4
    Views
    1,022

    I think its okay the max is given by our teacher,...

    I think its okay the max is given by our teacher, that's what hes asking for.

    I changed my code to this


    So I guess there's nothing wrong anymore, right?
  11. Replies
    4
    Views
    1,022

    Array sort

    It sorts an array, max size of array is 1024 - the max size is given by our teacher.



    #include <iostream>
    using namespace std;

    int main()
    {
    int a[1024], n, x, i, j;
  12. Replies
    9
    Views
    33,132

    Nice. Thanks

    Nice. Thanks
  13. Replies
    9
    Views
    33,132

    So, space is a character

    So, space is a character
  14. Replies
    9
    Views
    33,132

    Are the answers different?

    Are the answers different?
  15. Replies
    9
    Views
    33,132

    Is space a character ?

    Is space a character ?
  16. Replies
    15
    Views
    12,099

    One more question. You can't undo what you've...

    One more question. You can't undo what you've drawn right?
  17. Replies
    15
    Views
    12,099

    Nice. Thank you very much

    Nice. Thank you very much
  18. Replies
    15
    Views
    12,099

    Whats the "pen up"-"pen down" for if you just...

    Whats the "pen up"-"pen down" for if you just have to enter the coordinates?
  19. Replies
    15
    Views
    12,099

    So while using it you cant see what you are...

    So while using it you cant see what you are drawing until you press 6?
  20. Replies
    15
    Views
    12,099

    Turtle Graphics, how does it work?

    The Problem:



    ( Turtle Graphics ) The Logo language, which is popular among elementary school children, made the concept of
    turtle graphics famous. Imagine a mechanical turtle that walks...
  21. Replies
    15
    Views
    4,326

    Where should I do the modification in main or in...

    Where should I do the modification in main or in the function?
  22. Replies
    15
    Views
    4,326

    This is the whole problem: (Visualizing...

    This is the whole problem:

    (Visualizing Recursion) It is interesting to watch recursion "in action." Modify the factorial function of Fig. 6.29 to print its local variable and recursive call...
  23. Replies
    15
    Views
    4,326

    Cant understand it I thought void doesn't...

    Cant understand it


    I thought void doesn't return anything, so it means its wrong to use void?



    A little more hint. Please.
  24. Replies
    15
    Views
    4,326

    But using void is appropriate, right?

    But using void is appropriate, right?
  25. Replies
    15
    Views
    4,326

    Recursion

    Problem:
    It should print its local variable and recursive call parameter. For each recursive call, display the outputs on a separate line and add a level of indentation. Do your utmost to make the...
Results 1 to 25 of 91
Page 1 of 4 1 2 3 4