Ask your own question, for FREE!
computer science
sleepyjess:

@ultrilliam

8 months ago
Ultrilliam:

Whats the error?

8 months ago
sleepyjess:

1 attachment
8 months ago
Ultrilliam:

It can mean a few things, could you paste the full code here?

8 months ago
sleepyjess:

redid it (had a lot of extra stuff from changing things around) and it's not giving that error anymore

8 months ago
Ultrilliam:

:thumbs_up:

8 months ago
sleepyjess:

buuuuuuut

8 months ago
sleepyjess:

do { cout << "Please enter A, B, or C." << endl; cin >> package; } while(package != 'a' || package != 'A' || package != 'b' || package != 'B' || package != 'c' || package != 'C'); this isn't working like it's supposed to

8 months ago
Ultrilliam:

\```cpp insert code here \```

8 months ago
sleepyjess:

it's not stopping the loop once a, b, or c is entered

8 months ago
sleepyjess:

```cpp do { cout << "Please enter A, B, or C." << endl; cin >> package; } while(package != 'a' || package != 'A' || package != 'b' || package != 'B' || package != 'c' || package != 'C'); ```

8 months ago
sleepyjess:

ooohhhhh

8 months ago
Ultrilliam:

*opens visual studio to debug*

8 months ago
Ultrilliam:

>namely cause its fun to have a excuse to open VS lol

8 months ago
sleepyjess:

lol

8 months ago
Ultrilliam:

>needs to reinstall c++ components :/ YOLO I'll just do this the old fashioned way I guess lol

8 months ago
Ultrilliam:

```cpp do { cout << "Please enter A, B, or C." << endl; cin >> package; } while(package != 'a' || package != 'A' || package != 'b' || package != 'B' || package != 'c' || package != 'C'); ``` I don't actually see a issue with this, but it's been a while since I really played with C++, so I'm gonna go ahead and open up Visual Studio. I have a idea but I could be way off lol

8 months ago
sleepyjess:

just came up with one more question... last one (I think)... is there a way to have it print out the value of something like `packageA - packageB`? Like if packageA costs $25 and packageB costs $16, would it print out 9 if i did ```cpp cout << packageA - packageB << endl; ```

8 months ago
Ultrilliam:

Correct, though I would more do ```cpp cout << (packageA - packageB) << endl; ``` But that's just a nitty gritty thing

8 months ago
Ultrilliam:

nit picky*

8 months ago
sleepyjess:

cool

8 months ago
Can't find your answer? Make a FREE account and ask your own question, OR you can help others and earn volunteer hours!
Latest Questions
rootbeer003: ASTRONOMY
38 minutes ago 2 Replies 0 Medals
yg06130: What Came first, the egg or the chicken?
2 hours ago 3 Replies 2 Medals
kaylak: help calculus
5 hours ago 3 Replies 0 Medals
Hanna: History help?!
7 hours ago 7 Replies 1 Medal
johnnn: https://prnt.sc/moq2ll
8 hours ago 4 Replies 1 Medal
johnnn: https://prnt.sc/mopypi
8 hours ago 6 Replies 1 Medal