Go Back   Champions of Regnum > Español > La Taberna

La Taberna Un lugar para conversar sobre casi cualquier tema

Reply
 
Thread Tools Display Modes
Old 11-26-2007, 10:42 PM   #21
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Quote:
Originally Posted by Matavivos
Hay cerveza de por medio?
Eso depende del lenguaje que aprendas.
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:43 PM   #22
Matavivos
Banned
 
Matavivos's Avatar
 
Join Date: Nov 2006
Location: Pais de las Maravillas
Posts: 1,171
Matavivos will become famous soon enough
Default

Quote:
Originally Posted by Xephandor
Eso depende del lenguaje que aprendas.
Epa!!!, esto me esta interesando!!!
Cuales valen por una cerbezita bien fria?
Matavivos no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:43 PM   #23
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

Quote:
Originally Posted by Matavivos
Hay cerbeza de por medio?
Code:
#include <Matavivos.h>
#include <stdio.h>

#define SI 1
#define NO 0

typedef struct Matavivos{
          unsigned int buenTipo;
          unsigned int leGustaLaCerveza;
};

int main(int argc, char **argv){

if(Matavivos->leGustaLaCerveza){
           printf("dale te invito a una :clapclap: %s\n", "(aqui no habia una comilla");
           Matavivos->buenTipo = SI;
}else{
           printf("Mata no se merece estar aca (?)\n");
           Matavivos->buenTipo = NO;
           return -1;
}

return 0;
}
Ahí tienes un ejemplo variado pescau

edit faltaba la estrucutura matavivos
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:49 PM   #24
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Ar, en el bloque de verdad en el if te sobra una comilla en el printf. Me siento un IDE diciendo eso
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:49 PM   #25
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

Quote:
Originally Posted by Xephandor
Ar, en el bloque de verdad en el if te sobra una comilla en el printf. Me siento un IDE diciendo eso
te odio (?)

es que no me dejaste tiempo de pasarle el compilador
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:55 PM   #26
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Quote:
Originally Posted by arlick
te odio (?)

es que no me dejaste tiempo de pasarle el compilador
Es que para vos soy tu compilador... Y tu ide... Y tu Garbage Collector... Y, y... Y nada más
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:56 PM   #27
theotherhiveking
Count
 
Join Date: May 2007
Posts: 1,452
theotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura about
Default

Code:
#!/usr/bin/python

import pygame
from pygame.locals import *

def main():
	# Initialise screen
	pygame.init()
	screen = pygame.display.set_mode((600, 400))
	pygame.display.set_caption('Holas Xeph')

	# Fill background
	background = pygame.Surface(screen.get_size())
	background = background.convert()
	background.fill((0, 0, 0))

	# Display some text
	font = pygame.font.Font(None, 50)
	text = font.render("Holitas Xephy", 1, (255, 255, 255))
	textpos = text.get_rect()
	textpos.centerx = background.get_rect().centerx
	textpos.centery = background.get_rect().centery	
	background.blit(text, textpos)

	# Blit everything to the screen
	screen.blit(background, (0, 0))
	pygame.display.flip()

	# Event loop
	while 1:
		for event in pygame.event.get():
			if event.type == QUIT:
				return
		
		screen.blit(background, (0, 0))
		pygame.display.flip()


if __name__ == '__main__': main()


resultado:
__________________
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
theotherhiveking no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:56 PM   #28
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

Quote:
Originally Posted by Xephandor
Es que para vos soy tu compilador... Y tu ide... Y tu Garbage Collector...
es lo más bonito que me han dicho nunca (?)

te lo robo pescau: tum tum chsss D

hoy estoy inspirado
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 10:58 PM   #29
theotherhiveking
Count
 
Join Date: May 2007
Posts: 1,452
theotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura abouttheotherhiveking has a spectacular aura about
Default

Quote:
Originally Posted by arlick
es lo más bonito que me han dicho nunca (?)

te lo robo pescau: tum tum chsss D

hoy estoy inspirado
T_T (?)


CUAC!
__________________
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
theotherhiveking no ha iniciado sesión   Reply With Quote
Old 11-26-2007, 11:01 PM   #30
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Quote:
Originally Posted by arlick
es lo más bonito que me han dicho nunca (?)
Y así me usás, como cuando cambiás de Eclipse a Netbeans y vice versa
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved