Welcome Guest [Log In] [Register]
If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
printf ("Hello World");
Topic Started: Oct 2 2008, 08:02 PM (308 Views)
Xenomorph
Member Avatar
Casi Pablomaster
[ * ]
Holaaaaaaaaaaaaaaaaaaaa, llege ak xq me recomendaron unos amigos de la utu, la pagina parece estar buena.
aguanten los emoticones con ellos c pueden hacer cosas muy divertidas

"baila perra!!!"
:afganistan: :latigo:


:yuesama: :baile: :wombat: :culo: : WTFF! (What The Fucking Fuck!)XD
Edited by Xenomorph, Oct 2 2008, 08:03 PM.
En el espacio nadie puede oirte gritar... a menos que estes en el universo de Star Wars...
Offline Profile Goto Top
 
777esteban777
Member Avatar
Zombie Soviético
[ *  *  *  *  * ]
XD.......... coincidencia???? a mi tb me la recomendaron en la utu.... jaja

bueno no c si yo te tengo q decir bienvenido y vs me lo tenes que decir a mi... je...XP
Offline Profile Goto Top
 
Daxtrom
Member Avatar
Furries and Nekos Lover XD
[ *  *  *  *  *  *  *  *  *  *  *  * ]
duh utu esta comenzando a monopolizar FZ? ... its time to call reinforcment ... nop en mi universidad no les pinta .... fuck!
Posted Image
Posted Image
Posted Image
Offline Profile Goto Top
 
elpelusaquenonino
Member Avatar
I ♥ Juanjo
[ *  *  *  *  *  *  *  *  * ]
Bienvenidos a F-Z..., yo en algun momento tambien fui alumno de la UTU (ITS mas precisamente) pero ahora soy universitario... :P
Bueno che.... mucha suerte en F-Z
write('Welcome to FZ');
Que lindo que es estar en Mar del Plata... en alpargatas... en alpargatasPosted ImagePosted ImagePosted ImagePuntos de resistencia Anti-Neko: SPAMLANDIA l Offtopic l Facultad de IngenieríaAdeptos a la Causa: elpelusaquenonino, Gero94, Arthas, Sehnsucht, VicioW
Offline Profile Goto Top
 
Xenomorph
Member Avatar
Casi Pablomaster
[ * ]
Mwahahahaha, pronto la utu dominara el mundo...

Quote:
 
bueno no c si yo te tengo q decir bienvenido y vs me lo tenes que decir a mi... je...XP

jeje, ahora paso y t saludo XP
En el espacio nadie puede oirte gritar... a menos que estes en el universo de Star Wars...
Offline Profile Goto Top
 
Dante
Member Avatar
Plaza Independencia Fan

bienvenido a FZ :ok:
Posted Image
You Are All I Ever Wanted

Posted Image



Offline Profile Goto Top
 
Solid Snake
Member Avatar
De Essssssssssta
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Bienvenido, cuidate de los miembros de este foro que van a la UTU, estan todos re mal de la cabeza
Posted Image
Posted Image
Posted Image
Posted Image
Online Profile Goto Top
 
Chouji
Member Avatar
MU fan
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Bienvenido!

Espero que la pases bien, pronto te van a salir los rasgos homosexuales de adentro y vas a salir del closet :ok:

Bienvenido a este foro :lol:

Edited by Chouji, Oct 2 2008, 09:45 PM.
Posted Image
Posted Image
Posted Image


Offline Profile Goto Top
 
PARKA
Member Avatar
Hijo del Wombat
[ *  *  *  *  *  *  *  *  *  *  *  * ]
program saludo;

procedure hola;
begin
writeLn('que pases bien');
write('saludos')
end;

BEGIN

hola;

END.







SALIDA DEL PROGRAMA: (VOS SABRÁS...)

BIENVENIDO A FZ

Posted Image


Offline Profile Goto Top
 
Genma
Member Avatar
Hijo del Wombat
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Bienvenido :ok:
Posted Image
Copyritght ~Naplez http://naplez.deviantart.com
Posted Image
-------------------------------------------------------------------------------------------------------------
Posted Image
Posted Image
Posted Image

Offline Profile Goto Top
 
Xenomorph
Member Avatar
Casi Pablomaster
[ * ]
jaja, gracias a todos
Quote:
 
cuidate de los miembros de este foro que van a la UTU, estan todos re mal de la cabeza


no c si es de la utu... pero ahora le tengo miedo a Chouji-Kun

Quote:
 
program saludo;

procedure hola;
begin
writeLn('que pases bien');
write('saludos')
end;

BEGIN

hola;

END.







SALIDA DEL PROGRAMA: (VOS SABRÁS...)

BIENVENIDO A FZ


jaja, justo ahora toy dandole los ultimos retokes al proyecto de programacion II q tengo q entregar mañana :/
En el espacio nadie puede oirte gritar... a menos que estes en el universo de Star Wars...
Offline Profile Goto Top
 
Rantifusa
Member Avatar
Christian Hayden Fan

Bienvenido y aguante pascal!... no... en realidad es una mierda... pero no queda otra que bancarmelo :/

Posted Image Posted Image Posted Image Posted Image

Posted Image
Online Profile Goto Top
 
Animator12
Member Avatar
Neko negro con dos manchas blancas
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Basta de programación!!! T.T

Bienvenido al foro!.
Que bueno que te halla gustado la pagina ^^ espero la disfrutes
Posted Image
Posted Image
Posted Image
Online Profile Goto Top
 
GreenMan
Member Avatar
You must be good, c'mon now
[ *  *  *  *  *  *  *  *  *  *  *  * ]
:welcome:


Pasala bien por aca... por las dudas te digo...
:baile:
Lugar G
Offline Profile Goto Top
 
Sesshoumaru
Member Avatar
DICTATOR! Ò_Ó

Bienvenido :ok:

Aguante el VB.Net ¿?
Posted Image
Posted Image
Offline Profile Goto Top
 
Bomberman
Member Avatar
Hijo del Wombat
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Welcome :ok:
Posted Image
Posted Image
Posted Image
Offline Profile Goto Top
 
nemesis
Member Avatar
Zombie Soviético
[ *  *  *  *  * ]
welcome

aguante principios c y terminaciones en java

#include<string.h>
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>

struct juego{
char nom[30];//nombre el juego
char formato[4];//DVD o CD
int cd;// Cantidad de unidades del formato en el que se encuentra
char genero[20];//genero en el que se encierra el juego
char clas[5];//clasificacion
}juego;

struct {
char nombvid[30];
int cantdvid;
char calidad[20];
} video;

int menu1(int a);
int menu2(int i,int x,int y);
void inicio();
void videos();
void marco(int fs, int fi, int ci, int cd);
void juegos();
int arriba(int h);
int abajo(int z);
void bip();
void verpista(char msj[]);
void nJ();
void lJ();
void raJ();
void nV();
void lV();
void raV();
void eJ();
void eV();
int barra(int a);
int izq(int i,int x, int y);
int der(int i,int x, int y);
void cabezal();
char mnu[12][20];
char pista[5][45];
char caracter[37];

int j;
int m;

void main(){
int op;
int m=1;
inicio();
do{
textcolor(7);
textbackground(0);
clrscr();
strcpy(mnu[0]," juegos \0");
strcpy(mnu[1]," Videos \0");
strcpy(mnu[2]," Salida \0");

strcpy(pista[0],"Ver lista, modificar, agregar: juegos\0");
strcpy(pista[1],"Ver lista, modificar, agregar: Videos\0");
strcpy(pista[2]," Good Bye \0");

textcolor(3);
marco(31,4,48,8);
verpista(pista[0]);
textcolor(15);
textbackground(1);
gotoxy(32,5);cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,7);cprintf("%s",mnu[2]);
gotoxy(32,5);
op = menu1(m);
textcolor(7);
textbackground(0);

switch (op){
case 1:
juegos();
break;
case 2:
videos();
break;
}
} while (op != 3);
}
/* ======================Fin main========================== */
/* ======================Inicio============================ */
void inicio(){
int jo=9;
int p;
int q;
int sony[2][5]={{500,700,600,300,0},
{300,500,700,600,0}};
int duracion[2][5]={{500,500,500,500,800},
{500,500,500,500,900}};
clrscr();
textcolor(1);
gotoxy(31,16);
cprintf("CARGANDO:");
barra(jo);
for (p=0;p<2;p++){
for (q=0;q<5;q++)
{
sound(sony[p][q]);
delay (duracion[p][q]);
nosound();
}}

}
int barra(int a){
int i=0;
char c=219;
for(i=0;i<11;i++){
textcolor(2);
marco(31,21,43,23);
textcolor(4);
gotoxy(32+i,22);
cprintf("%c",c);
if(a==9){
textcolor(1);
gotoxy(41,16);
cprintf("%d %",i*10);
}
delay(650);
}
return 0;
}
/*========================Fin inicio======================= */

/* ==================== verpista ================= */

void verpista(char msj[])
{
textcolor(10);
textbackground(0);
gotoxy(20,24); cprintf(" %s ", msj);
textcolor(7);
textbackground(0);
}
//*******************************************************
int menu1(int a)
{
int tecla;
j=5;
while (tecla!=13){
switch (tecla){
case 72: arriba(a); break;
case 80: abajo(a) ; break;
}
tecla=getch();
}
return j-4;
}
int menu2(int i,int x,int y){
int tecla;
m=x;
while (tecla!=13){
switch (tecla){
case 75: izq(i,x,y); break;
case 77: der(i,x,y); break;
}
tecla=getch();
}
return m-(x--);
}
//*****************************************************
int arriba(int h)
{
int x=0;
switch(h){
case 1:
x=7;
break;
case 2:
x=9;
break;
case 3:
x=16;
break;
case 4:
x=6;
break;
case 5:
x=9;
break;
}
textcolor(7);
textbackground(0);

gotoxy(32,j);cprintf("%s",mnu[j-5]);

if (j == 5) j=x;
else j--;

textcolor(1);
textbackground(15);
gotoxy(32,j);cprintf("%s",mnu[j-5]);
if(h==1||h==2){
verpista(pista[j-5]);
}
gotoxy(32,j);
return 0;
}

int abajo(int z)
{
int f=0;
switch(z){
case 1:
f=7;
break;
case 2:
f=9;
break;
case 3:
f=16;
break;
case 4:
f=6;
break;
case 5:
f=9;
break;
}
textcolor(7);
textbackground(0);

gotoxy(32,j); cprintf("%s",mnu[j-5]);

if (j == f) j=5;
else j++;

textcolor(1);
textbackground(15);
gotoxy(32,j); cprintf("%s",mnu[j-5]);
if(z==1||z==2){
verpista(pista[j-5]);
}
gotoxy(32,j);
return 0;
}

int izq(int i,int x,int y){
int f;
switch(i){
case 6:
f=x+36;
break;
}
textcolor(7);
textbackground(0);
gotoxy(m,y);cprintf("%c",caracter[m-x]);
if (m==x){
m=f;
}
else{
m--;
}
textcolor(1);
textbackground(15);
gotoxy(m,y);cprintf("%c",caracter[m-x]);
gotoxy(m,y);
return 0;
}

int der(int i,int x, int y){
int f;
switch(i){
case 6:
f=x+36;
break;
}
textcolor(7);
textbackground(0);
gotoxy(m,y); cprintf("%c",caracter[m-x]);
if (m==f){
m=x;
}
else{
m++;
}
textcolor(1);
textbackground(15);
gotoxy(m,y); cprintf("%c",caracter[m-x]);
gotoxy(m,y);
return 0;
}
/*============================ marco ============================= */
void marco(int ci, int fs, int cd, int fi)
{
int i;
gotoxy(ci,fs);cprintf("É");
gotoxy(cd,fs);cprintf("»");
gotoxy(ci,fi);cprintf("È");
gotoxy(cd,fi);cprintf("¼");
for(i=1;i<cd-ci;i++)
{
gotoxy(ci+i,fs); cprintf("Í");
gotoxy(ci+i,fi); cprintf("Í");
}

for(i=1;i<fi-fs;i++)
{
gotoxy(ci,fs+i); cprintf("º");
gotoxy(cd,fs+i); cprintf("º");
}

}

/* =========================== sonido ==========================*/

void bip()
{
sound(600);
delay(500);
nosound();
}
/*============================================================*/
void videos()
{
int op;
int t=2;
do{
textcolor(7);
textbackground(0);
clrscr();
strcpy(mnu[0]," Nuevo video \0");
strcpy(mnu[1]," Listado \0");
strcpy(mnu[2]," Reajustar \0");
strcpy(mnu[3]," Eliminar \0");
strcpy(mnu[4]," Atras \0");

strcpy(pista[0]," Ingresar Nuevo Video \0");
strcpy(pista[1]," Ver Listado de Videos \0");
strcpy(pista[2]," Modificar Datos de un Video \0");
strcpy(pista[3]," Eliminar Datos de un Video \0");
strcpy(pista[4]," Volver a Menu Principal \0");

textcolor(5);
marco(31,4,48,10);
verpista(pista[0]);
textcolor(15);
textbackground(1);
gotoxy(32,5); cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,7);cprintf("%s",mnu[2]);
gotoxy(32,8);cprintf("%s",mnu[3]);
gotoxy(32,9);cprintf("%s",mnu[4]);
gotoxy(32,5);
op = menu1(t);
textcolor(7);
textbackground(0);

switch (op){
case 1:
nV();
break;
case 2:
lV();
break;
case 3:
raV();
break;
case 4:
eV();
break;
}
} while (op != 5);

}
/* =================== hasta aqui se hacen vym =================== */
/*========================juegos============================*/

void juegos()
{
int op;
int t=2;
do{
textcolor(7);
textbackground(0);
clrscr();
strcpy(mnu[0]," Nuevo Juego \0");
strcpy(mnu[1]," Listado \0");
strcpy(mnu[2]," Reajustar \0");
strcpy(mnu[3]," Eliminar \0");
strcpy(mnu[4]," Atras \0");

strcpy(pista[0]," Ingresar Nuevo Juego \0");
strcpy(pista[1]," Ver Listado de Juegos \0");
strcpy(pista[2]," Modificar Datos de un Juego \0");
strcpy(pista[3]," Eliminar Datos de un Juego \0");
strcpy(pista[4]," Volver a Menu Principal \0");

textcolor(2);
marco(31,4,48,10);
verpista(pista[0]);
textcolor(15);
textbackground(1);
gotoxy(32,5);cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,7);cprintf("%s",mnu[2]);
gotoxy(32,8);cprintf("%s",mnu[3]);
gotoxy(32,9);cprintf("%s",mnu[4]);
gotoxy(32,5);
op = menu1(t);
textcolor(7);
textbackground(0);

switch (op){
case 1:
nJ();
break;
case 2:
lJ();
break;
case 3:
raJ();
break;
case 4:
eJ();
break;
}
} while (op!=5);
}

/* ==================== fin juegos ================= */

