Posts by David Endrew • 21 points
2 posts
-
1
votes2
answers131
viewsA: Error of logica shell script
try that, but I’m not so sure. #!/bin/bash clear HORA=$(date +%H) if [ "$HORA" -gt 05 -a "$HORA" -lt 12 ] then echo "Bom dia"; elif [ "$HORA" -gt 11 -a "$HORA" -lt 18 ] then echo "Bom tarde"; elif […
-
1
votes3
answers45
viewsA: Error while printing values, the values that are printed have nothing to do with the values that were saved
The problem is that you have to initialize int largPC and int altPC before assigning a value to them, you can do this in the class constructor, type Cliente::Cliente() : largPC(0), altPC(0).…