Skip to content
Snippets Groups Projects
Commit 1e93c0e6 authored by Edson Cassiano's avatar Edson Cassiano
Browse files

no arguments print

parent 7256677a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -48,11 +48,14 @@ void AnimationManage::initialize(int argc, char *argv[]){
std::ifstream file;
std::cout << "argc: " << argc << std::endl;
if(argc == 1){// Caso o user nao passe argumentos retornar erro
std::cout << "Sem parametros validos" << std::endl;
std::cout << "Usage: bcr [<options>] <input data_file>" << std::endl;
std::cout << " Bar Chart Race options:" << std::endl;
std::cout << " -b <num> Max # of bars in a single char." << std::endl;
std::cout << " Valid range is[1,15]. Default values is 5." << std::endl;
std::cout << " -f <num> Animation speed in fps (frames per second)." << std::endl;
std::cout << " Valid range is[1,24]. Default values is 24." << std::endl;
}else if(argc == 2){//Caso o user passe apenas o nome do arquivo: carregar valores padroes
......@@ -135,6 +138,7 @@ void AnimationManage::initialize(int argc, char *argv[]){
std::cout << "Comandos invalidos" << std::endl;
}
}
std::cout << "teste\n";
}
void AnimationManage::process(void){
......
......@@ -38,4 +38,9 @@ Cada subgrupo tem o campo 0,1,2,3,4
0(Contagem)
1(Titulo da barra)
2(---)
3(Categoria)
\ No newline at end of file
3(Categoria)
No arquivo
Titulo do grafico
Legenda horizontal
Fonte
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment