Bom dia, estava tentando fazer um programa no C# (Console) que conseguisse ler uma string e exibir ela ao contrário, e está dando os seguintes erros:
Error	1	Operator '<' cannot be applied to operands of type 'int' and 'int[]'	
Error	2	Operator '-' cannot be applied to operands of type 'int[]' and 'int'	
Se alguém puder me ajudar eu agradeço, com certeza tem algum erro de lógica aí, se puderem me ajudar nisso também, seria de bom proveito.
Aqui segue o código:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string [] texto = new string [1];
            int [] tamanho = new int [texto.Length];
        
         texto [0] = Console.ReadLine();
         for (int i = 0; i<tamanho; i++)
         {
            
             tamanho[i] = (tamanho - 1 - i);
         
         }
         Console.WriteLine("Tamanho igual:  ", tamanho);
        }
    }
}
					
					
					
				
				
				
				 
	
Erro No Operador
		 Started By h0br, 17/11/2010, 09:20
	
	
	
	
		
			Nenhuma resposta neste tópico
		
	
	
	1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)


 
					 
			
			








