Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: josh26757

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: I'm having trouble with my Merge Sort - tried it a couple different ways and this

    Here is an example I found here:
    http://login2win.blogspot.com/2011/06/merge-sort.html

    I had to change it around a bit to get it to compile, but it is now a working example.



    #include...
  2. Replies
    8
    Views
    521

    Re: Linked List Problem

    Thanks, I had already visited the reference and understand why even a professional would choose to use this. Type errors just happen and create bugs so this tested template makes since. Thanks for...
  3. Replies
    8
    Views
    521

    Re: Linked List Problem

    I guess I should be patient because my next semester is algorithms and data structures.
  4. Replies
    8
    Views
    521

    Re: Linked List Problem

    Bug free is obviously the goal. I don't think I am that far from the program working though. It seems like the solution would be easy for a experienced programmer. If you feel the solution would be...
  5. Replies
    8
    Views
    521

    Re: Linked List Problem

    Here is the function called "IN" the current function:


    Event *SetEvent()
    {
    string event = "", location = "", date = "", time = "", note = "";
    Event *New = new Event;

    ...
  6. Replies
    8
    Views
    521

    Re: Linked List Problem

    this is very true! But being a beginner I am trying to fully understand the basics and learn from problems like this. Any suggestions or is more code needed? I feel like I am missing some rule here.
  7. Replies
    8
    Views
    521

    Linked List Problem

    I am building a program for my brother to edit a few things on his website that I do not want to be bothered with. The one I am working on now is the EVENTS page. What is going on is that I am...
  8. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Perfect!!!
    Thank you, that looks much better. I was unsure what the proper indention should be. You explained and showed it perfectly. I will definitely use that from now on.
  9. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Like This?



    #include <cstdlib>
    #include <iostream>
    #define year 12

    using namespace std;
  10. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Ok-Other than the total being a couple dollars different than BankRate.com Everything seems to be working well with the new code. I double checked my numbers against their
    ((months x...
  11. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Thanks! that is a great explanation. I will try and figure it out and change my code. That should fix the problem. The double is causing the problem here. Thank you.
  12. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Not really using a book. More like watching lectures. I understand c++ is all about object or classes. I do need to do this and will be a lot more comfortable with it after I start working on java. I...
  13. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Oh I see what I did wrong. I need to add all the interest together or
    ex:


    day[1] =571;
    day[2]=579;
    ect.....

    for(int i = 0; i<day.size();i++){total=total+day[i];}
    AverageDailyBalance =...
  14. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    While I have so many peoples attention can I ask what would benefit me the most to study? My main concentration is going to be Java in my associates degree then it moves to c++ introduction at the...
  15. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    lol!!!
    I am happy today and thinking positive :)
    Helps ease the pain!!!
    I know that is a lame way to recreate the days in a particular month and I need to write a function to correct it, but on...
  16. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    I will work on changing over the code tonight. I can see there needs to be exception handling going on just in case the user tries to enter cents(157.03). I know I also need to add exception handlers...
  17. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    I am entering 5000 for the bill, 18 for the interest and minimum payment for the selection. This is the example in my Personal Finance class.
  18. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    I understand what you are saying just how do you implement it? Better than wasting your time, can you give me a link that explains this? I am fairly new so I need a basic explanation.
  19. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    To recreate it put


    Payment=Total*MinInterest;

    at the end of the loop in calculate.
    The reason for this is to reset the minimum payment for each month. If you also add


    cout<<Payment<<"...
  20. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Does this fix it?


    #include <cstdlib>
    #include <iostream>
    #include "math.h"
    #define year 12
    #define MinInterest .03
    #define DaysInCycle 30
  21. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    Interesting,
    If you do not mind give me an example of using integer math. I may be misunderstanding you but how do I get cents with an integer( I am such a noob).
  22. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    I am not getting any warnings?
    TotalPaid is initialized at the beginning of calculate() What line is showing the error?
  23. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    BTW-Let me know what looks wrong in my programming grammar. Is my code formatted OK? What should I be working on?
    I am currently working on Algorithms and data logic when I have time.
  24. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    The compound interest is not there is why it will come out as 5100$ Just go to the main loop in Calculate and add


    Payment=Total*MinInterest;

    I added


    cout<<Payment<<" "<<month<<endl;
  25. Thread: Loop Problem

    by josh26757
    Replies
    35
    Views
    2,664

    Re: Loop Problem

    ooops :)
    I had made a change while testing. It is fixed now. Thanks for the quick response!
Results 1 to 25 of 52
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center