Posts by Ray BM • 321 points
12 posts
-
0
votes2
answers40
viewsA: When I type 1 he doesn’t ask the questions dnv, and I can’t fix it
Hello, for logic to work put everything inside a do{}while(); #include <stdio.h> #include <stdlib.h> int main(){ int x, y ,z, o; do{ printf ("Informe o valor do primeiro lado: "); scanf…
-
0
votes2
answers486
viewsA: Conversion from comma to java point
Good evening, I use the following methods, the first you set the number of decimals after the comma, the second is standard: public static String DoubleToString(double valor, int casasDecimais)…
-
0
votes1
answer91
viewsA: Subtraction of values in the same table and column
Follow an example of use Select month(data) as mes, year(data) as ano, coalesce(flucro.total, 0) as lucro, coalesce(fgasto.total, 0) as gasto, (coalesce(flucro.total, 0) - coalesce(fgasto.total, 0))…
-
1
votes3
answers60
viewsA: UPTADE in php, I’m not getting it
Hello can be problem in sql mount, try so: $sql = "UPDATE tbaluno SET nome = '" . $novoNome . "', nota = '". $novaNota ."', turma = '" . $novaTurma . "' WHERE id = " . $id; Put the script out of…
-
1
votes2
answers558
viewsA: How to save the value of a variable in Android Studio?
try something like: import android.content.SharedPreferences; ... private Button botaoperder; private TextView derrotas; private SharedPreferences preferences; private SharedPreferences.Editor…
-
0
votes2
answers97
viewsA: How to make a method that compares values from two objects?
Buddy, follow the code with the encapsulated methods: public class Pessoa { private String nome; private double peso, altura; public String getNome() { return nome; } public void setNome(String…
-
4
votes1
answer1943
viewsA: Checkbox within a Dbgrid
Friend, I created a Clientdataset with 2 fields, a string calling name and another integer called selector. Adding some records in formcreate ClientDataSet1.Open; ClientDataSet1.Append;…
-
1
votes2
answers214
views -
2
votes3
answers236
viewsA: char print returns random character
Try it this way, buddy: int main(int argc, char** argv) { char example[20]; scanf("%[^\n]", &example); printf("example: %s", example); return 0; }…
-
2
votes3
answers1062
viewsA: PHP mysql User Registration Form
I use the following code for connection: <?php $servidor = "0.0.0.0"; /*ip da maquina a qual o banco de dados está*/ $usuario = "usuario"; /*usuario do banco de dados MySql*/ $senha = "senha";…
-
4
votes1
answer764
viewsA: SELECT inside INSERT PHP Mysql
Hello, I do not know if I understand well, but from what I understand you want to enter the result of a select. If this is it just do +- like this: INSERT INTO TB004_PRODUTO_FORNECEDOR (…
-
1
votes2
answers916
viewsA: Layout occupying the entire screen
Try to leave the Buttons layout out of Scrollview +- like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…