Anonymous
Building a menu using do-while and switch A menu in a computer program presents a list of alternatives for a user to choose from. Implement the menu shown below by nesting a switch statement inside a do-while loop. The sentinel ‘0’ is used to exit the do- while loop. The user input is to be extracted from the input stream into a variable of type char. Do not forget to implement a default case for the switch statement to process invalid inputs in this case the text "Not a valid choice. Choose again." should be displayed. This is the console output from the screenshot as plane text:    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 1    You have selected the first choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 2    You have selected the second choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 0    Good bye. Please make sure that you start your menu with an empty line using std::cout << std::endl; (see above). Then end (almost all of) your std::cout statements  with  std::cout << std::endl; (see above); Pls who can help with this
Anonymous
Have checked google but not what I want
λalo.alo
Building a menu using do-while and switch A menu in a computer program presents a list of alternatives for a user to choose from. Implement the menu shown below by nesting a switch statement inside a do-while loop. The sentinel ‘0’ is used to exit the do- while loop. The user input is to be extracted from the input stream into a variable of type char. Do not forget to implement a default case for the switch statement to process invalid inputs in this case the text "Not a valid choice. Choose again." should be displayed. This is the console output from the screenshot as plane text:    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 1    You have selected the first choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 2    You have selected the second choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 0    Good bye. Please make sure that you start your menu with an empty line using std::cout << std::endl; (see above). Then end (almost all of) your std::cout statements  with  std::cout << std::endl; (see above); Pls who can help with this
write down what you have to do in pseudocode, then translate into code
Ahmed
Guys does C++ includes everything in C?
%Nikita
Guys does C++ includes everything in C?
Yes, but extern "C" There is one word in C - restrict, that C++ hasn’t.
Prince Of Persia
Hey guys Idk where to ask this question But what this "<C - X>g" means in vim? Which keys should I press together to work? Since google doesn't support <> in searchings I can't use Google for this question
Prince Of Persia
Yes, but extern "C" There is one word in C - restrict, that C++ hasn’t.
In standard it hasn't But you can use __restrict I guess (in g++)
\Device\NUL
Building a menu using do-while and switch A menu in a computer program presents a list of alternatives for a user to choose from. Implement the menu shown below by nesting a switch statement inside a do-while loop. The sentinel ‘0’ is used to exit the do- while loop. The user input is to be extracted from the input stream into a variable of type char. Do not forget to implement a default case for the switch statement to process invalid inputs in this case the text "Not a valid choice. Choose again." should be displayed. This is the console output from the screenshot as plane text:    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 1    You have selected the first choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 2    You have selected the second choice.    Select 1 to select first choice.    Select 2 to select second choice.    Select 0 to exit.    Enter your choice and press Return: 0    Good bye. Please make sure that you start your menu with an empty line using std::cout << std::endl; (see above). Then end (almost all of) your std::cout statements  with  std::cout << std::endl; (see above); Pls who can help with this
Please don't use std::endl as '\n'. It will impact performance. You don't need to std::flush everytime, do you ?
Shao
hello everyone I learned c#
Shao
And I Want To Learn More And More knowledge
Shao
I'm a student of college
shriman_deepak
Why are u assigning ur struct st to ptr ?
shriman_deepak
And if assigning then why there's i++ and ptr++ as well ?
shriman_deepak
I will say ,u can simply calculate average cgpa without using ptr.
shriman_deepak
change index i think
i++ and ptr++ both ?
shriman_deepak
U just have to iterate through ur struct array so..
shriman_deepak
Aha sorry it's already mentioned to use ptr and linked list
Anonymous
Alright
Hitesh
'F' pack expansions cannot be used as arguments to non-packed parameters in alias templates Any can help to solve this error? stucked here
Unknown
How can I make a specific distance
Unknown
C++
Unknown
I made a table from two columns has the names of the classes and the teachers names, but is not organized at all because the names have different number of characters
Jamil
What is length of your rectangle 10 10 What is the breadth of your rectangle 10 The are of your rectangle is 100. Whenever I give value breadth it take tow time But why???
Shao
so who can give me some advice to learn this language?
Shao
it is so much and so messy
Shao
i do not know how to start
Shao
i learned base but i worry i can not do well
Alviro Iskandar
hmmm
Shao
and so much knowledge and then i don't konw how to used
Shao
who can help me
Shao
😐😐
Shao
oh I will try bset
Unknown
so who can give me some advice to learn this language?
Choose a book as a reference, choose only one channel that has all the concepts, or one website, and go in order. Don't confuse yourself with a lot of sources, channels or sites, choose one thing that suits you.
Shao
Choose a book as a reference, choose only one channel that has all the concepts, or one website, and go in order. Don't confuse yourself with a lot of sources, channels or sites, choose one thing that suits you.
I think i lack someone who can explain me and solve the doubts that arise in my study.Neither books and videos can conpletely solve my problems.I can only try slowly by my self ,so my learning progress is very slow
Unknown
oh thanks I learn from videos on the web but i don't feel relly good
https://www.programiz.com/cpp-programming Try to write all the codes on your own, it will improve you. Never jump from on concept to other until you finish what you started. If you don’t like Programiz you can find other sources, but the source you started with try to finish it and then move.
Shao
w3schools is a good source
thanks very much Previously I only use it to learn the front end.
Shao
okay then i will speak English
Unknown
yes,i just read and write while i study
Try to choose from the sources that were sent, and after a month tell me how you became Programiz W3schools Codeacademy
Shao
okay but i learn Csharp
Shao
and i think w3schools is true
Shao
so i want learning by it
\Device\NUL
People need to learn how to ask a right question before asking in the public
\Device\NUL
Some examples please
Hello, my program is getting segfault. Can anybody tell me where's the problem.
Vidya
So what can be a better ques
Ravi
Hello, my program is getting segfault. Can anybody tell me where's the problem.
some memory location which your code is trying to access but it should not
\Device\NUL
Hello, my program is getting segfault. Can anybody tell me where's the problem.
This is an example of bad question, nobody could guess the code
klimi
So what can be a better ques
https://stackoverflow.com/help/how-to-ask
\Device\NUL
So what can be a better ques
Give the source code, and tells everything you have done
Vidya
Hello, my program is getting segfault. Can anybody tell me where's the problem.
We should search on stack overflow i guess. Like what is segfault, when it occurs
\Device\NUL
I just give an example of bad question lmao
Lala
Hello, how to remove duplicate data in array?
Shao
Hello, how to remove duplicate data in array?
I think you can go through the loop, such as using the for loop, and then adding judgment in the middle of the double-layer loop. I think you can try this operation. There may be a method to call it in C language
klimi
or you could sort the array, then duplicate it... that would be possibly faster
Lala
Thank you I'll try
Emran Hasan
write a c program to multiply two floating point numbers?
Emran Hasan
Plz help me
Emran Hasan
In c program
Robert
So many examples in Google,you can search it.It is easy
Shao
write a c program to multiply two floating point numbers?
I think it's a direct multiplication? It's just that the type is changed to double type
klimi
Plz help me
sure, what's the problem?
Roxifλsz 🇱🇹
It do be like that
Amrith
Hi anyone planning to start Leetcode?
Unknown
Can I use constructor to make a calculator or it’s just built for strings.
John
anyone tried nana GUI c++ lib
Olabisi
Good evening
Alvin
anyone who would need a website either refurbishing old websites or completely new website....kindly DM