Reputation: 0 Apprentice
- Active Posts:
- 40 (0.1 per day)
- 12-January 13
- Profile Views:
- Last Active:
- Apr 22 2013 02:18 PM
- Dream Kudos:
Posts I've Made
Posted 24 Feb 2013Its 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 .
Posted 17 Feb 2013Huh? 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.
Posted 17 Feb 2013
Posted 31 Jan 2013Tried using do-while method from my previous experience, the problem remains the same.
Posted 31 Jan 2013I'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?
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.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
needhelpest hasn't added any friends yet.