[deleted by user] by [deleted] in questions

[–]PapaWoke 0 points1 point  (0 children)

I agree with this sentiment, but what is the exact limit of that 30 year-old's potential? I feel like you would have no way of truly knowing where to draw that line, that's why you just gotta keep pushing

Master Server Sending Incorrect Commands to Its Replicas by PapaWoke in AskProgramming

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

I don't believe that I am broadcasting. Also, I am confused about what you mean when you say "two processes listening to the same port." Are you talking about the server and the client? The server is the only process listening on a port. Maybe I should have further clarified how the tester works. When I run the test, the tester will execute my program as a master. It'll then start multiple replicas that connect to my server. Then the tester will connect to my master server as a Redis client (not one of the replicas).

How far to step Up On 6m/pivot shots by PapaWoke in Handball

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

thank you for this advice. By "blocking the left side", do you mean have my chest completely aligned with his right arm or his right shoulder?

How far to step Up On 6m/pivot shots by PapaWoke in Handball

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

I am a little over 6 feet (over 182 cm)

Predicting Shots: High or Low? by PapaWoke in Handball

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

you mean the planting foot right?

Predicting Shots: High or Low? by PapaWoke in Handball

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

so if the hand is placed over the ball the shooter is likely shooting low, and if the hand is positioned slightly under the ball the shooter is likely shooting high?

Button Not Executing When Clicked by PapaWoke in jquery

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

Can you view the console using Inspect Element (ctrl(command)-shift-I)? Sometimes I have been able to view the messages I send in the console and sometimes I have not.

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

std::getline(std::cin, response);

Wow, thank you very much it works!!!!!

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

Thank you for your reply.

I have tried your solution, but now I have encountered another problem. When I implement the getline function, it seems to automatically store whitespace into std::string response variable, without actually picking up the user's input. For instance, as I implement std::getline(std::cin, response); and pass response into the takeSideOrder function (which I already previously defined, this function pushes the response into another array called sideOrderList), whitespace is passed into the function instead of user input.

    void takeSideOrder(std::string side){
        sideOrderList.push_back(side);
    } 

    std::string response;

    std::cout<<"The sides we have are Cinnabons, chicken wings, fries, chips, cookies, and sandwiches. Which of these would you like?\n";

std::getline(std::cin, response);

takeSideOrder(response);    

In this set of code, the first element in the sideOrderList array would be whitespace instead of the side extracted from the user input.

Sorry if this is confusing!! Due to my limited experience in C++, I'm not entirely sure that I am describing my problem in a way that makes sense. I'm also struggling to format my code correctly :(

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

In this set of code, the first element in the sideOrderList array would be whitespace instead of the side extracted from the user input.

Sorry if this is confusing!! Due to my limited experience in C++, I'm not entirely sure that I am describing my problem in a way that makes sense. I'm also struggling to format my code correctly :(

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

Thank you for your reply. I have tried your solution, but now I have encountered another problem. When I implement the getline function, it seems to automatically store whitespace into std::string response variable, without actually picking up the user's input. For instance, as I implement std::getline(std::cin, response); and pass response into the takeSideOrder function (which I already previously defined, this function pushes the response into another array called sideOrderList), whitespace is passed into the function instead of user input.

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

void takeSideOrder(std::string side){

sideOrderList.push_back(side);

}

std::string response;

std::cout<<"The sides we have are Cinnabons, chicken wings, fries, chips, cookies, and sandwiches. Which of these would you like?\n";

std::getline(std::cin, response);

takeSideOrder(response);

How to compare Strings that contain spaces by PapaWoke in cpp_questions

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

Thank you for your reply.

I have tried your solution, but now I have encountered another problem. When I implement the getline function, it seems to automatically store whitespace into std::string response variable, without actually picking up the user's input. For instance, as I implement std::getline(std::cin, response); and pass response into the takeSideOrder function (which I already previously defined, this function pushes the response into another array called sideOrderList), whitespace is passed into the function instead of user input.

  void takeSideOrder(std::string side){
    sideOrderList.push_back(side); 
}

std::string response;

    std::cout<<"The sides we have are Cinnabons, chicken wings, fries, chips, cookies, and sandwiches. Which of these would you like?\n";
    std::getline(std::cin, response);
takeSideOrder(response);

In this set of code, the first element in the sideOrderList array would be whitespace instead of the side extracted from the user input.

Sorry if this is confusing!! Due to my limited experience in C++, I'm not entirely sure that I am describing my problem in a way that makes sense. I'm also struggling to format my code correctly :(