Questions tagged as 'cadenas'

3
answers

How to read strings of a structure passed by reference

This is my Structure typedef struct{ char Nombre[20]; }Cliente; And they ask me for a function that captures the name by means of the structure and performs this function void Captura_cliente(Cliente *client){ printf("Escriba...
asked by 20.12.2018 / 10:19
1
answer

Verify if there are whole numbers in a chain?

I have made this code: public static void main (String []args){ Lexico lex = new Lexico(); String cadena = JOptionPane.showInputDialog("Ingrese la cadena: "); System.out.println(lex.ingresarCadena(cadena)); } String[] Ec...
asked by 24.10.2018 / 16:51
1
answer

How to extract a string inside a string in c? [closed]

I have the following string: char url[]="table=peliculas/&name=lo_que_sea.pdf" I want to store "what_that_is_.pdf" in a variable like that text would be different from my string ????     
asked by 15.12.2018 / 17:16
2
answers

Is there a simple way to convert a list of type str to one of type int?

This is what I try: example1: a=['1','2','3','4'] for m in range(len(a)): int(a[m]) print(a) But then I realized that for example in: example 2: a=['1','2','3','4'] b= [] int(a[0]) b = b + [a[0]] print(b) #Output b = ['1']...
asked by 13.11.2018 / 01:50
1
answer

Switch case to compare strings [duplicated]

I have a question about the use of the control structure switch since I'm just learning C ++. Can you evaluate catacler chains in a switch ? According to me you can only integer values: #include <cstdlib> #include <iost...
asked by 27.10.2018 / 05:55