Search:

Type: Posts; User: Vireyda

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,072

    If/Else Problem

    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...
  2. Replies
    8
    Views
    991

    actually, I've just done some testing of the...

    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...
  3. Replies
    8
    Views
    991

    I should listen to you...Thank you. Your...

    I should listen to you...Thank you. Your suggestion works perfectly.

    Vireyda
  4. Replies
    8
    Views
    991

    I've tried both suggestions, and I still can't...

    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...
  5. Replies
    8
    Views
    991

    Rules for Comparison

    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. ...
  6. Replies
    4
    Views
    948

    Thanks for the help, but I was under the...

    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
  7. Replies
    4
    Views
    948

    Not sure what the Problem is here

    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...
  8. Thread: gets VS. scanf

    by Vireyda
    Replies
    1
    Views
    3,388

    gets VS. scanf

    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...
  9. Replies
    13
    Views
    1,605

    Thanks so much. It works now. I get so confused...

    Thanks so much. It works now. I get so confused about pointers.

    Vireyda :)
  10. Replies
    13
    Views
    1,605

    I'm not getting any errors when I compile the...

    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...
  11. Replies
    13
    Views
    1,605

    Okay, I made the reccommended change, but my...

    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.
  12. Replies
    13
    Views
    1,605

    I think I'm starting to understand, but I still...

    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...
  13. Replies
    13
    Views
    1,605

    Do I need to use *num if I want to read an input...

    Do I need to use *num if I want to read an input into that variable?

    Thanks,
    Vireyda
  14. Replies
    13
    Views
    1,605

    be dereference do you mean that I should drop the...

    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
  15. Replies
    13
    Views
    1,605

    Trouble with Call by Address

    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...
  16. Thanks for your help. I got everything working...

    Thanks for your help. I got everything working but I was a little confused when "foo" was inserted between brackets. What does this mean?
  17. I'm not sure where I went wrong with this - pls help

    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...
  18. Replies
    1
    Views
    812

    Problems with a function...please help

    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...
  19. Replies
    2
    Views
    1,638

    Thanks for the help. That clarifies so many...

    Thanks for the help. That clarifies so many problems for me. :D

    Vireyda
  20. Replies
    2
    Views
    1,638

    reverse an array - help appreciated

    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...
  21. Replies
    11
    Views
    5,972

    Thanks everyone. Your help was invaluable. The...

    Thanks everyone. Your help was invaluable. The program works for me now and is a big relief off my shoulders.

    Vireyda :)
  22. Replies
    11
    Views
    5,972

    Can't exit a do/while loop - please help

    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. ...
  23. Okay, I figured out where I was missing changes. ...

    Okay, I figured out where I was missing changes. Thanks again for all the help. You've just ended two days of frustration.

    Vireyda :)
  24. I just want to clarify that the function...

    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...
  25. I've made all the corrections you suggested, but...

    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...
Results 1 to 25 of 26
Page 1 of 2 1 2