Hello,
I'm having an issue with an if/else or maybe just the boolean conditions for it but I'm really stuck. But what my problem is that The print statement "There is no record matching etc..." is...
Type: Posts; User: Vireyda
Hello,
I'm having an issue with an if/else or maybe just the boolean conditions for it but I'm really stuck. But what my problem is that The print statement "There is no record matching etc..." is...
actually, I've just done some testing of the program and I'm finding that it is excluding .4 when it should be included, but if I change the .4 to .41, the program starts including .4 and .41, when...
I should listen to you...Thank you. Your suggestion works perfectly.
Vireyda
I've tried both suggestions, and I still can't get it to work for me. With the || instead of the &&, I end up in a never ending loop that rejects all input. With the reversed signs the program is...
I'm trying to error check against being able to put in a value less than .3 and more than .4. I'm having some problems though. When I enter a value outside of this range, the program accepts it. ...
Thanks for the help, but I was under the impression that I was using C++. The course I'm enrolled in is called intro to C++ I believe.
Vireyda
Hello,
I'm having an issure with this section of code. It keeps crashing after I enter the employee number. I have the sense that the value isn't being assigned to the variable FindNumber, but...
Hello,
I know that in order to include a whitespace character in a string I need to use a gets() but it I can't input any charaters in before the program moves onto the next command asking for a...
Thanks so much. It works now. I get so confused about pointers.
Vireyda :)
I'm not getting any errors when I compile the program or build it. It just crashes when I get to the for loop.
void AddData(struct TravelCosts expenses[], int *num)
{
//declaraions...
Okay, I made the reccommended change, but my program still crashes when I get to the for loop. I don't know what's going on here.
I think I'm starting to understand, but I still feel very confused about pointers. I'm trying to use num in a for loop now, but once the new value is input by the user and read it crashes before it...
Do I need to use *num if I want to read an input into that variable?
Thanks,
Vireyda
be dereference do you mean that I should drop the int in the function? Is there a way I can do this with &'s instead?
Thanks,
Vireyda
Hello,
I'm trying to wirte a program but I'm having trouble with call by address. When I use the * in the function prototype and in the function itself and an & in the function call in main, I...
Thanks for your help. I got everything working but I was a little confused when "foo" was inserted between brackets. What does this mean?
Hello,
I'm writing a simple program that will book seats on a flight but I've been struggling with this section of code for a few days now and decided to seek some help. whe I run this section, I...
Hello all,
I'm having trouble with this section of my code. My program produces an illegal error and then ends before it will call to either of the functions FirstClass or Economy. Can anyone...
Thanks for the help. That clarifies so many problems for me. :D
Vireyda
Hello,
I'm trying to figure out to to print an array in reverse, but I'm hiving some troube with the for loop, I think. I might be somethng else, but I'm not sure. Can someone tell me what I've...
Thanks everyone. Your help was invaluable. The program works for me now and is a big relief off my shoulders.
Vireyda :)
Hello again,
I was wondering if anyone might be able to tell me why the program won't exit the loop when response equals 'q' or 'Q'. When I select a Q or a q, the program just loops contiuously. ...
Okay, I figured out where I was missing changes. Thanks again for all the help. You've just ended two days of frustration.
Vireyda :)
I just want to clarify that the function declarations are the prototypes and the definitions are the functions that are called and contain code within them? And the calls are within the function...
I've made all the corrections you suggested, but I'm still getting errors (added below) that I don't understand at all and have no idea how to fix. Do you know what this might mean and how to...