Posts by Cloud • 1 point
3 posts
-
0
votes2
answers569
viewsA: How to delete duplicated lines sequentially
Well... if I understand the question correctly, and without regard to performance: Edit Great: I noticed from the comments that if there are three equal lines in sequence, only one must remain. It…
-
0
votes2
answers190
viewsA: How can I print a string instead of char?
char fc[2][10] = {"Cara", "Coroa"}; Note that your array has: heading 0: ['C','a','r','a','',...] position 1: ['C','o','o','a','',...] while comp for a char, char comp = fc[rand()%2]; this function…
-
0
votes2
answers684
viewsA: Problems assigning values to variables in an object
Let’s break the problem in pieces. The class BancoDeDados is not relevant to the problem. Nothing is done with it on Main. Thus, the problem is in the following 2 lines: Error code: Dados da = new…