I have a method that should return a collection of anonymous objects:
/*Aqui deveria ser o tipo anonimo "AnonymousType"*/
[AnonymousType] ListarAnonimo()
{
//Especifica um "template" para o tipo retornado.
var lista = new[]
{...
I'm in doubt on what kind I should use to work with hours on my system. Should I use DateTime , Time or TimeStamp . I wish the times were saved in this format:
HH:MM
I would like to clarify the meaning of the term "signed integer".
I'm researching on protocols, to build one in Java, and over and over meeting the term. I do not know what it's all about.
I've always heard of primitive types, for example...
I have the following code
var
Valor1: string;
Valor2: Double;
begin
Valor1 := '150.15';
Valor2 := 150.15;
If StrToFloat(Valor1) = Valor2 then
ShowMessage('Iguais');
end;
In this situation, sometimes Delphi understands that t...
I am building a method and would like it to extend to any type. For now I am using string but I would like it to work for int , float , double and datetime .
public static bool isNotNull(string AnyTypeValue) //...
I see in many codes some variables with the suffix _t . There are a lot of examples in the default C library as size_t , int32_t , mbstate_t .
How useful, and when to use this suffix?
I've always known that char is the only type that has fixed size by specification. Its size is 1, no matter the architecture.
But I came across sizeof('a') returning 4 rather than 1.
Like this? Did I Learn Wrong?
I'm trying to split an image in half using the code below, but I'm having a return error.
Code:
import cv2
import numpy as np
# Read the image
img = cv2.imread("IMD015.png")
width = img.shape
# Cut the image in half
width_cutoff = width /...
I've seen it doing a
MinhaEstrutura *
be explicitly typed as
typedef MinhaEstrutura * pMinhaEstrutura;
Why not always do this and get rid of having to rename?