C/Visual C - [Warning] passing argument 1 of 'ordenanum' makes pointer from integer without a cast

 
Vista:
sin imagen de perfil
Val: 1
Ha disminuido su posición en 64 puestos en C/Visual C (en relación al último mes)
Gráfica de C/Visual C

[Warning] passing argument 1 of 'ordenanum' makes pointer from integer without a cast

Publicado por Fabian (1 intervención) el 20/04/2020 00:13:41
En la opcion 8 de ordenamiento burbuja no muestra el resultado y aparece este error

[Warning] passing argument 1 of 'ordenanum' makes pointer from integer without a cast

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
388
389
390
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#include <math.h>
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x; coord.Y = y;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hStdOut, coord);
}
float suma (float num1,float num2)
{
	float Resultado=0;
	Resultado=num1+num2;
	return Resultado;
}
float resta (float num1,float num2)
{
	float Resultado=0;
	Resultado=num1-num2;
	return Resultado;
}
float mult (float num1,float num2)
{
	float Resultado=0;
	Resultado=num1*num2;
	return Resultado;
}
float division (float num1,float num2)
{
	float Resultado=0;
	Resultado=num1/num2;
	return Resultado;
}
float nummay(float n1, float n2, float n3)
{
	float Resultado=0;
	if(n1>n2 && n1>n3)
	{
		Resultado=n1;
	}
	else
	{
		if(n2>n1 && n2>n3)
		{
			Resultado=n2;
		}
		else
		{
			if(n3>n1 && n3>n2)
			{
				Resultado=n3;
			}
		}
	}
	return Resultado;
}
int factorial (int i, int num)
{
	int Resultado=1;
	for(i=1; i<=num; i++)
	{
		Resultado=i*Resultado;
	}
	return Resultado;
}
int numprimo (int num, int x)
{
	if(x==num)
	return 1;
	else
	{
		if(num%x==0)
			return 1+numprimo(num, x+1);
		else
			return 0+numprimo(num, x+1);
	}
}
void ordenanum(int numeros[3])
{
	int temporal,i,j;
	for(i=0; i<3; i++)
	{
		for(j=i+1; j<3; j++)
		{
			if (numeros[j] < numeros[i])
			{
			temporal = numeros[i];
			numeros[i] = numeros[j];
			numeros[j] = temporal;
			}
		}
	}
}
 
