Ir para conteúdo
Fórum Script Brasil

gclassroom

Membros
  • Total de itens

    21
  • Registro em

  • Última visita

Tudo que gclassroom postou

  1. Olá! Estou tendo dificuldade com um trabalho de programação. Tenho definido uma estrutura PIECE com o seguinte formato: typedef struct square{ char file; char rank; }SQUARE; typedef struct pieces{ int state; int type; char color; SQUARE square; }PIECE; tenho um vector PIECE v[32] e tenho um ficheiro com este código: a;2;1;100;w/ b;2;1;100;w/ c;2;1;100;w/ d;2;1;100;w/ e;2;1;100;w/ f;2;1;100;w/ g;2;1;100;w/ h;2;1;100;w/ a;7;1;100;b/ b;7;1;100;b/ c;7;1;100;b/ d;7;1;100;b/ e;7;1;100;b/ f;7;1;100;b/ g;7;1;100;b/ h;7;1;100;b/ a;8;1;500;b/ h;8;1;500;b/ a;1;1;500;w/ h;1;1;500;w/ b;8;1;300;b/ g;8;1;300;b/ b;1;1;300;w/ g;1;1;300;w/ c;8;1;305;b/ f;8;1;305;b/ c;1;1;305;w/ f;1;1;305;w/ d;8;1;900;b/ d;1;1;900;w/ e;8;1;2000;b/ e;1;1;2000;w/ como faço para colocar em cada posição do vector uma linha, em que cada ; separa campos dentro da estrutura. Grato pela atenção :)
  2. Olá pessol! Sou um novato nesse negócio da programação, pois é o meu primeiro ano na universidade de engenharia. Tenho aqui um problema neste programa. Quando eu peço ao utente que ele escreva a escolha anterior dá sempre erro quando o user mete a escolha anterior diferente de zero. É porque eu igualo a variável "antes='0'"? Então o que faz esta função: "antes=anterior;"? Alguém sabe como solucionar o problema? Grato desde já :) #include<stdio.h>#include<conio.h> main (){ char option,anterior, antes='0'; do { printf("\n\n*****/ Menu para broncos \\*****\n\n"); printf("1 - A opcao que escolheu foi 1\n"); printf("2 - Escolheu a segunda opcao\n"); printf("3 - Agora escreveu um tres\n"); printf("4 - A tecla que carregou foi um quatro\n"); printf("s - Escreveu um 's'\n"); printf("t - Esta foi a opcao do 't'\n"); printf("f - Sair\n"); printf("\nEscolha uma opcao:"); fflush(stdin); scanf("%c",& option); switch(option) { case '1': printf("\n1 - A opcao que escolheu foi 1\n"); break; case '2': printf("\n2 - Escolheu a segunda opcao\n"); break; case '3': printf("\n3 - Agora escreveu um tres\n"); break; case '4': printf("\n4 - A tecla que carregou foi um quatro\n"); break; case 's': printf("\ns - Escreveu um 's'"); break; case 't': printf("\nt - Esta foi a opcao do 't'\n"); break; default : printf("\n\nEscolhe uma opcao valida!"); } printf("\nQual foi a opcao que escolheu antes desta?"); fflush(stdin); scanf("%c", &anterior); if (anterior==antes) printf("\nMuito bem! :)"); else printf("\nERRADO! A opcao antes desta e %c :s", antes); antes=anterior; } while(option!='f'); }/code]
  3. Olá! Estou tentando colocar este código <p style="display: inline; float: left; margin-right: 5px"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-3838940208371486"; /* Post.Esquerda.texto */ google_ad_slot = "9113687876"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <p style="display: inline; float: right; margin-left: 5px"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-3838940208371486"; /* Post.direita.Imagens */ google_ad_slot = "3354088527"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> no ficheiro single.php do meu template wordpress. Alguém sabe como colocar isso direito? é que ao colar exatamente o que está em cima aparece o código, mas eu queria que aparecessem a publicidade adsense. agradeço a vossa ajuda. PS: ainda sou novato nestas coisas ):
  4. Olá! Queri saber como faço para colocar um menu deste na sidebar. eu fiz o download, meti no servidor mas n sei o que fazer. tenho 2 página k podem se uteis: http://smartweb.com.pt/wp-content/Huge%20V...Menu/index.html http://smartweb.com.pt/wp-content/Huge%20V...umentation.html eu li mas n percebi como faço para editar e colocar o menu. o download ainda tinha uma pasta com imagens, js e css. agradeço a vossa ajuda. eu queria usar o exemplo 2(o grande)
  5. Olá! Queria saber como faço para mudar o tamanha da minha Sidebar. Inicialmente o template trazia uma sidebar dividida em duas, masi estreitas. Para mim não se adequava este estilo então eu apagui uma coluna e fiquei só com uma, veja: http://smartweb.com.pt/ alguém me sabe dizer como aumento a largura desta coluna que ficou para estar na sidebar toda? No sidebar.php tenho isto: <div class="right"> <div class='featbox'> <ul> <div class="sidebar"> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar1") ) : ?> <?php endif; ?> </ul> </div> </ul> </div> </div> Agradeço a vossa ajuda! :D
  6. Olá! Estou com um pequeno problema no meu template Wordpress. Pretendo criar um blog nos tempos mais próximos e estou a trabalhar o template, mas sou muito novato e preciso aqui uma ajuda vossa: Neste código do header.php do wordpress: <!-- navigation menu --> <?php wp_nav_menu( array( 'menu_class' => 'menu', 'theme_location' => 'primary' ) ); ?> <!-- end navigation menu --> preciso de colocar os menus que vêm com o wordpress 3, ou seja tem aquela opção de criar menus, eu fiz os o menu como precisava, mas não sei como coloco o menu no header. espero que alguém me possa ajudar :D. tenho aqui o tema online: http://smartweb.net76.net/ <-------é aquele menu que tem Home e Sample Page agradeço desde já as respostas :D
  7. não deu certo:( fiz isso só que depois ficou tudo desconfigurado veja no screenshot:
  8. obrigado :D aqui tem o link: http://wordpress.org/extend/themes/news
  9. procurei, mas nada feito :( esse tema tem muitas poucas opções para configurar. tem algum jeito de fazer isso por html?
  10. olá! Queria saber como faço para trocar o nome do blog(texto) pela logo do blog(imagem), aqui tem o link: http://gclassroom.hostoi.com/ e mais uma coisa, porque não aparece o botão "procurar" na caixa de pesquisa?
  11. olá! queria saber se posso criar um site do tipo http://www.ultimate-guitar.com/, mas algo muito simple, s´o para testar. pretendo comocaar algumas tablaturas e ver como fica. é possível?
  12. Olá! Queria saber como faço para meter a barra de pesquisa na barra de navegação do meu blog: http://gclassroom.hostoi.com/ Queria coloca-la na barra vermelha que contém algumas categorias, grato pela resposta :)
  13. bom, fiz isso só que não funciona :( não sei porque ele ficou lá em cima, no wordpress instalado no meu pc estava perfeito ai quando eu puz ele no servidor ficou assim :( ps: fiz uma alteração no styleBrown.css e mudei margin-top de 45 para 60..veja como ficou http://gclassroom.hostoi.com/ agora tenho de subir a outra parte de baixo, alguém me consegue ajudar? tive a procura só que não encontrei
  14. <?php require_once( dirname(__FILE__) . '../../../../wp-config.php'); require_once( dirname(__FILE__) . '/functions.php'); header("Content-type: text/css"); global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?> <p>body { margin: 0px; padding: 0; color: #84878E; background-color:#01265D; background-image: url(images/bg.jpg); background-repeat: no-repeat; background-position: top; font-family: Trebuchet MS; font-size: 11px; line-height: 18px; } #wrapper2 { width: 950px; margin: auto; padding: 0px 0px 0px 0px; margin-top: 63px; } .single-entry { float: left; width: 100%; margin-bottom: 10px; padding: 0px; } .post-wrapper { background-color: #FFF; padding: 15px; width: 583px; border: 1px solid <?php echo $artsee_content_border; ?>; } a:link { text-decoration: none; color: <?php echo $artsee_link_color; ?>; } a:visited { text-decoration: none; color: <?php echo $artsee_link_color; ?>; } a:hover, a:active { color: #3B3B3B; } h1, h2, h3, h4, h5, h6 { font-weight: normal; margin: 0px 0 10px; } h1 { font-size: 32px; margin-bottom: 0px; margin-top: 10px; } h2 { font-size: 28px; } h3 { font-size: 24px; } .post-title { line-height: 30px; } .home-post-wrap { width: 280px; height: 280px; margin-right: 10px; float: left; background-color: #FFF; background-image: url(images/post-bg.gif); background-repeat: repeat-x; border: 1px solid <?php echo $artsee_content_border; ?>; margin-bottom: 10px; padding: 10px; } .home-post-wrap2 { width: 593px; padding: 10px; margin-right: 13px; float: left; background-color: #FFF; border: 1px solid <?php echo $artsee_content_border; ?>; margin-bottom: 10px; } .index-post-wrap { width: 593px; margin-right: 13px; margin-bottom: 10px; float: left; background-color: #FFF; border: 1px solid <?php echo $artsee_content_border; ?>; padding: 10px; } .readmore { background-image: url(images/bullet.gif); background-repeat: no-repeat; background-position: left; float: right; padding-left: 20px; margin-top: 10px; } .readmore a:link, .readmore a:hover { color: <?php echo $artsee_link_color; ?>; } .thumbnail-home { border: 0px; margin: 0px 0px 0px 0px; } h4, h5, h6 { font-size: 20px; } .titles { font-weight: normal; font-size: 24px; text-decoration: none; } .titles a:link, .titles a:visited, .titles a:active { text-decoration: none; font-size: 20px; font-family: Trebuchet MS; margin-bottom: 10px; margin-top: 10px; display: block; } .titles-featured a, .titles-featured a:hover, .titles-featured { font-size: 30px; display: block; margin-bottom: 10px; margin-top: 5px; } pre, blockquote { overflow: auto; padding: 0 10px; margin: 20px 30px; line-height: 1.8em; background-color: #f5f5f5; border: 1px solid #e0e0e0; } pre:hover, blockquote:hover { background-color: #f0f0f0; border: 1px solid #d0d0d0; } ul { list-style-image: url(images/bullet.gif); } #pages { width: 950px; float: right; min-height: 57px; } #categories { width: 949px; min-height: 46px; background-image: url(images/nav-bg.gif); background-repeat: repeat-x; float: left; background-color: #144F8C; border-left: 1px solid #387EC7; } #categories ul { margin: 0px 0px 0px 10px; padding-left: 0px; list-style-type: none; list-style-image: none; float: left; } #categories ul li { float: left; display: block; padding-left: 0px; height: 46px; } #categories ul li a:link,#categories ul li a:visited, #categories ul li a:active { height: 34px; display: block; color: <?php echo $artsee_cat_color; ?>; font-size: 11px; font-weight: bold; padding: 12px 10px 0px 10px; float: left; margin: 0px 1px; } #categories ul li a:hover { background-image: url(images/nav-bg-hover.gif); border-right: 1px solid #2066AF; border-left: 1px solid #144F8C; margin: 0px 0px; padding-top: 14px; height: 32px; } #header { width: 950px; margin-top: 0px; height: 219px; background-color: #373434; background-image: url(images/header-bg.gif); background-repeat: repeat-x; float: left; } #container { float: right; width: 950px; padding-top: 15px; color: <?php echo $artsee_font_color; ?>; background-image: url(images/content-bg.gif); } #left-div { width: 646px; float: left; } #left-inside { float: left; padding: 0px 0px 0px 19px; } .adwrap { margin-left: 26px; } .adwrap a, .adwrap a:hover, .adwrap a:visited { margin-right: 5px; margin-bottom: 5px; display: block; width: 125px; height: 125px; float: left; } #sidebar-wrapper { width: 300px; float: right; margin-bottom: 20px; } #sidebar { float: right; padding-left: 0px; padding-right: 0px; width: 300px; } #footer { clear: both; width: 930px; height: 76px; padding-left: 20px; text-align: left; color: #FFFFFF; padding-top: 14px; background-image: url(images/footer.gif); background-repeat: repeat-x; margin-left: auto; margin-right: auto; font-size: 11px; } #footer a { color: #FFFFFF; font-size: 11px; } #footer a:visited { color: #FFFFFF; } #footer a:hover { color: #FFFFFF; text-decoration: underline; } #pages ul { list-style-type: none; list-style-image: none; float: right; padding: 0px 0px 0px 0px; margin-right: 10px; margin-bottom: 0px; margin-top: 15px; } #pages ul li { float: right; display: block; height: 42px; padding: 0px; } #pages ul li a:link,#pages ul li a:visited, #pages ul li a:active { float: left; margin-top:15px; color: <?php echo $artsee_nav_color; ?>; display: block; height: 31px; font-size: 14px; padding: 11px 20px 0px 20px; margin: 0px; } #pages ul li a:hover { background-image: url(images/pages-hover.png); background-position: top; background-repeat: no-repeat; margin: 0px; height: 31px; padding: 11px 20px 0px 20px; } .sidebar-box { padding-top: 5px; margin-bottom: 0px; float: right; } .articleinfo { border-bottom: 1px solid #EEEEEE; padding-bottom: 7px; color: #545454; } .sidebar-box ul li a:link, .sidebar-box ul li a:visited, .sidebar-box ul li a:active { display: block; color: #373434; width: 100%; padding: 3px 3px 3px 3px; background-image: none !important; } .sidebar-box ul li { color: #373434 !important; } .sidebar-box ul { float: left; padding-right: 15px; margin: 0px; } .sidebar-box ul li a:hover { width: 100%; display: block; color: #393939; padding: 3px 3px 3px 3px; } .sidebar-box h3 { font-size: 11px; color: #FFF; font-weight: normal; text-transform: lowercase; font-weight: bold; font-family: Trebuchet MS; background-image: url(images/h3-bg.gif); background-repeat: no-repeat; background-position: left; width: 248px; height: 40px; padding-left: 37px; padding-top: 23px; float: right; margin: 0px; } #commentwrap { display: block; width: 570px; margin-bottom: 20px; margin-top: 20px; margin-left: 5px; } .commentlist li{ display: block; float: left; clear: both; margin-left: 0px; margin-bottom: 10px; } .commentlist ol { margin-left: 0px; padding-left: 0px; } .commentlist { margin-left: 0px; padding-left: 0px; } .comment-inside { background-image: url(images/comment-bg.gif); padding-left: 40px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px; margin: 0px 0px 0px 0px; width: 408px; float: left; color: #616161; } #commentform { margin: 1em 0; background: #FFFFFF; margin-left: 20px; } #commentform textarea { background: #f8f7f6; border: 1px solid #d6d3d3; width: 370px; } #commentform #email { font-size: 1.1em; background: #f8f7f6; border: 1px solid #d6d3d3; width: 280px; background-image: url(images/comment-email.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform #author { font-size: 1.1em; background: #f8f7f6; border: 1px solid #d6d3d3; width: 280px; background-image: url(images/comment-author.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform #url { font-size: 1.1em; background: #f8f7f6; border: 1px solid #d6d3d3; width: 280px; background-image: url(images/comment-website.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform #email:focus { font-size: 1.1em; background: #ffffff; border: 1px solid #939793; width: 280px; background-image: url(images/comment-email.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform #author:focus { font-size: 1.1em; background: #ffffff; border: 1px solid #939793; width: 280px; background-image: url(images/comment-author.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform #url:focus { font-size: 1.1em; background: #ffffff; border: 1px solid #939793; width: 280px; background-image: url(images/comment-website.gif); background-position: 7px 7px; background-repeat: no-repeat; height: 20px; padding-left: 30px; padding-top: 6px; } #commentform input { margin-bottom: 3px; } .search_bg { height:35px; width:260px; float: left; margin-top: 10px; margin-left: 10px; } #search { color:#FFFFFF; padding:0; } #search input { background: #FFF; font-size:11px; color:#B8B8B8; font-family:Tahoma, arial, verdana, courier; width:150px; height:11px; vertical-align:middle; padding:10px; border: 1px solid #E7E7DC; } .icons { margin-top: 0px; margin-bottom: -5px; margin-right: 10px; } #search .input { width:66px; height:31px; background:none; border:none; vertical-align:middle; margin:0; padding:0; margin-left: 10px; } .thumbnail-div { border: 5px solid #E7F3FF; width: 90px; height: 90px; margin-bottom: 5px; float: left; margin-right: 10px; } .post-info { color: #000; font-size: 10px; } .post-inside-2 { float: left; width: 450px; } .logo { float: left; border: 0px; } .children { display: none !important; } a:focus { outline: none; } .random-content a:link { font-size: 13px; } .random a:link, .random a:visited { float: left; display: block; width: 100%; } ul, ol { line-height: 2.0em; } .titles-featured a, .titles-featured a:hover, .titles-featured { font-size: 28px; line-height: 30px; } .thumbnail-div-featured { border: 5px solid #E7F3FF; width: 580px; height: 160px; } #featured { background-color: #FFF; background-image: url(images/post-bg.gif); background-repeat: repeat-x; padding: 10px; width: 593px; border: 1px solid <?php echo $artsee_content_border; ?>; margin-bottom: 10px; } .featured-content { float: right; width: 353px; margin-right: 5px; } .current-category { background-color: #FFF; color: <?php echo $artsee_link_color; ?>; border: 1px solid <?php echo $artsee_content_border; ?>; padding: 5px; display: block; margin-bottom: 10px; width: 603px; } .nanotabs { width:562px; } .tabs {} .tabs li { float:left; list-style:none; text-align: center; } .tabs li a { display:block; text-align: center; padding:5px 0px; background:#DDD; color:#333; font-size: 11px; text-decoration:none; width: 104px; height: 18px; float: left; background-image: url(images/tab.gif); margin-bottom: -1px; z-index: 100; margin-right: 2px; } .tabs li a:hover { color:#000; } .tabs li a.selected { background-image: url(images/tab-active.gif); } .nanotabs div { display:none; background-image: url(images/tabs-bg.gif); width: 542px; padding-left: 10px; padding-right: 10px; float: left;} .ichi { } .san { padding-top: 10px; padding-bottom: 10px; } .ni { padding-top: 10px; padding-bottom: 10px; } .san a , .san a:visited{ display: block; padding: 5px; border: 1px dashed #2B6FC2; background-color: #68ACFF; color: #FFF; float: left; margin-bottom: 5px; margin-right: 5px; } .san a:hover { background-color: #77B4FF; } /* Captions */ .aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; } .wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; padding-top: 4px; margin: 10px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .wp-caption img { margin: 0; padding: 0; border: 0 none; } .wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; margin: 0; } /* End captions */ /* Begin Images */ p img { padding: 0; max-width: 100%; } /* Using 'class="alignright"' on an image will (who would've thought?!) align the image to the right. And using 'class="centered', will of course center the image. This is much better than using align="center", being much more futureproof (and valid) */ img.centered { display: block; margin-left: auto; margin-right: auto; } img.alignright { padding: 4px; margin: 0 0 2px 7px; display: inline; } img.alignleft { padding: 4px; margin: 0 7px 2px 0; display: inline; } .alignright { float: right; } .alignleft { float: left } /* End Images */</p>
  15. Claro :D deixo o style.css style.php e styleBrown.css(este é da cor do meu template) fiz hospedagem no Mediafire pois não sei como faço upload aqui rsrsrsrsr http://www.mediafire.com/file/75oagic3ylkbouo/style.rar
  16. :( não consegui baixar. fui ao style.css e adicionei isso só que não funcionou, tem alguma ideia do que fiz mal?
  17. ok vou testar mais tarde e logo digo como foi. OBRIGADO pela dica, foi o primeiro fórum(de muitos) que me deu a resposta :D
  18. olá! acabei de fazer conta aqui no fórum :D a minha dúvida é a seguinte: como faço para baixar o menu de páginas no meu blog como podem ver está ligeiramente mais acima do desejado. ajudem por favor ;)
×
×
  • Criar Novo...