Search Results

Showing results 1 to 40 of 226
Search took 0.02 seconds.
Search: Posts Made By: no1zson
Forum: C Aug 20th, 2009
Replies: 15
Views: 487
Posted By no1zson
Remember if you have a scanf in a loop condition, you need to have a getchar inside and outside the loop. Here's the runtime after the modification's:

Thanks for that tip. I did not know that was...
Forum: C Aug 20th, 2009
Replies: 15
Views: 487
Posted By no1zson
Thanks again, I really do appreciate your efforts, and I am glad you are not aggravated.
I have gone to great lenghts to NOT copy your code because it is so well written (at least to me it is) and...
Forum: C Aug 20th, 2009
Replies: 15
Views: 487
Posted By no1zson
yellowSnow -
Are you really aggravated that I did not take your code and post it in my program verbatim? I thought the idea out here was NOT to do that.

I am not IGNORING your advice. I simply do...
Forum: C Aug 19th, 2009
Replies: 15
Views: 487
Posted By no1zson
What is MinGW port of gcc?
Forum: C Aug 19th, 2009
Replies: 15
Views: 487
Posted By no1zson
That is what I have heard, but it is required for class.
I looked for a debugger today just to help me troubleshoot so that maybe I can quit bothering you guys with this silly stuff, but I cannot...
Forum: C Aug 19th, 2009
Replies: 15
Views: 487
Posted By no1zson
Thanks Dave.
I tried playing with those a few weeks ago when I first started, but just got confused.
I have been using scanf simply because it is a shorter command and easier to understand.

It...
Forum: C Aug 19th, 2009
Replies: 15
Views: 487
Posted By no1zson
I do not have to press enter twice at any part of your program. It's probably caused by those weird while-getchar's. Remove all of those, and make sure a getchar(); is used after every scanf. That...
Forum: C Aug 19th, 2009
Replies: 15
Views: 487
Posted By no1zson
I have to hit <Enter> twice after inputting my dollar amount and store selection
I think I am just missing something simple somewhere, but am going stupid looking for it.

Went to the internet to...
Forum: C Aug 19th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
That is what I will do. I have never used a debugger before, so now is as good a time as anyone.

I did not really code your example verbatim, more I was trying to read it as I would mine, see what...
Forum: C Aug 18th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
yellowSnow:
I like that code. It is so close to what I was trying to do that I understand it, and once I get it doing exactly what I want and become refined enough to improve on it I will have the...
Forum: C Aug 18th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
I really have yellowSnow, I love the term 'nutted it out", used that alot in the Marine Corps! lol

I did go back to a previous version of my code with a GOTO still in it just because I did not...
Forum: C Aug 17th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
I feel like I am so close. I know I have not done as some have suggested, but a lot of that is simply above me, and I am trying to do this as simply as possible so that I understand what I am doing. ...
Forum: C Aug 14th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
I will try and get you a run down before I finish up today. I was frustrated last night when I posted that, and I am back inside trying some stuff today.

It is not that I am ignoring advice, but I...
Forum: C Aug 13th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
wow.
I have never had anything that I just flat out could not get if I tried long enough ... until now.
YellowSnow, I tried your code every which way I could, and just could not get it to work...
Forum: C Aug 13th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
Great. I will see what I can do with this example.
I will work on it tonight and tomorrow and let you know how I do.

I appreciate the help. :)
Forum: C Aug 12th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
not sure if this qualifies as progress or not :)

