Questions tagged as 'string'

3
answers

Compare letters without accents with accented letters

I decided to make a mini game of the gallows just not to rust in php, I'm having problems with words with accents, eg apple. Initially I get it from an array and separate itself into an array by getting (m, a, ç, ã). In the game I have a virtual...
asked by 05.02.2016 / 04:16
2
answers

String comparison problem [duplicate]

I need to compare if the name entered in the textField is the same as the "root" user. When comparing even by typing root Eclipse informs you that it is invalid. Unfortunately I do not understand the reason for the error. // ......
asked by 11.06.2018 / 14:01
2
answers

Error in the use of else [closed]

The program is giving an error when compiling.    else without a previous if Something about else , is there something wrong with the condition if and else ? #include <stdio.h> #include <stdlib.h> int mai...
asked by 11.04.2017 / 17:54
2
answers

How to change filename with variable [closed]

This is the file with the variable I want. # pt/lang.php <?PHP $rp_lang = "pt"; ?> This is the file that I want to insert but I want the variable to change the end to either "en" or "en" or any other. # inc/saudacao_pt.php <?PHP...
asked by 07.04.2015 / 15:57
1
answer

Create a comparison string in Java

When I put in to run the code by Eclipse and I get in the part of typing the login gives an error which I do not and will not go to the next stage that is to enter the password. I wanted some help on how to solve this problem, thank you. Note: I...
asked by 14.03.2018 / 05:19
1
answer

Integer to String Conversion [duplicate]

I'm creating a cafeteria system. I created the login system and it is working, when I was creating a page to create the logins, I am having difficulty converting the level from int to string - the txtNivel.Text does not...
asked by 27.02.2018 / 17:56
2
answers

Change string Python

I am doing a program to sort the entered numbers (I can not simply use a sort algorithm), searching vi that can not change strings in python, have any way to do this? Or maybe use list instead of string? entrada = "32415" for i in range(entra...
asked by 18.09.2018 / 03:31
2
answers

at and followed quotation marks in a string (exiting & quot; or # 39; in View)

I'm trying to put the following text in a string, but I can not ... when there is no error in the double quotation marks of the at ... to getting crazy. Can anyone help me?   , {       "@type": "ListItem",       "position": 2,       "item": {...
asked by 08.05.2018 / 19:48
1
answer

Error type mismatch: Can not convert from String to String [] - How can I fix it?

When trying to receive value through JOptionPane in an array, but gives this error: type mismatch: cannot convert from String to String[] How can I fix it? Here is my source code below: package br.deivsoft.estudo.modelo; import...
asked by 12.01.2018 / 03:56
1
answer

Find character position in string and remove it

I have a complicated problem to solve, there are 3 types of variables that receive data via post example: $mes = "08"; $mes = "10"; $mes = "12"; In the case of 3 different string types, I need 0 to be removed when it is the first...
asked by 27.11.2017 / 07:52