コード例 #1
0
void Operacion::reemplazarOperadores(){
	reemplazar("sen", "s");
	reemplazar("cos", "c");
	reemplazar("tan", "t");
	reemplazar("ln", "l");
	reemplazar("FUNC", "F");

}
コード例 #2
0
ファイル: agrandar.c プロジェクト: DiegoAlfonso2/taller1
int main(void) {
	FILE *fp = fopen("texto.txt", "r+");
	while (! feof(fp) && !finished) {
		char buffer[MAX];
		memset(buffer, 0, MAX);
		int indice = 0;
		int c = fgetc(fp);
		while (!feof(fp) && c != ' ') {
			buffer[indice++] = c;
			c = fgetc(fp);
		}
		if (vocales(buffer, indice)) {
			printf("vocales: %s\n", buffer);
			long donde = reemplazar(fp, buffer, indice);
			donde += 1;
			fseek(fp, donde, SEEK_SET);
		}
	}
	fclose(fp);
}