https://github.com/terroo/cpf
Gere e valide CPF com C++
https://github.com/terroo/cpf
cpf-generator cpf-validador cplusplus cpp
Last synced: 9 months ago
JSON representation
Gere e valide CPF com C++
- Host: GitHub
- URL: https://github.com/terroo/cpf
- Owner: terroo
- License: gpl-3.0
- Created: 2023-09-06T20:08:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T23:43:13.000Z (over 2 years ago)
- Last Synced: 2025-04-23T07:37:24.853Z (12 months ago)
- Topics: cpf-generator, cpf-validador, cplusplus, cpp
- Language: C++
- Homepage: https://youtu.be/_WTWl66TrlY
- Size: 18.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gere e valide CPF com C++
> Código criado no vídeo:
---
# Compile
```bash
git clone https://github.com/terroo/cpf
cd cpf
g++ main.cpp cpf.cpp -o cpf
```
> Se tiver [Lua](https://terminalroot.com.br/tags#lua) instalado, basta compilar:
```bash
lua build.lua
```
---
# Use
> Se quiser instalar: `sudo cp cpf /usr/local/bin/`
Gerar CPF sem formatação
```bash
cpf
# Exemplo de saída: 46318374892
```
Gerar CPF com formatação
```bash
cpf --format
# Exemplo de saída: 382.216.528-06
```
Validar CPF:
```bash
# Com formatação
cpf 382.216.528-06
# Ou sem formatação
cpf 46318374892
```
---
# Versão Web
### Feita com [Vue.js](https://github.com/vuejs) e [TailwindCSS](https://github.com/tailwindlabs/tailwindcss) rodando no [Apache](https://github.com/apache) com [C++](https://terminalroot.com.br/tags#cpp)
Disponível no diretório [api/](./api)
> Assista ao vídeo:
---
# Assista ao vídeo do Modo CLI
##