17.01.2013 Views

COMPORT – Compilador Portugol - Nilo Menezes

COMPORT – Compilador Portugol - Nilo Menezes

COMPORT – Compilador Portugol - Nilo Menezes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUNCOES.CPP<br />

#include <br />

#include <br />

#define FUNCOES<br />

#include "funcoes.h"<br />

long<br />

fASH (long R, long c)<br />

{<br />

long t, s;<br />

const m = (1 = 0)<br />

for (; c >= 0; c--)<br />

t = 1;<br />

t = (t & !m) + s;<br />

return (t);<br />

}<br />

long<br />

fLSH (long R, long c)<br />

{<br />

long t;<br />

t = R;<br />

if (c >= 0)<br />

for (; c >= 0; c--)<br />

t = t > 1;<br />

return (t);<br />

}<br />

int<br />

ODD (long x)<br />

{<br />

return ((1 & x));<br />

}<br />

int<br />

SHORT (long x)<br />

{<br />

return ((0xFFFF & x));<br />

}<br />

char minusculaC(char texto)<br />

{<br />

char minus[] = "áéíóúâêîôûäëïöüÿãõàèìòùñç";<br />

char maius[] = "ÁÉÍÓÚÂÊÎÔÛÄËÏÖÜYÃÕÀÈÌÒÙÑÇ";<br />

char *c;<br />

if(texto>='A' && texto

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!