Search:

Type: Posts; User: jstevanus

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    2,863

    jlou, thanks for getting back online!! I...

    jlou,

    thanks for getting back online!! I found that problem myself, and was glad when I did find it. Do you have an instant messaging program you use that I could communicate with you on? It...
  2. Replies
    15
    Views
    2,863

    This is my header file cs116prog5.h that goes...

    This is my header file cs116prog5.h that goes with my cs116prog5.cpp file:



    const float TAX_RATE = 0.06;
    const int NUM_ITEMS = 9;

    struct SalesItem
    {
    char upc; // universal...
  3. Replies
    15
    Views
    2,863

    Ok, I'm posting my *.cpp program here, I also...

    Ok, I'm posting my *.cpp program here, I also have a *.h file with my function prototypes and struct definition included.



    // Josh Stevanus Prog 5
    // last program

    using namespace std;
    ...
  4. Replies
    15
    Views
    2,863

    the || portion of my IF statement has been fixed,...

    the || portion of my IF statement has been fixed, I can post the new code if you would like. Thanks again for your patience. I am sorry if I'm unable to phrase my questions correctly, this is my...
  5. Replies
    15
    Views
    2,863

    jlou, after I make the function call...

    jlou, after I make the function call accept_item_code(upc); i use cout to print a message so that I know the function call was completed. I do not get that message, so I know the function is wrong...
  6. Replies
    15
    Views
    2,863

    Frantic, I don't see where you changed my code at...

    Frantic, I don't see where you changed my code at all...
  7. Replies
    15
    Views
    2,863

    function call

    You're right, I have posted many topics. I will continue using this thread. As far as my function call I'm just using:

    accept_item_code(upc);


    another note: do I need to declare upc as a...
  8. Replies
    15
    Views
    2,863

    Need help urgently

    I have a program due tonight and am having numerous problems. Here is one function that is not working right:



    void accept_item_code (char& upc)
    {
    bool valid = false;

    cout << endl...
  9. Replies
    1
    Views
    725

    New function problem.. anyone help?

    I recoded my function, but it is still stopping my program after the user enters the input. The function should return the char value if the user enters a valid letter (A through I or X). But, it...
  10. Replies
    7
    Views
    1,149

    Looong IF statement.. help

    I have a very long IF Statement that doesn't seem to be working. What is the proper way to code this:



    if (c == 'A' || c == 'B' || c == 'C' || c == 'D' || c == 'E' ||
    c == 'F' c...
  11. Replies
    10
    Views
    1,735

    Thank You!

    Thank you very much, that was exactly the type of answer I was looking for. I see what you mean, and I am changing my code immediately. I wish you were around all the time for my problems!
    Thanks...
  12. Replies
    4
    Views
    1,401

    Newbie problem with function coding..

    I posted a thread before, but I have recoded since. All my function prototypes are now in my header file, and their definitions are in my *.cpp file. The function I am having trouble with seems to...
  13. Replies
    2
    Views
    861

    *.h file, function definitions.. help

    I was told by my professor that my function prototypes should be included in my *.h file. But, do I also include the function definitions in that file, or do those go in my *.cpp file? Please...
  14. Replies
    10
    Views
    1,735

    new problem..

    Ok, that first code I posted is working now, but the programs seems to lock up right after that. Here is the code for the function I'm using:

    char accept_item_code ()
    {
    char c;

    cout...
  15. Replies
    10
    Views
    1,735

    update..

    This part of my code is included in a header file. This is the first time I've used a *.h file in my program. I have tried that code in a separate program and it works fine, but in this one it does...
  16. Replies
    10
    Views
    1,735

    Beginner's problem.. please help

    here is the portion of my code that doesn't seem to be working... please help if you can at all:

    cout << "Enter product code: ";
    cin >> c;
    c = toupper(c);
    cout << c;


    Josh...
  17. Replies
    4
    Views
    894

    manofSteel

    thank you sir, i think that will help me a great deal!
  18. Replies
    4
    Views
    894

    update

    I do not have the index number to the array. I only have the value of the char upc, and with that need to match up the value of "name" and print it. If I knew what index in the array the specific...
  19. Replies
    4
    Views
    894

    simple Struct question

    here is the code:

    struct SalesItem
    {
    char upc;
    string name;
    }

    SalesItem itemList[NUM_ITEMS];
Results 1 to 19 of 19