escrapy01 Posted September 16, 2014 Report Share Posted September 16, 2014 este codigo lo cree ya hace unos meses atras por distraerme y su funcion es voltear totalmente un texto 100% al revez ejemplo: dracula => alucard #include<cstdio>main(){int i,co;char asd[1000000],a;i=0;printf("escribe aqui: n");while(asd[i]!='n'){ i++; scanf("%c",&asd[i]);}co=i;co--;printf("la palabra al revez es: n");while(co>0){i--; printf("%c",asd[i]); co--;}return 0;} Quote Link to comment Share on other sites More sharing options...
Guest Caes Posted November 18, 2014 Report Share Posted November 18, 2014 Que hace la variable a?, el código escrito está en C, no en C++(aunque puedes refutar ya que el compilador de C++ compila también a C). Quote Link to comment Share on other sites More sharing options...
escrapy01 Posted August 9, 2015 Author Report Share Posted August 9, 2015 Realmente es c++ por Las librerias, c usa main.h stdio.h y c++ usa ambas pero es mejor sin .h (mas nueva la lib) y "a" parece ser que nada xd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.