Questions tagged as 'do-while'

2
answers

Continue "from while" of last point

There is a program of registrations that I have to make, I put the registration options and so on. All the code is saved in the vectors and they are as expected, but when I return to main() , it returns to number 1, since I had to initiali...
asked by 19.10.2017 / 18:34
1
answer

Lock Prints [closed]

The program should: receive a 4-digit number, Increasing sorting and saving, Sorting in descending order and saving. Subtract from ascending to descending and save so that you can run the process from scratch until the subtraction equa...
asked by 20.11.2016 / 15:33
2
answers

Automatically fill cells in excel using VBA

Good afternoon community, I am trying to work with VBA in Excel to try to apply this knowledge in my master's thesis, but I have some questions. I'm trying to create a function in VBA that populates cells by a given value. In the next imag...
asked by 13.07.2017 / 19:41
4
answers

Repeat Loop in C

Hello, I'm a beginner in programming and I have a question: I'm doing a program that has a menu and a register to be performed by the user. I would like to know how to make the program menu always appear after finishing the registration, instead...
asked by 29.09.2017 / 02:25
1
answer

Variable not designated

Give me an error saying that the remainder variable was not assigned. There are several parts of the code that I do not understand and would like explanation.    Write a program that continually reads in integer values until a four di...
asked by 14.07.2017 / 15:17
1
answer

Do While C ++ does not enter the loop using getline in string

Good afternoon people, I have a problem with my code. When I ask if the user wants to repeat the program, it simply does not loop. I have already tried using the user as numeric information and it worked, but I need it to be in the form of Strin...
asked by 02.05.2017 / 22:47
0
answers

'do while' or recursion on a switch? [duplicate]

I have 2 models of code here, please note: Template 1 (using 'do while'): int main(){ char opc; do{ std::cout << "|============|\n"; std::cout << "|Escrever.[1]|\n"; std::cout << "|Ler....
asked by 01.02.2018 / 03:39
1
answer

Do While is not working correctly

Do while is not working in code. At first the test that I am doing now is just the first one on the menu (register the user) and then I should go back to the menu until I type S. (It is only running once) Another question is how to register in a...
asked by 25.10.2017 / 20:12
1
answer

Problem with while [closed]

public static void main(String[] args) { Scanner sc = new Scanner(System.in); BancoConta p1 = new BancoConta(); p1.inicio(); } public void inicio() { do { System.out.println("Para criar conta bancária: (1)"); Sy...
asked by 30.10.2017 / 19:05