sleepyjess:

@ultrilliam

2 months ago
Ultrilliam:

Whats the error?

2 months ago
sleepyjess:

1 attachment
2 months ago
Ultrilliam:

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

2 months ago
sleepyjess:

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

2 months ago
Ultrilliam:

:thumbs_up:

2 months ago
sleepyjess:

buuuuuuut

2 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

2 months ago
Ultrilliam:

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

2 months ago
sleepyjess:

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

2 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'); ```

2 months ago
sleepyjess:

ooohhhhh

2 months ago
Ultrilliam:

*opens visual studio to debug*

2 months ago
Ultrilliam:

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

2 months ago
sleepyjess:

lol

2 months ago
Ultrilliam:

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

2 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

2 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; ```

2 months ago
Ultrilliam:

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

2 months ago
Ultrilliam:

nit picky*

2 months ago
sleepyjess:

cool

2 months ago
Similar Questions: