Normas del foro
Bienvenido(a),
Visitante
. Favor de
ingresar
o
registrarse
.
¿Perdiste tu
email de activación?
- Noviembre 18, 2008, 02:12:13
Visita:
Articulos
-
Juegos Gratis
-
Da Foros
Comunidad Underground Hispana
|
Programacion
|
Programaci贸n
|
Carbide C/C#/C++
| Tema:
problema en C++
0 Usuarios y 1 Visitante están viendo este tema.
« anterior
próximo »
Páginas:
[
1
]
Autor
Tema: problema en C++ (Leído 195 veces)
anusky
Miembro
Desconectado
Mensajes: 47
problema en C++
«
en:
Octubre 25, 2006, 12:07:40 »
hola!!! estoy empezando a hacer programas en C++ y tengo un problema a la hora de compilar esta parte:
#include<stdio.h>
#include <iostream>
#include <conio.h>
#include "matriz.h"
matriz::matriz()
{
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
tabla
[j]=0;
}
void matriz::mostrar()
{
for (int i=0; i<M; i++)
{
for (int j=0; j<M; j++)
{
cout.width(5);
cout<< tabla
[j];
}
cout<< endl;
}
system("pause");
}
void matriz::cargar()
{
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
{
cout<< "m[" << i+1 <<","<< j+1 <<"] ";
cin >> tabla
[j];
}
}
matriz matriz::operator* (matriz m)
{
matriz n;
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
{
int prod=0;
for (int k=0; k<M; k++)
prod=prod+tabla
[k]*m.tabla
[j];
n.tabla
[j]=prod;
}
return n;
}
matriz matriz::operator+ (matriz m)
{
matriz n;
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
n.tabla
[j]=tabla
[j]+m.tabla
[j];
return n;
}
matriz matriz::operator- (matriz m)
{
matriz n;
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
n.tabla
[j]=tabla
[j]-m.tabla
[j];
return n;
}
matriz matriz::operator- ()
{
matriz n;
for (int i=0; i<M; i++)
for (int j=0; j<M; j++)
n.tabla
[j]=-tabla
[j];
return n;
}
me sale este error en el system("pause"); :
24 matriz.cpp
implicit declaration of function `int system(...)'
cual es el problema?
En línea
anusky
Miembro
Desconectado
Mensajes: 47
Re: problema en C++
«
Respuesta #1 en:
Octubre 25, 2006, 12:18:49 »
vale ya nada he resuelto mi problemilla, una chorrada enorme
En línea
arvin
Visitante
Re: problema en C++
«
Respuesta #2 en:
Octubre 25, 2006, 12:27:35 »
system("PAUSE");
This command will "pause" the screen and display the message "Press any key to continue . . . " as it waits for a keystroke. If you wish to pause the screen after a cout statement, you will need to "flush" the iostream. (Requires header file <stdlib.h>)
cout<< "Hello"<<endl<<flush; //flush forces the printing to the screen before it pauses
system ("PAUSE"); //pause displays a message and waits for the user to hit a key
cout<< "Good-Bye"<<endl;
also, you'll need the library, the error appear in your screen is only for the method on the class, see if your prototype is correct only...
cheers
En línea
Páginas:
[
1
]
Comunidad Underground Hispana
|
Programacion
|
Programaci贸n
|
Carbide C/C#/C++
| Tema:
problema en C++
« anterior
próximo »
Ir a:
Por favor selecciona un destino:
-----------------------------
Foros De Consulta General
-----------------------------
=> Novedades
=> Dudas, Comentarios Y Sugerencias
=> Top 100
=> Off-Topic
=> Revista E-Zine
===> Noticias
-----------------------------
Phreaking, Hacking y Seguridad
-----------------------------
=> HacK GeneraL
===> Ingenieria Inversa
===> Encriptacion, Cryptografia
===> TV HACK
===> Cursos y Ezines
=====> Trucos Internet
=====> Textos Hacking
===> Defacing
=> Seguridad
=> Phreaking
===> Moviles
=> Bug y Exploits
===> Directorio de Exploits
=> Wargames, Retos Hack
-----------------------------
Hack Novato
-----------------------------
=> Hack para newbies
=> Todo Messenger
=> Troyanos y virus
-----------------------------
Sistemas Operativos
-----------------------------
=> Windows y otros sistemas operativos no libres
===> Problemas Tecnicos Windows
=> Sistemas operativos libres.
===> GNU/Linux
===> Manuales y Tutoriales
===> Descargas
-----------------------------
Programacion
-----------------------------
=> Programaci贸n
===> Programaci贸n Basica
===> Otros Lenguajes
===> Visual Basic y Net
===> ASM
===> Programacion Shell
===> Perl
===> Carbide C/C#/C++
===> Batch
===> SQL
=> Programacion para webmasters
===> Consultas Generales
===> Php
===> Html, XHTML, CSS
===> Java - Java Script
===> CMS O Scripts Pre-Fabricados
===> Posicionamiento en buscadores
-----------------------------
Artes Graficas
-----------------------------
=> Dise帽o Grafico
===> Battle Arts
===> Flash
===> Tutoriales
===> Galer铆颅as
===> Software
-----------------------------
Area Tecnica
-----------------------------
=> Networking & Wireless
=> Overclocking, Refrigeracion y demas
=> Hardware
===> Biblioteca Tecnica
=> Electronica Y Robotica
-----------------------------
Programas
-----------------------------
=> Software
===> Configuraciones de software
===> Pedidos de software
=> Cracks & Serialz
=> P2p, Bittorrent, Elinks
-----------------------------
Multimedia Y Divx
-----------------------------
=> Juegos PC Y Consolas
===> Dudas ayudas y comentarios de juegos
===> Pedidos de juegos
===> Juegos de Consola
=> Mp3
=> Multimedia
=> Peliculas Divx
-----------------------------
Entretenimiento Y sitios de interes
-----------------------------
=> Juegos, Humor y Adultos. (Diversi贸n)
===> Adultos
=> Paginas Webs Recomendadas
=> Videos
Powered by SMF 1.1.7
|
SMF © 2006-2007, Simple Machines LLC
Loading...