int main(int argc, char *argv[])
{
	int opcion,num,x=1,numdiv,i,j,temporal;
	float n1,n2,n3;
	int numeros[3];
	do
{
	system("cls");
	printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
	printf("\n%c	Men%c de Funciones		%c",179,163,179);
	printf("\n%c					%c",179,179);
	printf("\n%c",195);
	printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
	printf("\n%c					%c",179,179);
	printf("\n%c	1. Suma de 2 n%cmeros		%c",179,163,179);
	printf("\n%c	2. Resta de 2 n%cmeros		%c",179,163,179);
	printf("\n%c	3. Multiplicaci%cn de 2 n%cmeros	%c",179,162,163,179);
	printf("\n%c	4. Divisi%cn de 2 n%cmeros	%c",179,162,163,179);
	printf("\n%c	5. Mayor de 3 n%cmeros		%c",179,163,179);
	printf("\n%c	6. Factorial de un n%cmero	%c",179,163,179);
	printf("\n%c	7. N%cmero primo o no		%c",179,163,179);
	printf("\n%c	8. Ordenamiento de n%cmeros	%c",179,163,179);
	printf("\n%c",195);
	printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
	printf("\n%c					%c",179,179);
	printf("\n%c	Elije la opci%cn a resolver (_)	%c",179,162,179);
	printf("\n%c					%c",179,179);
	printf("\n%c",195);
	printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
	printf("\n%c					%c",179,179);
	printf("\n%c	APP FUNCIONES Y MENUS		%c",179,179);
	printf("\n%c",195);
	printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
	printf("\n%c					%c",179,179);
	printf("\n%c	 VERSION 1.0 (27/03/2020)	%c",179,179);
	printf("\n%c",192);
	printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
 
 
	gotoxy(36,16);
	scanf("%d", & opcion);
 
	switch (opcion)
	{
		case 1:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	 1.- Suma de 2 n%cmeros		  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese el primer numero (__)	  %c",179,179);
			gotoxy(34,6);
			scanf("%f",& n1);
			printf("\n%c	Ingrese el segundo numero (__)	  %c",179,179);
			gotoxy(35,8);
			scanf("%f",& n2);
			printf("\n%c   	El resultado es %.2f    	  %c",179,suma(n1,n2),179);
			printf("\n%c					  %c",179,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 2:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	 2.- Resta de 2 n%cmeros		  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese el primer numero (__)	  %c",179,179);
			gotoxy(34,6);
			scanf("%f",& n1);
			printf("\n%c	Ingrese el segundo numero (__)	  %c",179,179);
			gotoxy(35,8);
			scanf("%f",& n2);
			printf("\n%c   	El resultado es %.2f    	  %c",179,resta(n1,n2),179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 3:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	3.- Multiplicaci%cn de 2 n%cmeros	  %c",179,162,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese el primer numero (__)	  %c",179,179);
			gotoxy(34,6);
			scanf("%f",& n1);
			printf("\n%c	Ingrese el segundo numero (__)	  %c",179,179);
			gotoxy(35,8);
			scanf("%f",& n2);
			printf("\n%c   	El resultado es %.2f    	  %c",179,mult(n1,n2),179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 4:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	4.- Divisi%cn de 2 n%cmeros	  %c",179,162,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese el primer numero (__)	  %c",179,179);
			gotoxy(34,6);
			scanf("%f",& n1);
				do
				{
					printf("\n%c	Ingrese el segundo numero (__)	  %c",179,179);
					gotoxy(35,8);
					scanf("%f",& n2);
					if(n2==0)
					{
						printf("\n%c	Divisi%cn Invalida	  	  %c",179,162,179);
					}
					if(n2!=0)
					{
						printf("\n%c   	El resultado es %.2f    	  %c",179,division(n1,n2),179);
					}
					printf("\e[A");
					printf("\e[A");
					printf("\e[A");
				}while(n2==0);
			printf("\n%c					  %c",179,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 5:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	5.- Mayor de 3 n%cmeros	  	  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese el primer numero (__)	  %c",179,179);
			gotoxy(34,6);
			scanf("%f",& n1);
			printf("\n%c	Ingrese el segundo numero (__)	  %c",179,179);
			gotoxy(35,8);
			scanf("%f",& n2);
			printf("\n%c	Ingrese el tercer numero (__)	  %c",179,179);
			gotoxy(34,10);
			scanf("%f",& n3);
			printf("\n%c   	El numero mayor es %.2f    	  %c",179,nummay(n1,n2,n3),179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 6:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	6.- Factorial de un n%cmero	  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese un numero (__)	  	  %c",179,179);
			gotoxy(27,6);
			scanf("%d",& num);
			printf("\n%c   	El factorial de %d es %d    	  %c",179,num,factorial(i,num),179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 7:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	7.- N%cmero primo o no	  	  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	Ingrese un numero (__)	  	  %c",179,179);
			gotoxy(27,6);
			scanf("%d",& num);
			numdiv=numprimo(num,x);
			if(numdiv==2)
			printf("\n%c   	 El  numero %d es primo 	  	  %c",179,num,179);
			else
			printf("\n%c   	El  numero %d no es primo 	  %c",179,num,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
		case 8:
			system("cls");
			printf("\n%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",218,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,191);
			printf("\n%c	8.- Ordenamiento de 7 n%cmeros  	  %c",179,163,179);
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			for(i=0; i<3; i++)
			{
				printf("\n%c	Ingrese un n%cmero (__)  	  %c\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b",179,163,179);
				scanf("%d",& numeros[i]);
			}
			ordenanum(numeros[3]);
			for(i=0; i<3; i++)
			{
				printf("\n%c   	%d   	  %c",179,numeros[i],179);
			}
			printf("\n%c					  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	APP FUNCIONES Y MENUS		  %c",179,179);
			printf("\n%c",195);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,180);
			printf("\n%c					  %c",179,179);
			printf("\n%c	 VERSION 1.0 (27/03/2020)	  %c",179,179);
			printf("\n%c",192);
			printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,217);
			system("pause");
		break;
 
	}
}while(opcion!=11);
	return 0;
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Rodrigo
Val: 350
Bronce
Ha mantenido su posición en C/Visual C (en relación al último mes)
Gráfica de C/Visual C

[Warning] passing argument 1 of 'ordenanum' makes pointer from integer without a cast

Publicado por Rodrigo (119 intervenciones) el 20/04/2020 04:50:27
Cuando llames a la funcion, solo requieres el nombre del arreglo

en el main, en vez de
1
ordenanum(numeros[3]);

usa
1
ordenanum(numeros);
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