All Questions

4
answers

How to get value from a String before a special character

Hello, good morning. I'm having a little question, how can I get the value of a String before some special character. For example, Clinica Antonio S / S. I would just take the Clinica Antonio S, what comes after the bar does not need to be picke...
asked on 20.04.2015 / 16:51
2
answers

Check if variable has been defined

How do I check if a variable has been defined? Can #ifndef be used for this? Being clearer: #include <iostream> int getNumber() { if (check) { check = false; return 10; } else...
asked on 03.01.2015 / 01:32
3
answers

How to play items with a specific value for starting an array?

I have an array questions [] with the following properties: perguntas[0] = { id:1; ordem: 3; inicio: 1 }; perguntas[1] = { id:2; ordem: 2; inicio: 0 }; perguntas[2] = { id:3; ordem: 1; inicio: 1 }; I would like to change them to order in t...
asked on 01.12.2014 / 14:30
3
answers

How do you find the rest of the division?

I'm studying a book I found on the net, she asks for an exercise, but she did not teach how to do it in the previous pages, I tried and it did not work, thank you for your help. Make a program that reads and stores any two integers in varia...
asked on 22.09.2015 / 15:26
4
answers

Access website in local network through my Android phone

I made a site in PHP and MySQL responsive and would like to access it on my Android phone by localhost, I know I have to put my IP in the browser of the mobile phone but when I access it it appears the following error:    Forbidden You do n...
asked on 10.12.2014 / 23:41
2
answers

Percentage of hours calculation

How to calculate percentage between two schedules? I tried it and it was not: $tempo_total= "00:10:00"; $tempo_realizado= "00:05:00"; $percent= round((strtotime($tempo_realizado)/strtotime($tempo_total))*100); It does not work.     
asked on 04.11.2014 / 19:39
3
answers

How to go to a link when clicking a div without using href

I need to redirect the page to a specific link by clicking a div , without using <a href> of HTML. I'm using HTML, CSS and jQuery and PHP. Here's a snippet of code: <div id="btn-oculto2" style="display:none;">...
asked on 01.01.2015 / 15:23
5
answers

How to embed CSS in HTML tags?

I have a CSS file containing the following code. .texto{ Color: Red; } I have the HTML file with these tags : <html> <body> <span class="texto">TEXTO 1<span> <span class="texto">TEXTO 2<span> <sp...
asked on 05.11.2014 / 19:54
1
answer

How to return to the default settings of the Visual Studio editor?

I was using ReSharper in evaluation period and after testing time I did not want to purchase and then uninstalled by Control Panel Visual Studio But the default settings of the Visual Studio editor did not return, such as the re...
asked on 15.08.2014 / 14:34
2
answers

Truthful and false values

What's the difference between true and false (directly speaking) to truthy and falsy in JavaScript? Are only true and false values of "third party", for example of a variable?     
asked on 24.01.2018 / 22:36