subject

A common error is to use double quotes rather than single quotes around a character literal, as in myChar = "x", yielding a compiler error. Similarly, a common error is to forget the quotes around a character literal, as in myChar = x, usually yielding a compiler error (unless x is also a declared variable, then perhaps yielding a logic error). CHALLENGE ACTIVITY 3.16.1:
Printing a message with ints and chars.
Print a message telling a user to press the letterToQuit key numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and numPresses = 2, print:
Press the q key 2 times to quit. 1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include using namespace std;
int main() { char letterToQuit; int numPresses;
cin >> letterToQuit;
cin >> numPresses; /* Your solution goes here */
return 0; }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 24.06.2019 20:10
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
question
Computers and Technology, 25.06.2019 22:00
Does anyone know how to /fix my computer, just dm me on this app and i'll show you what's wrong with it from there.
Answers: 2
You know the right answer?
A common error is to use double quotes rather than single quotes around a character literal, as in m...
Questions
question
Mathematics, 09.04.2020 10:50
question
World Languages, 09.04.2020 10:50
question
Mathematics, 09.04.2020 10:50
question
Mathematics, 09.04.2020 10:51
Questions on the website: 13722367