//==========================funciones de juegos================================
void nJ(){
FILE *f;
char oo;
char op;
int pp;
int x=3;
int z=4;
int y=5;
struct juego jue;
clrscr();
if ((f=fopen("C:\\juegos.txt", "r"))==NULL){
f=fopen("C:\\juegos.txt","w");
}
fclose(f);
do{
clrscr();
jue.cd=NULL;
jue.clas[0]='\0';
jue.formato[0]='\0';
jue.genero[0]='\0';
jue.nom[0]='\0';

gotoxy(30,1);textcolor(4);cprintf("INGRECE LOS DATOS");
gotoxy(23,5);textcolor(4);cprintf("Nombre: ");fflush(stdin);gets(jue.nom);

clrscr();
strcpy(mnu[0],"Automovilismo\0");
strcpy(mnu[1],"Aventura\0");
strcpy(mnu[2],"Belicos\0");
strcpy(mnu[3],"Deportivo\0");
strcpy(mnu[4],"Espionaje\0");
strcpy(mnu[5],"Estrategia\0");
strcpy(mnu[6],"Ingenio\0");
strcpy(mnu[7],"Infantil\0");
strcpy(mnu[8],"Misterio\0");
strcpy(mnu[9],"Pelea\0");
strcpy(mnu[10],"Shooter\0");
strcpy(mnu[11],"Otros\0");
gotoxy(30,1);textcolor(4);cprintf("INGRECE LOS DATOS");
gotoxy(23,5);textcolor(4);cprintf("Genero: ");
textcolor(15);
textbackground(1);
gotoxy(32,5);cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,7);cprintf("%s",mnu[2]);
gotoxy(32,8);cprintf("%s",mnu[3]);
gotoxy(32,9);cprintf("%s",mnu[4]);
gotoxy(32,10);cprintf("%s",mnu[5]);
gotoxy(32,11);cprintf("%s",mnu[6]);
gotoxy(32,12);cprintf("%s",mnu[7]);
gotoxy(32,13);cprintf("%s",mnu[8]);
gotoxy(32,14);cprintf("%s",mnu[9]);
gotoxy(32,15);cprintf("%s",mnu[10]);
gotoxy(32,16);cprintf("%s",mnu[11]);
gotoxy(32,5);
pp=menu1(x);
pp--;
strcpy(jue.genero,mnu[pp]);

clrscr();
strcpy(mnu[0],"DVD\0");
strcpy(mnu[1],"CD\0");
gotoxy(30,1);textcolor(4);cprintf("INGRECE LOS DATOS");
gotoxy(23,5);textcolor(4);cprintf("Formato: ");
textcolor(15);
textbackground(1);
gotoxy(32,5);cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,5);
pp=menu1(z);
pp--;
strcpy(jue.formato,mnu[pp]);


clrscr();
gotoxy(30,1);textcolor(4);cprintf("INGRECE LOS DATOS");
gotoxy(23,5);textcolor(4);cprintf("Cantidad de %s: ",jue.formato);fflush(stdin);scanf("%d",&jue.cd);

clrscr();
strcpy(mnu[0],"\0");
strcpy(mnu[1],"\0");
strcpy(mnu[2],"\0");
strcpy(mnu[3],"\0");
strcpy(mnu[4],"\0");
gotoxy(30,1);textcolor(4);cprintf("INGRECE LOS DATOS");
gotoxy(17,5);textcolor(4);cprintf("Clasificacion: ");
textcolor(15);
textbackground(1);
gotoxy(32,5);cprintf("%s",mnu[0]);
textcolor(7);
textbackground(0);
gotoxy(32,6);cprintf("%s",mnu[1]);
gotoxy(32,7);cprintf("%s",mnu[2]);
gotoxy(32,8);cprintf("%s",mnu[3]);
gotoxy(32,9);cprintf("%s",mnu[4]);
gotoxy(32,5);
pp=menu1(y);
pp--;
strcpy(jue.clas,mnu[pp]);

clrscr();//Fin de Ingresos de Datos
textcolor(2);
marco(25,4,55,10);
gotoxy(26,5); printf("Nombre: %s",jue.nom);
gotoxy(26,6); printf("Genero: %s",jue.genero);
gotoxy(26,7); printf("Formato: %s",jue.formato);
gotoxy(26,8); printf("Cantidad de %s: %d",jue.formato,jue.cd);
gotoxy(26,9); printf("Clasificacion: %s",jue.clas);
gotoxy(25,14);textcolor(4);cprintf("Desea guardarlo[S/N]: ");
fflush(stdin);scanf("%c",&oo);
if(oo=='S'||oo=='s'){
f=fopen("D:\\juegos.txt","a+");
fwrite(&jue,sizeof(struct juego),1,f);
fclose(f);
barra(x);
delay(1500);
}
clrscr();
gotoxy(25,9);textcolor(4);cprintf("Desea ingresar otro[S/N]: ");
fflush(stdin);scanf("%c",&op);
}while(op!='N'&&op!='n');
}

