Search:

Type: Posts; User: atlas07

Search: Search took 0.01 seconds.

  1. thank you

    thank you
  2. i guess, it's because i'm using borland 5.02...

    i guess, it's because i'm using borland 5.02 which is out of date, but hey thats what we HAVE to use for this program
  3. any ideas ?

    ok, i have reformatted my code and sorted out my issue. For all those who were unhappy.
    I now have a new problem, how would i output the commission value in case 4? (line 107).
    here i have tried...
  4. my fault, i thought you were talking about...

    my fault, i thought you were talking about another piece of code
  5. if the input was 'y', it wouldn't go to the next...

    if the input was 'y', it wouldn't go to the next bit of code. it would just loop back to the menu. so that wouldnt work.
    if 'n' was inputted, it would say illegal character.
  6. ok. i had tried cout

    ok. i had tried


    cout << "\n20% commission of total sales is " << total_sales * 0.20 = commission << "\n\n\n";

    before and it never worked. i guess i had to do it the way you suggested....
  7. can someone look at my code and provide suggestions ?

    i was hoping you could first run my program and have a look. It is extremely basic. i didnt know how to output the commission values in from case 3 (line 87 to 91) and output them in case 4, and i...
  8. this is just SOME of my code. The entire code...

    this is just SOME of my code. The entire code would be too large to print. it runs ok, i just need someone to look at case 3 and 4 in the switch statement.
    Can someone please explain to me why i...
  9. Switch statements - displaying values from one case in another

    i have a piece of an unfinished program.
    try to run it...
    if you go straight to option 3 and input values, how do i output these values in option 4 ?
    i tried outputting my declared variables
    it...
  10. Replies
    5
    Views
    1,353

    i tried tjis and it works better. Thanks ...

    i tried tjis and it works better. Thanks



    #include <conio.h>
    #include <iostream>

    int main()
    {
    double sales, sales_amount, quantity, total_sales, vat;
  11. Replies
    5
    Views
    1,353

    if else switch ????? which one ?

    please run this simple program......

    why wont this work ?

    i tried it first with if...else

    /*why will this program not run? what did i do wrong with the if else statements/conditions ?*/
  12. Replies
    24
    Views
    3,336

    Info :Compiling E:\program\noname00.cpp Error: ...

    Info :Compiling E:\program\noname00.cpp
    Error: noname00.cpp(1,2):Unable to open include file 'SSTREAM.h' ??????????????
    Warn : STRING.h(549,3):Functions containing for are not expanded inline...
  13. Replies
    24
    Views
    3,336

    the thing is, my compiler does not recognize the...

    the thing is, my compiler does not recognize the language.
    Unfortunately, we HAVE to use borland c++ 5.02 !
    Any idea how to stop the program from crashing when a non character is inputted ? - in...
  14. Replies
    24
    Views
    3,336

    nope, does not work. a number cannot be smaller...

    nope, does not work.
    a number cannot be smaller than 1 AND bigger than 10
  15. Replies
    24
    Views
    3,336

    i got it to loop and put it in my program, (right...

    i got it to loop and put it in my program, (right at the end. last 7 lines)...

    but, i have a problem. When a non integer is inputted, the program crashes.
    how do i get around this ?


    #include...
  16. Replies
    1
    Views
    1,155

    Arrays and storing values

    i am writing a program whereby i have written the instructions the shell of the program, and have written code for inputting values, but how do i collect all the information i have inputted. I am...
  17. Replies
    24
    Views
    3,336

    you mean, #include #include...

    you mean,


    #include <iostream.h>
    #include <string>
    #include <conio.h>

    main()
    {
    string date;
  18. Replies
    24
    Views
    3,336

    i'm sure an if statement wouldnt loop though

    i'm sure an if statement wouldnt loop though
  19. Replies
    24
    Views
    3,336

    #include #include ...

    #include <iostream.h>
    #include <string>
    #include <conio.h>

    main()
    {
    string date;
    char answer; //either yes or no
    bool check;
  20. Replies
    24
    Views
    3,336

    how would you go about writing what i am trying...

    how would you go about writing what i am trying to do ?
  21. Replies
    24
    Views
    3,336

    #include #include ...

    #include <iostream.h>
    #include <string>
    #include <conio.h>

    main()
    {
    string date;
    char answer; //either yes or no
    bool check;
  22. Replies
    24
    Views
    3,336

    Problems with Looping

    I have a c++ problem regarding looping. I am writing a program which will include a problem similar to below.

    1) ok, i am writing a program that asks the user to enter a number.

    2) Then ask...
  23. Replies
    4
    Views
    1,732

    Don't talk too much, because your ignorance is...

    Don't talk too much, because your ignorance is greater than your knowledge.
  24. Replies
    1
    Views
    3,937

    date validation

    I am in the middle of a program.
    It is unfinished.
    However i would like to validate the date.
    I am stuck.
    Please could you take 5 mins to look at this.

    Here is the original program into which...
  25. Replies
    4
    Views
    1,732

    help with my assignment

    I have been teaching myself c++ from scratch for the past 4 weeks, as my teachers are crappy. I have an assignment due for early May....

    I need help with writing a program that will enter and...
Results 1 to 25 of 25