Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- void cargarDatos(bool matCliente[600][4]);
- void puntoD (bool matCliente[600][4]);
- int main(){
- bool matCliente[600][4]={false};
- cargarDatos(matCliente);
- puntoD(matCliente);
- cout<<endl;
- system("pause");
- return 0;
- }
- void cargarDatos(bool matCliente[600][4]){
- int idPedido, idCliente, idContacto;
- cout<<"ID de Pedido: ";
- cin>>idPedido;
- while(idPedido >= 0){
- cout<<"ID de Cliente: ";
- cin>>idCliente;
- cout<<"ID de Medio de Contacto: ";
- cin>>idContacto;
- matCliente[idCliente-800][idContacto/1000-1]=true;
- cout<<"ID de Pedido: ";
- cin>>idPedido;
- }
- }
- void puntoD( bool matCliente[600][4]){
- for(int i = 0; i < 600; i++){
- if(!matCliente[i][0] && !matCliente[i][2]){
- cout<<i+800<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment