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
/* Uma otima demonstracao de ponteiros em C | |
* http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/#pointers */ | |
#include <stdio.h> | |
int main() | |
{ | |
float x, y; /* x e y sao do tipo float */ | |
float *fp, *fp2; /* fp e fp2 sao ponteiros para float */ |
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
/* $ ex1_vetor_ufrj.c ~rcaldasmd~ 30.08.2010 | |
* | |
* Escreva um programa que leia uma linha de até 80 caracteres | |
* do teclado e imprima quantos caracteres foram lidos. */ | |
#include <stdio.h> | |
//string size | |
#define stsize 80 |
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
/********************************************************** | |
* Ponteiros em C by ~rcaldasmd~ * | |
* * | |
* Alguns bons exemplos sobre como utilizar ponteiros em C * | |
**********************************************************/ | |
#include <stdio.h> | |
/*************** VARS ****************/ |
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
/********************************************************** | |
P2 - Engenharia - Instituto Infnet - Prof. Cesar Teixeira | |
Aluno: Rodrigo Caldas de Moura Duarte | |
Nota: ler arquivo de entrada, sendo um numero inteiro por | |
linha, calcular porcentagem de multiplos de 3 e 5 e depois | |
exportar estatistica para arquivo de saida... o professor | |
ainda pediu que os numeros lidos fossem passados para uma | |
array do tipo int. ~rcaldasmd~ */ |
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
/********************************************************** | |
P2 - Engenharia - Instituto Infnet - Prof. Cesar Teixeira | |
Aluno: Rodrigo Caldas de Moura Duarte | |
Nota: ler arquivo de entrada, sendo um numero inteiro por | |
linha, calcular porcentagem de multiplos de 3 e 5 e depois | |
exportar estatistica para arquivo de saida... o professor | |
ainda pediu que os numeros lidos fossem passados para uma | |
array do tipo int. ~rcaldasmd~ */ |
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
/********************************************************** | |
P2 - Engenharia - Instituto Infnet - Prof. Cesar Teixeira | |
Aluno: Rodrigo Caldas de Moura Duarte | |
Nota: ler arquivo de entrada, sendo um numero inteiro por | |
linha, calcular porcentagem de multiplos de 3 e 5 e depois | |
exportar estatistica para arquivo de saida... o professor | |
ainda pediu que os numeros lidos fossem passados para uma | |
array do tipo int. ~rcaldasmd~ */ |
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
/********************************************************** | |
P2 - Engenharia - Instituto Infnet - Prof. Cesar Teixeira | |
Aluno: Rodrigo Caldas de Moura Duarte | |
Nota: ler arquivo de entrada, sendo um numero inteiro por | |
linha, calcular porcentagem de multiplos de 3 e 5 e depois | |
exportar estatistica para arquivo de saida... o professor | |
ainda pediu que os numeros lidos fossem passados para uma | |
array do tipo int. ~rcaldasmd~ */ |
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
/* Achei que a resposta deveria ser a altura */ | |
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int amizade = 1; | |
char buff[160]; |
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
/* Achei que a resposta deveria ser a altura */ | |
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int amizade = 1; | |
char buff[160]; |
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 <locale.h> | |
int main() | |
{ | |
char c; | |
setlocale(LC_ALL,"Portuguese"); | |
scanf("%c",&t); |
OlderNewer