All Questions

3
answers

Enter the contents of a variable in file

How can I insert a string passed through a terminal into a file? fp=fopen("personas.txt","a"); printf("Introduce tu nombre:\n"); scanf("%s",&nombre); That is, what do I have to do to put the contents of the variable name in a file?    ...
asked on 18.05.2016 / 21:52
3
answers

Can a new operator be created in JavaScript? [duplicate]

I need to use this logical operator: ⇒ which will be inserted in a string like this: var mystring = "(true ⇒ false) ⇒ true"; That way I should be able to evaluate that expression with eval(mystring) and return the truth value to me...
asked on 03.06.2016 / 00:56
2
answers

Problem adding SUM () in query

I have this Query SQL but when wanting to add a SUM to the column CANT_DISPONIBLE generates me an error, this is my Query select EB.ARTICULO,EB.BODEGA,EB.CANT_DISPONIBLE,EB.CANT_RESERVADA ,EB.CANT_TRANSITO,EB.CANT_REMITIDA,SUM(EB...
asked on 16.05.2016 / 18:42
1
answer

Get distance between two declared points in a struct

I have a struct with different parameters, including one consisting of a point on a plane, with a coordinate x and another and . I want to create a function that, from two points, calculate its distance with the corresponding formula. My p...
asked on 16.05.2016 / 11:30
4
answers

Error starting httpd in centOS 7

I get an error when starting httpd in centOS 7. I tried restarting with systemctl restart httpd.service and also systemctl start httpd.service and I keep getting the same error, I've done it as root. It is worth mentioning that previo...
asked on 01.06.2016 / 03:29
1
answer

Legends in bokeh with latex

I would like to know if there is any way to write the legends in Bokeh with LateX format. I say this because it is quite frustrating to write f(x)=x^3-1 , it is very poor.     
asked on 08.05.2016 / 20:38
1
answer

Parameter "variable ..." in methods [duplicated]

Good, I've come across a new style of variables when using the FileNameExtensionFilter class. The constructor that uses has 2 parameters type String only that the second is different from the ones that I already know, it supports a set of vari...
asked on 04.06.2016 / 23:45
2
answers

Problems encountered in YII2

First of all, I talk about my stage. I am using the SAP RFC library in YII2 where I am importing an SAP ERP table into my PHP program. The problem is that when printing a variable that contains accents is not printing them correctly, it puts s...
asked on 07.04.2016 / 14:33
2
answers

How to order with insert sort a linked list c ++

I have a program in c ++ in which I want to manage the sorting method InsertSort . I request the data with a case in the main.cpp file and then in the file List.cpp I can indicate where to insert it, in this case I have the insertInit....
asked on 04.04.2016 / 05:41
1
answer

How to make or put a button in my app as the one on the home screen that slides [closed]

I need to place a button similar to the one on the home screen that slides with your finger to unlock the mobiles. I refer specifically to this:     
asked on 30.05.2016 / 20:27