but with this code my menu validity check appears to work. if i enter anything other than 1, 2, or 3 it prompts me to retry.
it does not work for...
Forum: C Aug 12th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
Dave, that is so far beyond me I only vaguely understand what you are trying to say.
Forum: C Aug 12th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
Hi Yellowsnow,
I do remember that. That instruction got me to where I am today. I think the extra <RETURN> I have to hit everytime I input has something to do with your comment about 'consume the...
Forum: C Aug 12th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
Hi Hiroshe,
I am trying to check for a character, any character because anything NOT a dollar amount would be an invalid entry.
If a character, any character is entered I want the WHILE loop to...
Forum: C Aug 12th, 2009
Replies: 22
Views: 1,052
Posted By no1zson
Realized something today by accident. I am asking for a dollar amount in my program, and checking to make sure it is a valid amount above $0.
What I am not checking for is a character response. I...
Forum: C Aug 10th, 2009
Replies: 12
Solved: GOTO command
Views: 716
Posted By no1zson
never knew such a thing existed. I will give it a try.
Thanks again for all your help.
Forum: C Aug 9th, 2009
Replies: 12
Solved: GOTO command
Views: 716
Posted By no1zson
Thanks Yellow Snow, I am going to give that a try.
Can you help me on something stupid real quick? I have two copies of my code saved, one works and one does not (as you pointed out). For the life...
Forum: C Aug 7th, 2009
Replies: 12
Solved: GOTO command
Views: 716
Posted By no1zson
Here is the type of program I am talking about. It is not a nested loop or anything like that, but once I get to the end, if they user enters Y I would like to send them back to the top and start all...
Forum: C Aug 7th, 2009
Replies: 12
Solved: GOTO command
Views: 716
Posted By no1zson
This suggestion intrigues me. Putting my main loop inside another loop. I am not sure I understand how to do it, and it sounds almost more complicated than the problems it might potentially avoid,...
Forum: C Aug 7th, 2009
Replies: 12
Solved: GOTO command
Views: 716
Posted By no1zson
I am new to C programming and have been using the GOTO all over the place until today when I was informed it is not preferred practice, and due to its adverse affects on debugging and maintenance...
Forum: C Aug 6th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
Thanks.
I was hoping that was well planned logic! lol

Shows what I know.
Forum: C Aug 6th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
Meaning if it was not misused there is no issue?

Perhaps it is my lack of experience, but I would think a sharp mind might also weigh the possibility of future POTENTIAL issues against this...
Forum: C Aug 6th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
9868,
I am going to give that a try and see what happens. Thanks for the tips.
What is wrong with GOTO? What would you suggest in its place?
Forum: C Aug 5th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
If I remove it my program does not compile. That is why I was asking. Was not sure what it was for, but I know it had to be there.

Thanks guys.
Forum: C Aug 4th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
Thanks
I thought it was some kind of error deal.
What do you mean exactly, "It's on main()"
Forum: C Aug 4th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
Sorry
Here is the entire program. Notice the last two loops. Return 0; completes them both. What does that accomplish?


#include <stdio.h> // standard input output library

//defines tax...
Forum: C Aug 4th, 2009
Replies: 13
Solved: Return 0;
Views: 733
Posted By no1zson
What exactly does the "Return 0;" indicate in this function?
I know my code will not even compile without it, but I have just been putting it in out of habit without realizing that I do not even...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Thanks guys. Eliminating the switch ended up being the way to go. It was quicker than playing with the whole IF mess.
I still have a little syntax stuff to work out but your help is much...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
PetuniaRose, you and me both. I am no C programmer by a long shot.
You were right about the second IF, but my problem appears to be in my switch statement. If I take it out
{
switch...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Brilliant suggestion Hiroshe,
I took that out altogether, did a few quick adjustments and eliminated a lot of unneeded code.
Trouble is, now I get no output! lol
No matter what I enter I end up at...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
I caught that too PetuniaRose, I am still getting a parse error on that line though, and it seems like it should work to me.
if (storenum >=1 && if storenum <=3) //While Loop to Request Input...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Sorry MosaicFuneral, I do not even know what that means.
If I could I would like to get it working correctly as I have it in my mind and then refine from there. I also have a few ideas in that...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Hiroshe,
I started with a While loop and decided to change.

What I am now trying to do is IF 1 2 or 3, go to the appropriate CASE statement,
ELSE go to my INVALID error statement.
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Sorry. You are right. I am just having one of those days.

If the user selects 1, 2 or 3 then they should be sent to the CASE switch, otherwise down to the INVALID error message and forced to...
Forum: C Aug 4th, 2009
Replies: 15
Solved: Simple IF Loop
Views: 859
Posted By no1zson
Hey guys, maybe I am just worn out today, but can somebody look at my IF loop (the first one for selcting 1-3) and see where I am going wrong?
Everything else seems to be pretty good I think, but...
Showing results 1 to 40 of 226

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC