Dev - C++ - NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA C++

 
Vista:

NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA C++

Publicado por OMAR (8 intervenciones) el 03/08/2006 01:02:16
HOLA NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA EN C++.
SI ME LO DAN TAMBIEN LES DOY UN PROGRAMA MIO EN C++.POR SUPUESTO EL CODIGO FUENTE.
ESPERO RESPUESTAS. A:

[email protected]
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
-1
Responder

RE:NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA

Publicado por cesar briseño (1 intervención) el 07/09/2006 00:08:26
necesito en codigo fuente del juego del memora por fa ayudame
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

NECECITO EL CODIGO FUENTE DEL JUEGO DE la vieja 3d

Publicado por cesar alcoba (1 intervención) el 13/05/2008 06:31:54
NECECITO EL CODIGO FUENTE DEL JUEGO DE la vieja 3d en dev-c++
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA

Publicado por carlos (1 intervención) el 01/10/2012 21:43:49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
#include<conio.h>
#include<iostream.h>
#include<dos.h>
#include<stdio.h>
 
//-----------------------------------------------------------------------------
 
 struct sim
 {
 int lu;
 char nom[30];
 };
 void insertar(FILE *,struct sim);
 int leer(FILE *,struct sim);
 
 struct sim play;
 FILE *archivo;
 
 
   struct nodo {
 int info;
 struct nodo *sig;
 struct nodo *ant;
 };
 struct nodo *p=NULL,*r=NULL, *pa=NULL;
 void mostrar_lista( struct nodo *p);
 int n, dat;
 int dig;
 int i,cap;
int puntos;
 int ps,ps2;
 int m;
 
 
 
//---------------------------------------------------------------------
 
//---------------------------------------------------------------------
 
 
 void eliminar_ul( struct nodo **p)
 {
 int c;
 struct nodo *ultimo;
 struct  nodo *penultimo;
 for(c=0;c<=cap;c++)
 {
 ultimo=*p;
 penultimo=*p;
 if(ultimo!=NULL)
 {
 if((*p)->sig == NULL)
 {
 
 delete ultimo;
 *p = NULL;
 }else{
 ultimo = ultimo->sig;
 while(ultimo->sig != NULL)
 {
 ultimo = ultimo->sig;
 penultimo= penultimo->sig ;
 }
 penultimo->sig = NULL;
 
 delete ultimo;
 }
 }
 
 else
 
 {
 
 }
 }
 }
 
//---------------------------------------------------------------------
 
 void eliminar_ul1( struct nodo1 **p1){
 int c1;
 
 struct nodo1 *ultimo1;
 struct  nodo1 *penultimo1;
 for(c1=0;c1<=cap;c1++)
 {
 ultimo1=*p1;
 penultimo1=*p1;
 if(ultimo1!=NULL)
 {
 if((*p1)->sig1 == NULL)
 {
 
 delete ultimo1;
 *p1 = NULL;
 }
 
 else
 
 {
 ultimo1 = ultimo1->sig1;
 while(ultimo1->sig1 != NULL)
 {
 ultimo1 = ultimo1->sig1;
 penultimo1= penultimo1->sig1 ;
 }
 penultimo1->sig1 = NULL;
 
 delete ultimo1;
 }
  }
 
  else
 
 {
 
 }
 
 }
 
 }
 
//---------------------------------------------------------------------
 void mostrar_lista1( struct nodo1 *p1)
 {
 clrscr();
 system("color 1e");
 gotoxy(20,2);cout<<"**************PRUEVA TU MEMORIA****************** \n \n";
 
 struct nodo1 *q1;
 q1=p1;
 while(q1!=NULL)
 {
 cout<<q1->info1<<"\t";
 q1=q1->sig1;
 ps++;
 }
  }
 
 
 
 
 void inserta_nodo( struct nodo **p)
 {
 gotoxy(ps2,5);
 cin>>n;
 ps2=ps2+4;
 struct nodo *q;
 
 if (*p==NULL)
 {
 *p=new nodo;
 (*p)->info=n;
 (*p)->sig=NULL;
 (*p)->ant=NULL;
 r=*p;
 }
 
 else
 
 {
 q=new nodo;
 q->info=n;
 q->sig=NULL;
 q->ant=r;
 r->sig=q;
 r=q;
 
}
}
 
 
//---------------------------------------------------------------------
 
 void compararN_V(nodo1 *p1, nodo *p){
 i=0;
 nodo1 *q1;
 nodo *q;
 q1=p1;
 q=p;
 
 
 while(q1!=NULL)
 {
 if(q1->info1==q->info) {
 i++;
 
 q1=q1->sig1;
 q=q->sig;
 }
 
 else
 
 {
 break;
 }
 
 }
 
 }
 
 int main(){
 int opc,o;
 do{
 clrscr();
 i=0;cap=0;puntos=0;
 ps=1;ps2=1;
 
 m=1;
 system("color 5");
 
 
 gotoxy(15,6);
 cout<<"DIGITA UN OPCION";
 gotoxy(13,10);
 cout<<" MENU ";
 gotoxy(25,13);
 cout<<" 1: JUGAR ";
 gotoxy(25,16);
 cout<<"2: PUNTAJES";
 gotoxy(25,19);
 cout<<"3: INFORMACION ";
 gotoxy(25,22);
 cout<<"4: SALIR ";
 gotoxy(25,24);
 cout<<"Digite la opcion:";
 gotoxy(43,24);
 cin>>opc;
 switch(opc){
 
 case 1:
         programa();
         clrscr();
         break;
 
 case 2:
         leer(archivo,play);
         break;
 
 
 case 3:
         informacion();
         break;
 
 
 case 4:
         exit(0);
         default:
         gotoxy(25,26);
 
 cout<<" **** OPCION NO VALIDA **** ";
 
 getch();
 }
 }
 while(opc!=4);
 }
 
 
 
//---------------------------------------------------------------------
 
 
 int programa(){
 clrscr();
 randomize();
 int enter;
 system("color 7");
 gotoxy(20,2);cprintf("********PRUEBA TU MEMORIA AL MAXIMO*********");
 gotoxy(17,5);
 cout<<" DIGITE SU NOMBRE\n";
 gotoxy(10,8);
 gets(play.nom);
 
 
 clrscr();
 do{
 inserta_nodo1(&p1);
 mostrar_lista1(p1);
 system("color 5");
 Sleep(2600+tiempo);
 tiempo=tiempo+600;
 if(m%2==0){
 tiempo=tiempo+100;
 
 
 }
 clrscr();
 m++;
 system("color 4");
 gotoxy(20,2);cprintf("***************Prueba tu memoria***************");
 
 gotoxy(20,4);cout<<"°°°°°° Ingresa Los Numeros Memorizados °°°°°°°";
 system("color 4");
 ps2=2;
 for(int F=1;F<=cap;F++){
 inserta_nodo(&p);
 }
 compararN_V(p1,p);
 
 
 
 sleep(1); gotoxy(48,21);cout<<"Solicitando Partida...........";
 sleep(1); gotoxy(58,23);cout<<"Cargando............";
 int puntaje;
 if(i==cap)
 {
 
 eliminar_ul(&p);
 
 
 sleep(2);
 }
 
 else
 
 {
 puntaje=cap-1;
 
 gotoxy(3,22);cout<<"TU PUNTAJE ES: "<<puntaje;
 play.lu=puntaje;
 eliminar_ul(&p);
 eliminar_ul1(&p1);
 insertar(archivo,play);
 }
 
 }
 while(i==cap);
 gotoxy(3,23);cout<<"GRACIAS POR JUGAR PRUEVA TU MEMORIA..\n";
 
 getch();
 return(0);
 }
 
 
 void insertar(FILE *archi, struct sim play)
 {
 
 archi = fopen("datos.bin", "a+b");
 
 fwrite(&play, sizeof(play), 1, archivo);
 fclose(archivo);
 
 }
 
 
//---------------------------------------------------------------------
 
 int leer(FILE *archi,struct sim juego)
 
 {
 
 system("cls");
 if ((archi = fopen("datos.bin", "rb"))== NULL)
 
 {
 
 printf("imposible abrir el archivo o el archivo no existe\n\n\n");
 printf("Presione una tecla para continuar");
 
 getchar();
 return 1;
 
 }
 
 else
 
 {
 
 fread(&juego, sizeof(juego), 1, archi);
 while (feof(archi)==0)
 {
 
 printf("\puntaje:%d",juego.lu);
 printf("\nNombre:");
 puts(juego.nom);
 printf("\n.....................\n");
 fread(&juego, sizeof(juego), 1, archi);
 }
 
 system("pause");
 fclose(archi);
 return 0;
 
 }
 
 }
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

NECECITO EL CODIGO FUENTE DEL JUEGO DE MEMORIA C

Publicado por kenmasters (1 intervención) el 01/10/2012 07:59:27
lo lamento pero no hay codigos en internet solo videos de lolos q tienes que copiar asi que tomate tu tiempo y no joas
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar