Posts by kingwarrior05 • 617 points
12 posts
-
1
votes2
answers274
viewsQ: Playsound function
I am programming a game for school work in C++, and I have a game that during its execution starts a song, then when I click on the space key to fire the music stops and only hear the shot of the…
-
1
votes0
answers222
viewsQ: pull out the avatar upload krajee preview?
I am using the jquery krajee plugin to upload images, however I have a problem. I cannot remove the zoom button from the image after uploading This is the configuration script code: <!-- jQuery…
-
4
votes2
answers1508
viewsQ: I cannot enter the values in the table with auto_increment in the primary key
This is my table: CREATE TABLE Utilizadores( IDUtilizador INT NOT NULL AUTO_INCREMENT, PNome VARCHAR(2000) NOT NULL, UNome VARCHAR(2000) NOT NULL, Email VARCHAR(2000) NOT NULL, PalavraPasse…
-
1
votes1
answer48
viewsQ: how to add a value per parameter to a select statement in sql within a simple table-Valued function?
this is my code and wanted to add a value to a select statement that is passed by parameter to a simple table Valued function. Here is my code: CREATE FUNCTION NMELHORESFORNECEDORES(@N INT ) RETURNS…
-
-1
votes1
answer129
viewsQ: Why does that line of code make me wrong?
This line of code gives me error in sentence SQLiteDatabase.CREATE_IF_NECESSARY and stops me from making the database. Because this is happening? SQLiteDatabase…
-
1
votes1
answer93
viewsQ: Return results from a query
how do I return a value from a "SELECT" method? I have this code: public void SELECT(String Colunas,String Tabela,String Condicao) { String QUERY=null; if(Colunas!=null && Condicao!=null)…
-
0
votes1
answer38
viewsQ: error: 'List ' is Abstract cannot be defined
I intend to use java with Android Studio to make a calculator, however, every time I click an add button to a list the values of these buttons. But having error in the list statement. someone can…
-
1
votes1
answer66
viewsQ: Function does not add to list
THIS IS THE SOURCE: #include <iostream> #include "gestor.h" using namespace std; int menu() { int opc; cout << "Faca a sua escolha!" << endl; cout << "1-> inserir avaria!"…
c++asked kingwarrior05 617 -
2
votes1
answer75
viewsQ: The program skips a line of code ahead
When I run the program below, do not ask me for the name of the malfunction and jump to the description. void gestor::addavaria() { setlocale(LC_ALL, "portuguese"); int opc; string descricao; string…
c++asked kingwarrior05 617 -
1
votes2
answers208
viewsQ: How do I force entry into "while"?
This program allows to calculate the table from up to 10 to a given number x. But in the cycle of the while after the first iteration it does not enter and jumps to the end. For example, if I insert…
-
25
votes3
answers2778
viewsQ: What is the purpose of "continue" in C?
int main () { /* local variable definition */ int a = 10; /* do loop execution */ do { if( a == 15) { /* skip the iteration */ a = a + 1; continue; } printf("value of a: %d\n", a); a++; }while( a…
-
10
votes1
answer882
viewsQ: comparison of floats
This program allows you to check which of the three floats is the largest, only it is ignoring the decimal places. For example if I put the values 1.4, 1.6 and 1.5, the program tells me that the…
casked kingwarrior05 617