jimblumberg's Profile User Rating: *****

Reputation: 4498 Guru
Active Posts:
15,061 (7.75 per day)
25-December 09
Profile Views:
Last Active:
User is offline Yesterday, 06:52 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Expert In:

Latest Visitors

Icon   jimblumberg has not set their status

Posts I've Made

  1. In Topic: Idea or what is wrong

    Posted 20 Apr 2015

    You need to sit down and write out the actual logic table for your chart. Your logic doesn't come close to matching your chart.

    Start by creating the logic required for each "MAT" separately, you can combine things after you get your logic close to being correct.

  2. In Topic: Idea or what is wrong

    Posted 20 Apr 2015

    Please use code tags when posting code!


  3. In Topic: Idea or what is wrong

    Posted 20 Apr 2015

    Let's look at the following snippet:

        if ( M1 >= 17 && M1 <= 99){
        if ( M2 >= 15 && M2 <= 21){

    Now look at the first "case" in your picture:

    Mat 630 M1 should be between 17 and 99 and m2 must be between 15 and 21.

    Does the above snippet match the requirements? Answer: NO.

    Your logic says if m1 is between 17 and 99 do something. If M2 is between 15 and 21 do something.

    What you should have is something like:
        if(( M1 >= 17 && M1 <= 99) && ( M2 >= 15 && M2 <= 21)){
           // Do something.
        else if(...)

    Also note that you can use else if() so that the next if() statement will only be done if the first if() doesn't execute.

  4. In Topic: Idea or what is wrong

    Posted 20 Apr 2015

    Please post your current properly formatted code, that addresses the issues stated in the previous posts.

  5. In Topic: C++ shopping cart, cant get total added up

    Posted 20 Apr 2015

    Where do you input 0? That is the only time you do the calculation for the totals.

    There is nothing technically wrong with your placement of the variable definitions as long as you realize that those variables are limited to the while loop and are not visible outside that loop. Also since those variables are reinitialized for each time through the loop you may not get correct results if you try to enter more than 1 item. So you may want to take the advice given in post #3.

    Also in C++ programs you should avoid using exit() since this C function doesn't always properly terminate C++ classes properly. Since you're using this function in main() a simple return should be adequate.


My Information

Member Title:
Age Unknown
December 6

Contact Information



Page 1 of 1
  1. Photo

    modi123_1 Icon

    17 Nov 2014 - 08:11
    I like brocken's comment "I don't know much about coding, but it would be really easy".
    Heh.. I don't know anything about the topic, but I know it is easy.
  2. Photo

    brockenglass101 Icon

    22 Oct 2014 - 02:34
    I know that this isn't what this site is for but many people in the pc gaming comunity have been looking for screen magnification program that would zoom in on the center of the screan rather then the cursor (turned on and off with a hotkey). Now, I am not going to lie, I don't know much about coding, but it would be really easy to make program like this one.
    I hope you will find ...
  3. Photo

    KnifeTea Icon

    11 May 2014 - 05:55
    thanks for the help Jim!
  4. Photo

    tarmizi_adam2005 Icon

    04 Dec 2013 - 07:15
    Just stopping by to say Hello Jim. I've learned quite a few things from your posts in the c/c++ forum.
Page 1 of 1