void lJ(){
FILE *f;
char nom;
char nom2;
int w;
int q;
int u=6;
int cont=0;
clrscr();
for(w=48;w<58;w++){
caracter[cont]=w;
cont++;
}
for(w=65;w<79;w++){
caracter[cont]=w;
cont++;
}
caracter[cont]=165;
cont++;
for(w=79;w<91;w++){
caracter[cont]=w;
cont++;
}
gotoxy(20,5);textcolor(4);cprintf("Elija el caracter con cual comienza el nombre del juego");
textcolor(15);
textbackground(1);
gotoxy(20,8);cprintf("%c",caracter[0]);
textcolor(7);
textbackground(0);
for(w=1;w<38;w++){
gotoxy(20+w,8);cprintf("%c",caracter[w]);
}
gotoxy(20,8);
q=menu2(u,20,8);
nom=caracter[q];
nom2=caracter[q];
switch(nom){
case 165:
nom2=164;
break;
default:
w=nom;
nom2=w+32;
break;
}
if ((f=fopen("D:\\juegos.txt", "r"))==NULL){
printf("No puedo abrir el archivo.\n");getch();
}
else{
while (!feof(f)&&(juego.nom[0]==nom||juego.nom[0]==nom2)){
fread(&juego,sizeof(juego),1,f);
if (juego.nom[0]==nom||juego.nom[0]==nom2){
textcolor(2);
marco(25,4,55,10);
gotoxy(26,5); printf("Nombre: %s",juego.nom);
gotoxy(26,6); printf("Genero: %s",juego.genero);
gotoxy(26,7); printf("Formato: %s",juego.formato);
gotoxy(26,8); printf("Cantidad de %s: %d",juego.formato,juego.cd);
gotoxy(26,9); printf("Clasificacion: %s",juego.clas);
getch(); getch();
juego.cd=NULL;
juego.clas[0]='\0';
juego.formato[0]='\0';
juego.genero[0]='\0';
juego.nom[0]='\0';
}
else{
printf("El nombre no existe\n"); getch(); getch();
}

}
fclose(f);getch();
}
}
void raJ(){

}
//=============================================================================
//===========================Funciones de videos===============================
void nV(){
FILE *agrega;
int lugar;
char resp=' ';

if ((agrega = fopen("C:\\Videos.txt", "a")) == NULL)
printf("No se puede ingresar al archivo.\n");
do
{
clrscr();

lugar = 14;
gotoxy(12, lugar); printf(" Nombre del Video: ");
lugar++;
gotoxy(12, lugar); printf(" Calidad de Video: ");
lugar++;
gotoxy(12, lugar); printf(" Cantidad de DvDs: ");


lugar = 14;
gotoxy(26,6); printf("Ingrese los datos del Video\n");
gotoxy(32, lugar); scanf("%[A-Za-z ]", &video.nombvid); fflush(stdin);
lugar++;
gotoxy(32,lugar); scanf("%[A-Za-z ]", &video.calidad); fflush(stdin);
lugar++;
gotoxy(32,lugar); scanf("%3d", &video.cantdvid); fflush(stdin);
gotoxy(33,20); printf("\nContin£a? (s/n)\n");
bip();
resp = getche();
fwrite(&video, sizeof(video),1, agrega);
} while (resp != 'n');
fclose(agrega);

}// Fin de funcion NV
void lV(){//listado videos osea mostrar videos

FILE *agrega;
int i,salir=0;
clrscr();
if ((agrega = fopen("C:\\Videos.txt", "rb")) == NULL)
printf("No puedo abrir el archivo.\n");
i=5;
cabezal();
while ( !salir)
{
fread(&video, sizeof(video), 1, agrega);
if (feof(agrega))
salir=1;
else
{
gotoxy(7, i); printf("%s", video.nombvid);
gotoxy(40, i); printf("%s", video.calidad);
gotoxy(70, i); printf("%d", video.cantdvid);

}
if (i>21)
{

gotoxy(34,24); printf("Pulse una tecla...");
bip();
getch();
cabezal();
}

i++;
}
fclose(agrega);
gotoxy(34,24); printf("Pulse una tecla...");
bip();
getch();

}
void raV(){//modificar videos
FILE *agrega;
char nom[30], resp;
long int pos;
int lugar;
clrscr();
gotoxy(5,5); printf("Ingrese el nombre del Video a modificar: ");
scanf("%[A-Za-z ]", &nom); fflush(stdin);

if ((agrega = fopen("C:\\PRUEBA.TXT", "r+b")) == NULL)
printf("No puedo abrir el archivo.\n");

while ( !feof(agrega) && (strcmp(video.nombvid,nom)))
fread(&video, sizeof(video), 1, agrega);

if ( strcmp(video.nombvid,nom) == 0 )
{
clrscr();
gotoxy(11 , 3); printf("Los datos encontrados son:");
gotoxy(22,6); printf("\nNombe del video : %s", video.nombvid);
gotoxy(22,7); printf("\nCalidad del video : %s", video.calidad);

gotoxy(22,8); printf("\nCantidad de DvDs : %i", video.cantdvid);
gotoxy(22,12); printf("\nModifica estos datos? (s/n)");
bip();
resp=toupper(getche());
if (resp=='S')
{
clrscr();
pos = ftell(agrega) - sizeof(video);
rewind(agrega);
fseek(agrega,pos,SEEK_SET);
marco(11,12,55,18);
lugar = 14;
gotoxy(12, lugar); printf(" Nombre del Video: ");
lugar++;
gotoxy(12, lugar); printf(" Calidad de Video: ");
lugar++;
gotoxy(12, lugar); printf(" Cantidad de DvDs: ");

lugar = 14;
gotoxy(26,6); printf("Ingrese los datos a correguir\n");
gotoxy(33, lugar); scanf("%[A-Za-z ]", &video.nombvid); fflush(stdin);
lugar++;
gotoxy(33,lugar); scanf("%[A-Za-z ]", &video.calidad); fflush(stdin);
lugar++;
gotoxy(33,lugar); scanf("%d", &video.cantdvid); fflush(stdin);
gotoxy(33,20); printf("\nContin£a? (s/n)\n");
bip();
resp = tolower(getche());
fwrite(&video, sizeof(video), 1, agrega);
}// Fin del IF
}// Fin del IF
else
{
printf("El nombre no existe\n"); getch();
}
fclose(agrega);
}//fin funcion RAV
void eJ(){

}

