needhelpest's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
40 (0.07 per day)
Joined:
12-January 13
Profile Views:
1,266
Last Active:
User is offline Apr 22 2013 02:18 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   needhelpest has not set their status

Posts I've Made

  1. In Topic: How to fix expected `;' before numeric constant error?

    Posted 24 Feb 2013

    View PosttlhIn`toq, on 24 February 2013 - 02:11 PM, said:

    Its saying you forgot to put a ; at then end of one your lines.
    So the line the compiler stopped on is the line right after where it was expecting to see a ; ending the previous line.

    Line 21 sure looks pretty screwy with those spaces in the middle of the number. You might want to look into that.After all that seems like it fits the description.
    It expected a ; before a numerical constant, and 000 would be a numerical constant, and that 1 would have been the end of the line before all the goofy 000 000 + 0 business.

    Oh, youre right. I fixed the goofy spaces and the program crashes on me now :(.
  2. In Topic: How to display numbers that input number is divisible with?

    Posted 17 Feb 2013

    View PostCTphpnwb, on 17 February 2013 - 02:21 PM, said:

    Huh? What do you mean by mathematically correct?

    A brute force method of determining if a number is prime is to check if it is devisable by any number smaller than it but greater than 1.

    Could you provide an example code to me , because when I tried it, it just made the program to give me out prime number result only.Also, this has not been connected to the question in the title in anyway to my understanding.
  3. In Topic: How to display numbers that input number is divisible with?

    Posted 17 Feb 2013

    View PostCTphpnwb, on 17 February 2013 - 01:52 PM, said:

    if(P%a==0) and a is not equal to 1 or P then it's not prime. Why are you increasing count?

    You need it for it to be mathematically correct,try to run it without count.
  4. In Topic: Having trouble fixing my errors in the code

    Posted 31 Jan 2013

    Tried using do-while method from my previous experience, the problem remains the same.
  5. In Topic: Having trouble fixing my errors in the code

    Posted 31 Jan 2013

    View PosttlhIn`toq, on 31 January 2013 - 11:19 AM, said:

    I'm going to bow out of the conversation now.

    It seems you've stopped debugging your own homework because we're doing it for you.

    Nothing you've done or are doing is hard. It just requires you to pay attention and make a little more effort.

    Step through your program in the debugger line by line and look at the values of the variables and *thing* as to why each if passes or fails.



    From my FAQ list:

    Q: I do x and y happens which I didn't expect but I don't know how to figure out why. How do I debug and find my problem?
    A:

    I was actually watching these videos as I waited for a reply from the community, I have used do&while earlier for programs with multiple questions. Is that what I should now?
    In addition , I use devcpp as it is required by the lecturers of my eCourse.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

needhelpest hasn't added any friends yet.

Comments

needhelpest has no profile comments yet. Why not say hello?