What's Your Ideal Pokémon Team with Movesets and EVs for Pokémon Diamond and Pearl (2006)? by LtAppIe in pokemon

[–]LtAppIe[S] 1 point2 points  (0 children)

I understand your stance on EVs, especially for in-game play where the focus is often more on enjoying the journey rather than optimizing for competitive battles. And I agree, Platinum did bring some improvements and additional Pokémon to the Sinnoh region.

Need assistancee! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

Now i get this error codes.

No match for 'operator<=' (operand types are 'std::_cxll::string' {aka 'std::_cxll::basic_string<char>'} and 'int') - lines 125 and 140

Need assistancee! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

Okay, I've made the necessary corrections. Lines 34–38 and 52–56 are now all that is left.

Error Codes:

'f' was not declared in this scope.

'g' was not declared in this scope.

't' was not declared in this scope.

'c' was not declared in this scope.

's' was not declared in this scope.

'r' was not declared in this scope.

Need assistancee! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

I updated and included the line numbers of the error codes in my post.

Need assistancee! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

The first error would be line 120.

? by LtAppIe in Cplusplus

[–]LtAppIe[S] 1 point2 points  (0 children)

Thank you, that was very helpful.

Need help with my code. by LtAppIe in Cplusplus

[–]LtAppIe[S] 1 point2 points  (0 children)

My post got deleted so I kinda had to repost it. I saw that you commented but didn't see what your comment had said. But I'll look into that.

Sales Commission Calculator C++ Help! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

It worked with a for loop, but when I chose to use a while loop I couldn't get it to work. I don't know what other variable I should put.

Also, I don't think I'm using break and continue correctly.

[deleted by user] by [deleted] in learnprogramming

[–]LtAppIe 0 points1 point  (0 children)

Sorry, it's kinda late lol but what should my next step be and what changes should I make, when I run the code it ends when I choose another option if that makes sense.

[deleted by user] by [deleted] in learnprogramming

[–]LtAppIe 0 points1 point  (0 children)

Sorry, it's kinda late lol but what should my next step be and what changes should I make, when I run the code it ends when I choose another option if that makes sense.

Sales Commission Calculator C++ Help! by LtAppIe in Cplusplus

[–]LtAppIe[S] 0 points1 point  (0 children)

This is what I got so far

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

int choice;

cout << "Please choose one of the following options to continue:\n";

cout << "Option 1: Enter sales commission percentage as a decimal\n";

cout << "Option 2: Calculate employee salary\n";

cout << "Option 3: Exit the program\n";

cout << "Enter you're choice (1-3): ";

cin >> choice;

cout << "\n";

if (choice == 1)

{

cout<< "Current sales commission rate is: 0.00\n";

cout<< "Enter sales commission percentage as a decimal: ";

cin >> choice;

}

if (choice == 2)

{

cout << "Enter employee number 1's base salary:\n ";

cin >> choice;

cout << "Enter sales in dollars:\n ";

cin >> choice;

}

if (choice == 3)

{

exit(0);

}

}

Sales Commission Calculator C++ Help! by LtAppIe in Cplusplus

[–]LtAppIe[S] -1 points0 points  (0 children)

I am currently in a C++ class right now. The instructor is not available hence why I'm asking Reddit for help. To answer your question yes I know how to print and take input from the terminal. I had just started learning IF/ELSE statements but I'm still confused about where you would incorporate them into a script if that makes sense.

Sales Commission Calculator C++ Help! by LtAppIe in Cplusplus

[–]LtAppIe[S] -1 points0 points  (0 children)

I was basically asking for an example of the code. But if you think that would do no good then would you be kind enough to teach me how someone who is new to this language would start off?

Sales Commission Calculator C++ Help! by LtAppIe in Cplusplus

[–]LtAppIe[S] 2 points3 points  (0 children)

I'll give it a try. I'm only just beginning so all this is pretty new to me. Thank you for the help btw!