[Ajuda] Comparar strings
#4

PHP код:
main()
{
    new 
a[50],b[50];
    
"cj";
    
"cj";
    if(
strcmp(a,b)== || !strcmp(a,b)) // se retornar false sao iguais, pode usar dos 2 modos
    
{
        print(
"Sao iguais");
    }
    if(
strcmp(a,b)) // se retornar true sao diferentes
    
{
        print(
"sao diferentes");      }
    }

Reply


Messages In This Thread
Comparar strings - by maikons - 26.06.2016, 01:58
Respuesta: Comparar strings - by SammyJ - 26.06.2016, 02:00
Re: Respuesta: Comparar strings - by maikons - 26.06.2016, 02:26
Re: Comparar strings - by moura98 - 26.06.2016, 02:27
Re: Comparar strings - by RenanMsV - 26.06.2016, 02:28
Respuesta: Comparar strings - by SammyJ - 26.06.2016, 02:31
Re: Respuesta: Comparar strings - by moura98 - 26.06.2016, 02:42
Re: Respuesta: Comparar strings - by gmstrikker - 26.06.2016, 02:47
Re: Comparar strings - by maikons - 26.06.2016, 02:52
Re: Comparar strings - by moura98 - 26.06.2016, 03:01

Forum Jump:


Users browsing this thread: 2 Guest(s)