All Questions

1
answer

How to initialize objects already declaring values?

For example in this code: public class Main { public static void main(String[] args) { Point p = new Point(); } } class Point { int x; int y; } Is there a way to declare values to x and y alread...
asked on 14.01.2017 / 19:40
2
answers

How to break a string

I want to break a string in the old Delphi (Pre-Embarcadero). I would love to be able to do something like this: function Quebra (input: String; separador: String) : Array of String var resultado: Array of String begin resultado := input.S...
asked on 03.03.2015 / 14:49
3
answers

Problem with program that prints three numbers incrementally

I'm having trouble creating decision structures in a program that reads 3 numbers and prints them incrementally. My code that is going wrong is as follows: #include <stdio.h> int main (void) { int A, B, C; scanf("%d %d %d" ,&am...
asked on 27.03.2015 / 02:21
3
answers

How to see how much memory occupies such a variable in C ++? And how do you define it?

How to see how much memory occupies such a variable of type int, char e long in C ++? And how do you use #define ?     
asked on 26.02.2015 / 12:24
4
answers

How to check if an input has a String?

I need to check if the user typed a string in a field where they can only receive an Integer, I made the sequential code and when I click the button, it always returns the alert regardless of whether I write an integer or a string, what's wrong?...
asked on 02.03.2015 / 18:41
3
answers

Can arguments be harmful?

By default, arguments to a function are passed by the value (that is, if the value of the parameter within the function is changed, it is not changed outside the function). To allow a function to modify its arguments, they must be passed by ref...
asked on 10.04.2015 / 01:05
1
answer

Div in circles with responsive layout

I'm trying to make a page where they contain div in circles and adjust one below the other when layout decreases, for example, to cell sizes. With the usual size I would like them to be side-by-side, and as they go down, stay one below...
asked on 28.03.2015 / 00:46
4
answers

Fade color transitions in one word

I have a code that is doing color transitions, it has to leave a fade in this transition, that is, so it does not change so "dry", I'm doing with JS , is there any CSS that does it? Anyway, I wanted the fade to be executed in color...
asked on 06.04.2015 / 14:50
2
answers

How to expand the window when you click a button?

Is it possible to expand a window with more information when the user clicks a "Details" button? The behavior is similar to some error screens, which show the data of an error, as shown in the image below: My window has a JButton...
asked on 03.03.2015 / 19:26
2
answers

Shorten string size

Is there any way to shorten the string size type zipar it and then deszipar equal to the base64 function does?     
asked on 07.04.2015 / 23:10