[FLUG] gecco's world

  • From: Simon <f.simon@xxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Fri, 12 Apr 2002 23:08:38 +0200

Mailing List del Fortunae LUG
=============================

Mah... seguo le direttive del capo...

[22:56:51] <Gecco> fa robe serie
[22:56:58] <simon> cazzo vuoi?
[22:57:07] <Gecco> fa in c il mio convertitore di vocali
[22:57:15] <simon> k

[...]

[23:04:54] <Gecco> bravo
[23:04:59] <Gecco> ora posta il sorgente in ml
[23:05:12] <Gecco> postalo scemo
[23:05:57] <simon> perchè?
[23:06:17] <Gecco> postalo

Eseguo:

#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
  char str[256], *ptr;

  printf("inserisci la frase: ");
  fgets(str, 255, stdin);

  for(ptr = str; *ptr; ++ptr)
  {
    if(strchr("aeio", *ptr)) *ptr = 'u';
    if(strchr("àèéìò", *ptr)) *ptr = 'ù';
  }

  printf("%s\n", str);

  return 0;
}


Aspetto nuove direttive...


-- 
/* Federico 's1m0n' Simoncelli <f.simon@xxxxxxxx>
   http://www.jkcal.org/simon
*/ 
int main(){unsigned int g,h=0;while(++h){for(g=(h>1)?2:1;g<
h/2+1&&h%g!=0;g++);if(g==h/2+1)printf("%i\n",h);}return 0;}

--
"Una Slackware e' per sempre ..."


Other related posts:

  • » [FLUG] gecco's world