Posts by user3903094 • 75 points
8 posts
-
0
votes0
answers55
viewsQ: C++: calculated float does not enter if
Hi, I need help. I’m not getting into the "if" parole with a floating number obtained after an operation. In the code below when I declare the value 0.05 enters the "if", but when I get the 0.05 by…
-
-1
votes1
answer138
viewsQ: How to concatenate strings from a 3-in-3 vector in Java?
I need to concatenate the elements of a 3-in-3 vector. Follow the sample of what I need: package ex; public class prog { public static void main(String[] args) { // TODO Auto-generated method stub…
-
-3
votes2
answers2386
viewsQ: How to make the if of multiple variables with "or" work?
When I run this program, I choose the whole 1 and enter the two if's. Why are you in n==1 and in the n!=1 at the same time? #include<stdio.h> int main(){ int n; puts("ESCOLA UMA OPCAO");…
casked user3903094 75 -
2
votes2
answers525
viewsQ: Error with sem_init() function on Linux
I’m trying to solve a problem with semáforos, but when I try to use the function sem_init() I get an error saying there’s an indefinite reference, can tell me why? I have the library of semáforos…
-
0
votes0
answers318
viewsQ: JSP instant messaging web application with Websockets
I would like to get or build an example according to what I leave in the following image: This one will need to use websockets. I tried to study the matter of websockets and run some examples only…
-
1
votes2
answers83
viewsQ: how to capture what is printed on the console via a command into a vector in C language
When I do some commands on the linux console, for example man fprintf, is printed on the screen a series of information. I need to collect this information that is printed on the screen but instead…
casked user3903094 75 -
1
votes2
answers5028
viewsQ: How to put each line of a txt file into a vector?
The file has only 3 lines as content, which must be so: Idade = 15 Nome = Alvaro Apelido = Costa this file is only open for reading with fopen in "r mode". So I have 3 variables declared in the…
casked user3903094 75 -
1
votes1
answer182
viewsQ: How to print an X message in X minutes with Javascript
I need to print a message every five minutes: alert("que venham mais 5 minutos"); How do I?
javascriptasked user3903094 75