Fandom

Scratchpad

PLE:Unidad3Ejercicio10

216,259pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

/*
Programa:       Unidad3Ejercicio10.cpp
Fecha:          14/11/2006
Descripción:    Muestra un caracter que se desplaza de izq. a der..
*/
#include <iostream>
#include <conio>
#include <clx>
using namespace std;

void muestraCaracter(int col, int fil, char car);

void main()
{
      int fil = 10, col;
      char c = 'o';

      for(col = 1; col < 80; col++)
            muestraCaracter(col,fil,c);

      cin.ignore();
      cin.get();
}

void muestraCaracter(int col, int fil, char car)
{
      Sleep(10);
      clrscr();
      gotoxy(col,fil);
      cout << car;
}

Also on Fandom

Random wikia