All Questions

1
answer

Sort in C ++ does not show the correct input value

I made a code to read 3 values, and with sort() it sorts the values in ascending order and just below shows the input values. For example: -14 21 7 it orders right but output shows -14 7 21 // 21 21 7 being that it was to be -14 7 21....
asked on 19.08.2018 / 04:05
1
answer

C # float ++ and float--

I used the following code snippet: bool plus = false; int index = 0; index = plus ? index++ : index--; The index result is 0 and I do not know why, when I do the form below it works: index += plus ? 1 : -1; Does anyone have an explana...
asked on 01.08.2018 / 11:17
3
answers

Lists within lists: even slicing, there is connection between lists

I am studying lists and behavior occurs that I do not understand. I know that when I link one list to another, a connection between them is created. And that when I use slicing a list, I create a copy of the list (no connection between them,...
asked on 04.11.2018 / 23:19
1
answer

Can a class be a data type?

What I understand about data type is that they are formed by three properties, they are: Address set; Operations Set; Memory Space; Assuming what is above I can understand that a class I create for example class Pessoa : pub...
asked on 17.02.2016 / 01:04
1
answer

How to calculate currency appearing decimal places in JS?

I have a dynamic calculation to do, without having to click buttons. I even managed to, but the part I do not know is to make them appear as decimal places, since we're talking about currency. function multiplica() { numer1 = parseInt(...
asked on 22.01.2016 / 01:51
2
answers

Add attribute via CSS if element below contains x element inside

Hello! I do not know if I could be very clear with the title of my question. But my question is with the following code: <div id="newsletter" class="col-sm-12"> <div class="news-title"> <i class="fa fa-envelope hidde...
asked on 06.09.2018 / 14:17
2
answers

Wrap attribute of textarea tag

What is the utility of the wrap attribute of the textarea tag? What's the difference between your soft, hard, off values?     
asked on 17.02.2016 / 17:23
2
answers

Make a condition to check URL

Hello, I'm using CodeIgniter to develop my website, I'm trying to check which driver the user is browsing, for example, I have the login and registration area, if the user is browsing the page login I want you to show the registration button, a...
asked on 18.02.2016 / 23:41
1
answer

Randomized query in ascending order in MYSQL

I have a table where I have the student's name and punctuation, I need to pick up 5 random students and display them in ascending order of punctuation. I tried to do this, but he's just bringing students randomly and not ordering the score:...
asked on 27.01.2016 / 15:30
2
answers

How to copy an html block when clicking a link / button?

Today I and a friend think of developing a system for resumes registration, but I need to click a link to add another 1 block of inputs each time it is clicked. I tried searching, and found no nice fonts, ie I did not know how to search....
asked on 03.03.2016 / 01:23