Ir para conteúdo
  • 0
PedroHensil

Cadastro de Clientes em CPP

Pergunta

0 respostas a esta questão

Recommended Posts

Até agora não há respostas para essa pergunta

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora

  • Conteúdo Similar

    • Por OSVALDO ARANTES JÚNIOR
      Preciso validar um acesso a uma pagina, que so pode ser acessada uma vez a cada 20 respostas certas, estou usando  if( $query->num_rows % 20 == 0 ) , so que toda vez que a pagina carrega, executa o comando poderiam me dar uma dica de como prosseguir depois das vinte respostas para 40 e depois somente com 60.. 80...  e assim redirecionar automaticamente de 20 em 20.
    • Por Sharank
      Strcat Function In C++
       
      I'm new to C and C++ programming, can anyone give me a hint on what I'm doing wrong here. I'm trying to write to concat function that takes to pointers to chars and concatenates the second to the first. The code does do that, but the problem is that it adds a bunch of junk at the end.
       
      For instance, when passing the arguments - "green" and "blue", the output will be "greenblue" plus a bunch of random characters. I also wrote the strlen function that strcat uses, which I will provide below it for reference. I'm using the online compiler at InterviewBit The exact instructions and specification is this:
       
      int main(int argc, char** argv)
      {
      const int MAX = 100;
       
      char s1[MAX];
      char s2[MAX];
       
      cout << "Enter your first string up to 99 characters. ";
      cin.getline(s1, sizeof(s1));
      int size_s1 = strlen(s1);
      cout << "Length of first string is " << size_s1 << "\n";
       
      cout << "Enter your second string up to 99 characters. ";
      cin.getline(s2, sizeof(s2));
      int size_s2 = strlen(s2);
      cout << "Length of second string is " << size_s2 << "\n";
      cout << " Now the first string will be concatenated with the second
      string ";
      char* a = strcat(s1,s2);
       
      for(int i = 0; i<MAX; i++)
      cout <<a;
       
      // system("pause");
      return 0;
      }
       
      //strcat function to contatenate two strings
      char* strcat(char *__s1, const char *__s2)
      {
      int indexOfs1 = strlen(__s1);
      int s2L = strlen(__s2);
      cout <<s2L << "\n";
      int indexOfs2 = 0;
      do{
      __s1[indexOfs1] = __s2[indexOfs2];
      indexOfs1++;
      indexOfs2++;
      }while(indexOfs2 < s2L);
       
       
      return __s1;
      }
       
      //Returns length of char array
      size_t strlen(const char *__s)
      {
      int count = 0;
      int i;
      for (i = 0; __s != '\0'; i++)
      count++;
      return (count) / sizeof(__s[0]);
       
      }
    • Por roberson abalaid
      #include <stdio.h>
      #include <stdlib.h>
      int arr[3][5];
      int main(){
          
          printf("Favor inserir os dados...\n");
          
          for(int i = 0; i < 3; i++){
              for(int j = 0; j < 5; j++){
                  scanf("%d", &arr[j]);
              }
          }
          
            printf("os valores inseridos foram...\n");
          
          for(int i = 0; i < 3; i++){
              for(int j = 0; j < 5; j++){
                  printf("  %d  ", arr[j]);
              }
              printf("\n");
          }
          return 0;
      }
    • Por jrdesign
      Bom dia, sou novo em php, abaixo está a forma que estou tentando fazer, porém o email não está chegando. Não tenho acesso ao servidor para fazer os testes. 
      Após preencher o formulário com nome. e-mail e telefone... aparece para fazer o download e clicando em ok libera o dowload, mas não chega o e-mail com os dados preenchidos. 
      Hospedagem Locaweb.
       
      Obrigado a todos.
       
      <?php
      if(@$_POST['send'] == "true"){ // Se o form nao for preenchido ele nao ira enviar o email>>>
      // Aqui voce coloca o E-MAIL para onde sera enviado o EMAIL>>>>>>>>>
      $destinatario = 'meuemail@meuemail.com.br';
      //$destino ='meuemail@meuemail.com.br'; 
      $nome = $_POST['nome'];
      $telefone = $_POST['telefone'];
      $email = $_POST['email'];
      $headers  = "Content-Type: text/html; charset=iso-8859-1\n";
      $headers .= "From: $destinatario - Baixou Cartálogo <meuemail@meuemail.com.br>\r\n"; // colocar o email da plocad.
      $fonte = "<font size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">";
      $msg  = "$fonte Você recebeu um e-mail de: $email <br>";
      $msg .= "<br> Nome: $nome <br> ";
      $msg .= "<br> Telefone: $telefone ";
      $msg .= "<br> E-mail: $email <br>";

      $envia = mail("$destinatario", "$msg", "$headers");
      if(@$_POST['send'] == "true"){
      if($envia){
      $statusde="<font color='#FF0000'> Aguarde o download iniciar!</font>";
      }else{
      $statusde="<font color='#FF0000'>Erro ao enviar, favor enviar novamente.</font>";
      }
      }

      if($envia){
      $statusde="<font color='#FF0000'>Aguarde o download iniciar!</font>";
      }else{
      $statusde="<font color='#FF0000'>Erro ao enviar, favor enviar novamente.</font>";
      }
      }
            
               if($envia) {
                                  echo "Agradecemos seu contato, Ok para iniciar o Download!";
                                  echo "<script>alert(\"Clique em OK para iniciar o Download!\")</script>";
                                  echo "<script>window.location = \"1.pdf\"</script>";
                              }
                              else{/*seu ouve algum erro...*/
                                  echo "<p><b>$nome</b><br />Ouve um erro no envio, desculpe-nos pelo transtorno!!!</p>";
                              }
                              
                      
      ?>
    • Por guialacerda
      Olá amigos, existe algum plugin que me permite criar um formulário de cadastro com as opções:
       
      -Nome
      -Cargo
      -Telefone
      -Email
       
      E a partir desse cadastro, seria possível enviar um email informando todos os cadastrados sobre reuniões, por exemplo?
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.