Posts by Felipe Regino • 65 points
5 posts
-
0
votes0
answers26
viewsQ: Problem turning collected data into a json file
I am trying to write in a file . json, information I collect from a database but for some reason nothing is written. Follow the code: require_once('../helpers/connect.php');…
-
0
votes1
answer172
viewsA: SPOJ returns "Wrong answer" to seemingly correct solution
I found the solution, the code was not considering the case where the arrival is bigger than the free box. So just add this line of code: if(chegada>caixa[livre]){caixa[livre]=chegada;}, before…
c++answered Felipe Regino 65 -
2
votes1
answer172
viewsQ: SPOJ returns "Wrong answer" to seemingly correct solution
I tried to solve the problem BANCO12 - Bank SPOJ, but when submitting my C++ code, the system returns "wrong answer". Follow my code: ` #include <iostream> using namespace std; int main(){ int…
c++asked Felipe Regino 65 -
0
votes1
answer62
viewsQ: Conditional Change of Activity
Hello, I have a problem, I want to create a conditional on an Activity, inside a button, to open another Activity in my app. But how would that parole? My app has buttons in main Activity that leads…
-
4
votes7
answers10560
viewsQ: How to test if an Edittext is empty?
I would like to know how I do to test whether a Edittext is empty or filled on Android. For example, I want to make an app that will perform a registration, but there are fields that cannot be empty…