Search:

Type: Posts; User: elad

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,041

    you need to include the iostream header file.

    you need to include the iostream header file.
  2. Replies
    3
    Views
    850

    The error message means that the >> operator...

    The error message means that the >> operator isn't (and can't be)
    overloaded for the purpose of reading into an array itself, such
    as you try to do with this:
    ...
  3. Replies
    3
    Views
    880

    You're more likely to catch flies with honey than...

    You're more likely to catch flies with honey than with sour. Around here that means show what you've got (ie code) and ask specific questions about specific problems. Since you've passed the...
  4. Replies
    10
    Views
    1,045

    http://www.cprogramming.com/tutorial/lesson4.html...

    http://www.cprogramming.com/tutorial/lesson4.html

    That's the tutorial on writing and using functions. If you read it I think you'll be able to solve your problem. In fact looking at the tutorial...
  5. Replies
    7
    Views
    1,073

    The current version of del() will only delete the...

    The current version of del() will only delete the first node of the list. If that's the purpose of del(), fine. If del() is supposed to allow the user to delete the entire list on demand rather...
  6. Replies
    3
    Views
    1,215

    Hmmmm ^Thinks out loud^ So to keep track...

    Hmmmm

    ^Thinks out loud^

    So to keep track of which "version" of the dialog box I'm using I could either create a global variable or else tuck an additional member variable in the struct I pass...
  7. Replies
    3
    Views
    1,215

    Reusing dialog procedure and resource file code

    I've been working on a program that uses a resource file to
    produce a dialog box that has 17 edit boxes for user input
    regarding members of a class and several buttons to control
    doing things with...
  8. Replies
    14
    Views
    1,469

    >>Let me give you a sample of the code....

    >>Let me give you a sample of the code. Everything works as it should when complied. (just not with the new part "Added/End Added")

    That's because you didn't indicate you had a running program...
  9. Thread: Minimum element

    by elad
    Replies
    6
    Views
    911

    >>while (timer.elapsed_time(Timer::VIRTUAL)

    >>while (timer.elapsed_time(Timer::VIRTUAL) < tmax)

    This implies you are able to determine the difference between a reference start time and current time to get elapsed time. Whatever...
  10. Thread: Minimum element

    by elad
    Replies
    6
    Views
    911

    >>this ouput it gives all the values of every...

    >>this ouput it gives all the values of every solution it finds within the time limits. I want to return me the better( which is the smallest).

    Seems to me you will need to define what you mean...
  11. Thread: array help

    by elad
    Replies
    16
    Views
    1,646

    Initialize each element of range[] to zero before...

    Initialize each element of range[] to zero before you call the first ++ operator on the value.

    Also, in looking quickly at your code I don't see the need for the for statement listed below:

    ...
  12. Thread: Algorithm help

    by elad
    Replies
    14
    Views
    1,459

    Problem 1: if you flip element five you 3210...

    Problem 1:
    if you flip element five you 3210 reading left to right and 0123 reading right to left. Of course, if you are only allowed to read left to right, then it's a moot point.

    Problem 2:...
  13. Thread: Algorithm help

    by elad
    Replies
    14
    Views
    1,459

    For what they are worth here's my thoughts:...

    For what they are worth here's my thoughts:
    Problem 1:
    Assuming the nondecreasing sequences need to be read left to right (if you flip the 7 and 3 at element 5 in the example you get a 4 element...
  14. Replies
    52
    Views
    6,386

    >>You mean like this? Yes. Now change...

    >>You mean like this?

    Yes.

    Now change this:

    bubbleSort(int numbers[], int array_size); //this is a function declaration

    to this:
  15. Replies
    52
    Views
    6,386

    >>What are the mistakes in this code? After a...

    >>What are the mistakes in this code?

    After a quick look through, there should be a { between the following two lines:


    for ( rating = 1; rating <= 9; rating++ )

    cout << setw( 8 ) <<...
  16. Replies
    3
    Views
    1,129

    int account_sort(int account[];int& total;int...

    int account_sort(int account[];int& total;int target)

    Replace the semicolons with commas.
  17. Replies
    9
    Views
    1,120

    Basically, scanf() ignores leading whitespace,...

    Basically, scanf() ignores leading whitespace, but getchar() doesn't. In addition scanf() stops input into the variable when nonleading whitespace is encountered, but doesn't remove the nonleading...
  18. Thread: Check out my MRI

    by elad
    Replies
    19
    Views
    3,667

    What's really scary is the math and the physics...

    What's really scary is the math and the physics behind performance of an MRI scan. If you want a challenge, read up on that stuff!

    I hope neither of the disorders is too debilitating.
  19. Replies
    9
    Views
    1,341

    I haven't analyzed your program extensively but I...

    I haven't analyzed your program extensively but I suspect the problem is here:

    char *value; //char array info portion of node

    value is not a char array. value is a pointer. In order to make...
  20. Replies
    11
    Views
    2,617

    In the code you posted the if(number != 0); line...

    In the code you posted the if(number != 0); line is useless.

    Also, the requirements you posted said you were to display the statistical information regarding the integer series only once. In...
  21. >>yes the overall output is correct but the last...

    >>yes the overall output is correct but the last ip address suppose to be 4//...
    i mean count 4 instead of 5

    This type of problem frequently occurs because of the wrong condition used in a loop...
  22. Replies
    4
    Views
    866

    class ClVendeur; class ClEntreprise; These...

    class ClVendeur;
    class ClEntreprise;

    These are called forward declarations. They can be used to tell the compiler "trust me, a class/struct by this name will be declared and defined later time...
  23. Replies
    11
    Views
    1,214

    This type of communication is not the best for...

    This type of communication is not the best for discussing topics that take up full chapters (or more) in books. If you don't have a good book on C++ and you want to continue working with the...
  24. Replies
    11
    Views
    1,214

    int rush cin >> rush; put a semicolon...

    int rush
    cin >> rush;


    put a semicolon after rush in first line.

    However, both of the above lines are superfluous and can be removed without penalty.

    A more sophisticated approach...
  25. Replies
    86
    Views
    9,166

    >>how did you save lives? Were you a doctor? ...

    >>how did you save lives? Were you a doctor?

    Other possibilities include, but are not limited to: priest/imam/rabbi/minister/etc, veterinarian, volunteer at a crisis hotline, defense attorney...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4