A Pen by Isvaldo Fernandes de Souza on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define T_STRING 50 | |
// monta um registro de um aluno | |
struct Aluno{ | |
char nome[T_STRING]; | |
int nota[3]; | |
float media; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <limits.h> | |
#define N_ALUNOS 6 | |
/// ESSE DEFINE é mesmo que constante so que com conceito diferente (procura) | |
/*********************************************** | |
TODAS AS MODIFICAÇÕES ACOMPANHAM COMENTÁRIOS ! | |
************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function find (Ob,str) { | |
for (var key in Ob) { | |
if (Ob.toString()== str) { | |
//get indexof() | |
} | |
find(Ob[key],str); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import random | |
def rd_string(length): | |
""" | |
Criando Strings aleatórias usando casting | |
""" | |
str_rd = "" | |
while(len(str_rd)<=length): | |
str_rd += '%c' % random.randint(97,122) |