cc/paradigmas/t3/cliente/QuestaoSimNao.cpp

00001 #include "QuestaoSimNao.h"
00002 
00003 QuestaoSimNao::QuestaoSimNao (int id) : Questao::Questao(id) {
00004    setTipo(Q_SIMNAO); 
00005 }
00006 
00007 QuestaoSimNao::~QuestaoSimNao ( ) { }
00008 
00012 void QuestaoSimNao::lerDados ( ) {
00013     cout << "Digite o enunciado da questão Sim/Não:" << endl;
00014     cout << ">>> ";
00015     string enunciado;
00016     getline(cin,enunciado);
00017     setEnunciado(enunciado);
00018 }
00019 
00024 string QuestaoSimNao::getBodyRespHtml ( ) const {
00025     stringstream html;
00026     html << "<input TYPE=\"radio\" VALUE=\"s\" name=\"questao" << getId() << "." << Q_STR_RESPOSTA << "\">Sim<br>";
00027     html << "<input TYPE=\"radio\" VALUE=\"n\" name=\"questao" << getId() << "." << Q_STR_RESPOSTA << "\">Nao<br>";
00028     return html.str();
00029 }
00030 
00031 

Gerado em Tue Aug 7 04:08:07 2007 para questgen por  doxygen 1.5.1