Posts by Gustavo Pacheco • 71 points
5 posts
-
1
votes1
answer26
viewsQ: Validation of a field in a REGEX form
Good morning, I have the following problem: I have a regex that validates the following situations: Not containing dots, spaces, accents and/or capital letters " [a-Z0-9]*$" I also wanted to include…
regexasked Gustavo Pacheco 71 -
-1
votes1
answer42
viewsQ: Regex -- String validation
Good evening, you guys, I’m having trouble forming a Regex that only validates the presence of minute letters and numbers. If anyone could help, I’d really appreciate it! Thank you
regexasked Gustavo Pacheco 71 -
1
votes0
answers46
viewsQ: Syntax Error/Possibly Logical in a Recursive Function
Statement of the question: Consider the following functions: int suc(int n) { return n+1; } int pred(int n) { return n-1; } Using these functions (and no arithmetic operator), create recursive…
casked Gustavo Pacheco 71 -
2
votes1
answer68
viewsQ: Does the amount of bytes during a file read vary according to the mode chosen?
In C, if I open a file in binary mode, read it byte-by-byte and then take the file and read it in text mode, will the amount of bytes be different? If so, why?
-
2
votes1
answer1093
viewsQ: Difficulty in developing a little game
I’m implementing a game, against the computer, that follows this format: Be N the initial part number and M the maximum number of pieces that is possible withdraw in a round. To ensure that the…