I have in the system that I am developing a field called flow, which can be filled either with a decimal value of type 0.5 and 2.4 or with a time value, type 15 min and 5 h.
What is the best solution when creating this field in my table? Leave...
I have a problem to join two sets of integers into a vector, without repeating numbers that are in Set A and Set B.
The following error is displayed in line 13:
error: unknown type name 'bool'; did you mean '_Bool'? |
Changing bool...
I want to divide two integers and result in a floating point value.
The following code works normally:
#include <stdio.h>
float divInts(int x, int y)
{
return((float)x/y);
}
void main()
{
printf("%f",divInts(50,3));
}
But...
Creating the binary file:
#include <stdio.h>
int main(int argc, char const *argv[]) {
FILE *BIN;
BIN = fopen ("BIN.bin","wb");
if (BIN!=NULL)
{
for (int i = 1; i <= 100; i++) {
fwrite( & i,sizeof(i),1,BIN);...
I have an existing table in a database of my client and there has an attribute with data type REAL . How do I represent in C #? float or decimal ? What is the best way?
In my first semester of college I made an algorithm to avoid wasting memory, just for testing.
Now I'm passing this code to C:
Here is the whole code:
// 8 bits
// Aguenta até 4 slots (0 - 3)
// Valor inteiro máximo suportado: 255
void...
I was wondering if there is something like Uint8Array in old browsers (to a minimum in IE8), a collection type with elements that occupy only 1 byte of browser memory.
An approximation would be to use strings , but as far as I know,...
Moon has dynamic typing, but after all, is it strongly typed or weakly typed? Each source I consult has a different information, which left me in doubt.
What is the function of the name of the classes inserted inside the parentheses of the constructor __init__( ) , in classes Telefones , TiposTelefone and Agenda ?
This is just a code snippet from Chapter 10 of "Int...
#include <stdio.h>
#include <stdlib.h>
main(){
int parar=1; // Condição para parar.
int a=0, b=0, c=0; //Elevadores
int count=0; //Numero de pessoas
char elevador=""; //Elevador
do{
printf("Elevador: ");
scanf("%c", &e...