Posts by Haryel Ramalho • 35 points
7 posts
-
0
votes1
answer50
viewsQ: Segmentation failure - C
#include <stdio.h> #include <stdlib.h> #include <string.h> int validaTipo(char t); typedef union{ struct contratoIndividual{ unsigned int…
-
0
votes1
answer71
viewsQ: Orientation to Python Objects
How to make the only way to insert the days, months and years are solely and exclusively done by the setDia() method, that is, when instantiating do not want to pass values to these attributes at…
-
0
votes1
answer249
viewsQ: Validation in the constructor - Python
I made this class however, when I enter values that in theory should not be allowed it continues running normally, even having created a function that makes the validation. I can’t get it inside the…
-
0
votes2
answers2436
viewsQ: SMTP Debug with Phpmailer
would like to identify a problem in the following code: try { $mail = new PHPMailer(true); $this->setLanguage("br"); $this->isSMTP(); $this->SMTPDebug = 4; $this->SMTPAuth = true;…
-
1
votes0
answers1407
viewsQ: Uncaught Error: Call to a Member Function fetch() on Boolean
I have a problem in a project. I can not solve, was running the same code until yesterday. Simply today, no longer works. I will send here the function that is a select in the database. Thank you.…
-
1
votes2
answers150
viewsQ: Regular expression validation is invalid even when you find a match
I’d like to know what’s wrong with that code. All valid values I enter in the name, email and phone are invalid, even if in the format requested by regex. import re class Contato: def…
-
0
votes1
answer522
viewsQ: Counters in the Mergesort
I would like to know where I need to insert my variables that count exchanges and comparisons. In this algorithm I am dealing with an array of two positions that by reference modify details[0] that…