mmmmmmmmm nunca se me habia ocurrido estar comentado mis codigos, gracias me parece buena idea xd :3
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
root@bt:~/geany-0.21# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether NLS is requested... yes
checking for intltool-update... no
checking for intltool-merge... no
checking for intltool-extract... no
configure: error: The intltool scripts were not found. Please install intltool.
root@bt:~/geany-0.21# make
make: *** No targets specified and no makefile found. Stop.
root@bt:~/geany-0.21# sudo make install geany
make: *** No rule to make target `install'. Stop.
root@bt:~/geany-0.21#
root@bt:~# sudo apt-get install geany
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
doc-base
The following NEW packages will be installed:
geany
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2097kB of archives.
After this operation, 6210kB of additional disk space will be used.
Err http://archive.offensive-security.com pwnsauce/universe geany 0.14-1ubuntu1
Could not resolve 'archive.offensive-security.com'
Failed to fetch http://archive.offensive-security.com/pool/universe/g/geany/geany_0.14-1ubuntu1_i386.deb Could not resolve 'archive.offensive-security.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@bt:~#
package trabajounidad1;
import javax.swing.*;
public class TrabajoUnidad1 {
public static void main(String[] args) {
int edad,ch=0,cm=0,joven=0,adulto=0,adultom=0,voto,max=0,min=999999999;
char genero;
do{
edad=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Edad del Votante"));
switch(edad){
case 1:
if(edad>18 && edad<=25){
genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
if(genero=='M'||genero=='m'){
ch++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}
else{
cm++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}
joven++;
} break;
case 2:
if(edad>25 && edad<=40){
genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
if(genero=='M'||genero=='m'){
ch++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}else{
cm++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}
}
adulto++;
break;
case 3:
if(edad>40){
genero=JOptionPane.showInputDialog("Ingrese Genero del Votante").charAt(0);
if(genero=='M'||genero=='m'){
ch++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}else{
cm++;
voto=Integer.parseInt(JOptionPane.showInputDialog("Ingrese Candidato preferido\n[1]Candidato 1\n[2]Candidato 2\n[3]Candidato 3 "));
while(voto>max){
max=voto;
}
while(voto<min){
min=voto;
}
}
}
adultom++;
break;
}
}while(edad!=0);
}
}