void eV(){

}



//=============================================================================
void cabezal()
{
int i;
clrscr();
marco(1,1,79,23);
gotoxy(10,1); printf("Nombre de video");
gotoxy(40,1); printf("CALIDAD ");
gotoxy(66,1); printf("CANTIDAD");
gotoxy(30,1); printf("Â");
gotoxy(60,1); printf("Â");
for (i=0;i<21;i++)
{
gotoxy(30,i+2); printf("³");
gotoxy(60,i+2); printf("³");
}
gotoxy(30,23); printf("Á");
gotoxy(60,23); printf("Á");
}
///////////////////////////////////////////////////////////////////////////
Posted Image
-------------Posted Image-------------
Offline Profile Goto Top
 
HDR
Member Avatar
BARBARIAN
[ *  *  *  *  *  *  *  *  *  *  *  * ]
Bienvenido a Freak Zone!!! :marik:
Posted Image
Posted Image
Posted ImagePosted ImagePosted Image
Posted Image
---> http://freak-z.com/topic/7068509/1/#new <---
Posted Image
Posted Image
Offline Profile Goto Top
 
Touya Kinomoto
Member Avatar
Tormentoso
[ *  *  *  *  *  *  *  *  *  *  *  * ]
el DOS es lo mejor (?) bienvenido
Posted Image

Posted Image***
Neko ninja!!!! *puff*
Offline Profile Goto Top
 
Lulu Katze
Member Avatar


bienvenido a freak-utu, digo zone :ok:
Posted Image
Posted Image
Posted Image
Posted Image
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Presentación · Next Topic »
Locked Topic