Codigo Fuente Re Cualquiera

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • oKaSiOn
    κ
    • 12-06-2003
    • 2727

    #1

    Codigo Fuente Re Cualquiera

    posteen codigo fuente DE CUALQUIER COSA DE CUALQUIER LENGUAJE DE CUALQUIER MIERDA

    #include <stdio.h>

    int numero;
    int *posi;

    void main()

    {

    numero = 3;

    printf ("numero vale %d\n",numero);

    printf ("la posicion de posi es %p\n",posi);



    posi = (int *) malloc (sizeof(int));

    *posi = 234;

    printf ("la nueva posicion definida por malloc de posi es %p\n",posi);

    printf ("posi vale %d\n",*posi);

    free(posi);

    posi = &numero;

    printf ("posi vale %d\n",*posi);

    }
  • oKaSiOn
    κ
    • 12-06-2003
    • 2727

    #2
    #include <stdio.h>

    char * resp;
    int punt;

    main()

    {

    printf("El comando 'FORMAT: A' sirve para formatear un diskette?\n");

    scanf("%s",&resp);

    if (resp == 'no')

    {
    printf("correcto.");
    punt = punt + 1;
    printf("Puntos : %d\n",punt);
    }

    else

    {
    printf("incorrecto.\n");
    printf("Puntos : %d\n",punt);
    }

    resp = "";



    printf("Para correr Windows 3.1 es necesario tener instalado el DOS?\n");

    scanf("%s",&resp);

    if (resp == 'si')

    {
    printf("correcto.");
    punt = punt + 1;
    printf("Puntos : %d\n",punt);
    }

    else

    {
    printf("incorrecto.\n");
    printf("Puntos : %d\n",punt);
    }

    resp = "";



    printf("El comando MD sirve para modificar un directorio?\n");

    scanf("%s",&resp);

    if (resp == 'no')

    {
    printf("correcto.");
    punt = punt + 1;
    printf("Puntos : %d\n",punt);
    }

    else

    {
    printf("incorrecto.\n");
    printf("Puntos : %d\n",punt);
    }

    resp = "";



    printf("El modificador '/p' lista directorios horizontalmente?\n");

    scanf("%s",&resp);

    if (resp == 'no')

    {
    printf("correcto.");
    punt = punt + 1;
    printf("Puntos : %d\n",punt);
    }

    else

    {
    printf("incorrecto.\n");
    printf("Puntos : %d\n",punt);
    }

    resp = "";
    }

    Comentario

    • oKaSiOn
      κ
      • 12-06-2003
      • 2727

      #3
      #include <windows.h> // Header File For Windows
      #include <stdio.h> // Header File For Standard Input/Output ( NEW )
      #include <gl\gl.h> // Header File For The OpenGL32 Library
      #include <gl\glu.h> // Header File For The GLu32 Library
      #include <gl\glaux.h> // Header File For The GLaux Library
      #include <gl/glut.h>

      //-----------------------------------------------------------------------------------------------

      GLuint texture[6]; // Storage For One Texture
      float angle = 0.0;
      bool autorotate = 1;
      float i;

      GLfloat LightAmbient[]= { 0.3f, 0.3f, 0.3f, 1.0f }; // Ambient Light Values ( NEW )

      GLfloat LightDiffuse[]= { 1.0f, 1.0f, 1.0f, 1.0f }; // Diffuse Light Values ( NEW )

      GLfloat LightPosition[]= { 0.0f, 0.0f, 2.0f, 1.0f }; // Light Position ( NEW )



      void LoadGLTextures(GLuint textureArray[], LPSTR strFileName, int textureID)
      {
      AUX_RGBImageRec *pBitmap = NULL;

      if(!strFileName)
      return;

      pBitmap = auxDIBImageLoad(strFileName);

      if(pBitmap == NULL)
      exit(0);

      glGenTextures(1, &textureArray[textureID]);
      glBindTexture(GL_TEXTURE_2D, textureArray[textureID]);
      gluBuild2DMipmaps(GL_TEXTURE_2D, 3, pBitmap->sizeX, pBitmap->sizeY, GL_RGB, GL_UNSIGNED_BYTE, pBitmap->data);
      glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
      glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);

      if (pBitmap)
      {
      if (pBitmap->data)
      {
      free(pBitmap->data);
      }

      free(pBitmap);
      }
      }

      //-----------------------------------------------------------------------------------------------

      void changeSize(int w, int h) {

      // Prevent a divide by zero, when window is too short
      // (you cant make a window of zero width).
      if(h == 0)
      h = 1;

      float ratio = 1.0* w / h;

      // Reset the coordinate system before modifying
      glMatrixMode(GL_PROJECTION);
      glLoadIdentity();

      // Set the viewport to be the entire window
      glViewport(0, 0, w, h);

      // Set the correct perspective.
      gluPerspective(45,ratio,1,1000);
      glMatrixMode(GL_MODELVIEW);
      glLoadIdentity();
      glTranslatef(0.0,0.0,-5.0);


      }

      //-----------------------------------------------------------------------------------------------

      void KeyDown(unsigned char key, int x, int y)
      {
      switch (key)
      {
      case 27: //ESC
      break;
      case 'w':
      gluLookAt(0.0,0.0,-0.1,
      0.0,0.0,-1.0,
      0.0f,1.0f,0.0f);
      break;
      case 's':
      gluLookAt(0.0,0.0,0.1,
      0.0,0.0,-1.0,
      0.0f,1.0f,0.0f);
      break;
      case 'a':
      glRotatef(1.0,0.0,1.0,0.0);
      break;
      case 'd':
      glRotatef(1.0,0.0,-1.0,0.0);
      break;
      case 'p':
      if (autorotate == 1)
      autorotate = 0;
      else
      autorotate = 1;
      break;
      }

      }

      //-----------------------------------------------------------------------------------------------



      void renderScene(void) {
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
      glPushMatrix();
      // glLoadIdentity();
      if (autorotate == 1)
      glRotatef(angle,0.0,0.0,1.0);
      glBindTexture(GL_TEXTURE_2D, texture[0]);
      glColor4f(255,0,0,255);
      for (i=0;i<5;i=+0.5){
      glBegin(GL_QUADS);
      glTexCoord2f(0.0f, 0.0f); glVertex3f(-i, -i, 1.0f);
      glTexCoord2f(1.0f, 0.0f); glVertex3f( i, -i, 1.0f);
      glTexCoord2f(1.0f, 1.0f); glVertex3f( i, i, 1.0f);
      glTexCoord2f(0.0f, 1.0f); glVertex3f(-i, i, 1.0f);
      glEnd();
      }
      glPopMatrix();
      angle++;
      glutSwapBuffers();
      }

      //-----------------------------------------------------------------------------------------------

      void Idle(void)
      {

      renderScene();
      }

      //-----------------------------------------------------------------------------------------------

      void main(int argc, char **argv) {
      glutInit(&argc, argv);
      glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
      glutInitWindowPosition(100,100);
      glutInitWindowSize(640,480);
      glutCreateWindow("OpenGL");
      glClearColor(0.0,0.0,0.0,0.5);

      //gl "Configuration"
      glEnable(GL_TEXTURE_2D); // Enable Texture Mapping ( NEW )
      glShadeModel(GL_SMOOTH); // Enable Smooth Shading
      glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background
      // glClearDepth(1.0f); // Depth Buffer Setup
      // glDepthFunc(GL_LEQUAL); // The Type Of Depth Testing To Do
      glClearDepth(1.0f); // Depth Buffer Setup
      glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // Really Nice Perspective Calculations
      //----------------------


      LoadGLTextures(texture,"star.bmp",0);
      glBlendFunc(GL_SRC_ALPHA,GL_ONE); // Blending Function For Translucency Based On Source Alpha Value
      glEnable(GL_BLEND); // Turn Blending On
      glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient); // Setup The Ambient Light
      glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse); // Setup The Diffuse Light
      glLightfv(GL_LIGHT1, GL_POSITION,LightPosition); // Position The Light
      glEnable(GL_LIGHT1); // Enable Light
      // glEnable(GL_LIGHTING);
      glutDisplayFunc(renderScene);
      glutIdleFunc(Idle);
      glutReshapeFunc(changeSize);
      glutKeyboardFunc(KeyDown);
      glutMainLoop();
      }

      Comentario

      • oKaSiOn
        κ
        • 12-06-2003
        • 2727

        #4
        Private Declare Function InternetGetConnectedState Lib "Wininet" _
        (ByRef dwflags As Long, ByVal dwreserved As Long) As Long
        Private Const INTERNET_CONNECTION_CONFIGURED As Long = &H40
        Private Const INTERNET_CONNECTION_LAN As Long = &H2
        Private Const INTERNET_CONNECTION_MODEM As Long = &H1
        Private Const INTERNET_CONNECTION_PROXY As Long = &H4
        Private Const INTERNET_CONNECTION_OFFLINE As Long = &H20
        Private Const INTERNET_RAS_INSTALLED As Long = &H10
        Private mvarGetConnectionType As String


        Public Property Get GetConnectionType() As String
        GetConnectionType = mvarGetConnectionType
        End Property


        Public Function GetInternetConnectedState() As Boolean
        Dim dwflags As Long
        Dim RetCode As Boolean


        RetCode = InternetGetConnectedState(dwflags, 0&)


        Select Case RetCode
        Case dwflags And INTERNET_CONNECTION_CONFIGURED
        mvarGetConnectionType = "Local system has a valid connection To the Internet, but it might or might Not be currently connected."
        Case dwflags And INTERNET_CONNECTION_LAN
        mvarGetConnectionType = "Local system uses a local area network To connect to the Internet."
        Case dwflags And INTERNET_CONNECTION_MODEM
        mvarGetConnectionType = "Local system uses a modem To connect to the Internet."
        Case dwflags And INTERNET_CONNECTION_PROXY
        mvarGetConnectionType = "Local system uses a proxy server To connect to the Internet."
        Case dwflags And INTERNET_CONNECTION_OFFLINE
        mvarGetConnectionType = "Local system is In offline mode."
        Case dwflags And INTERNET_RAS_INSTALLED
        mvarGetConnectionType = "Local system has RAS installed."
        End Select
        GetInternetConnectedState = RetCode
        End Function

        Comentario

        • Kabronero
          Giunta, Giunta, Giunta...
          • 14-04-2003
          • 46115

          #5
          #include <stdio.h>
          #include <stdlib.h>
          #include <time.h>
          #include <string.h>


          char *sl[]={
          ":]", ":[", "snif", "Causa noble", "MUERTE", "Esplendido Draco", "AGUANTE A.N.I.M.A.L.", "Desir rock", "Todo va y viene.. lo que queda es la experiencia", "Eagle me dijo que..."
          };

          int main()
          {
          char a_la_basura[1000];
          srand(time(NULL));
          printf("Chat con DoomLoco 1.0, by kabronero\n");
          printf("-----------------------------------\n");
          printf("Para terminar la charla escribe \"chau\"\n\n");
          for(; {
          printf("vos: ");
          gets(a_la_basura);
          if(!strcmpi(a_la_basura, "chau"))
          break;
          if(!strcmpi(a_la_basura, "morite"))
          printf("Doomloco: snif, hagamos casitas [kabro: bueno SH no sabia que poner]\n");
          printf("Doomloco: %s\n", sl[rand()%(sizeof(sl)/sizeof(sl[0]))]);
          }
          return 0;
          }
          Every year of your life seems shorter than the previous one since each passing year represents smaller and smaller portions of your life. It's the same reason a gift of a thousand bucks would be huge news to you, but meaningless to Bill Gates.

          Comentario

          • karo
            Egel's OfiCiaL GaLLeGuiTa
            • 22-08-2003
            • 1865

            #6
            helado
            soy el usuario 911

            Comentario

            • Kabronero
              Giunta, Giunta, Giunta...
              • 14-04-2003
              • 46115

              #7
              compilen el mio y diviertanse hablando con dum

              bah.. es una version de dum desactualizada

              Si quieren cambienle las expresiones por las que usa ahora y listo


              JOJ OO JAJ JOA
              Every year of your life seems shorter than the previous one since each passing year represents smaller and smaller portions of your life. It's the same reason a gift of a thousand bucks would be huge news to you, but meaningless to Bill Gates.

              Comentario

              • Kabronero
                Giunta, Giunta, Giunta...
                • 14-04-2003
                • 46115

                #8
                RETURNEAME UN 0 NEGRO
                Every year of your life seems shorter than the previous one since each passing year represents smaller and smaller portions of your life. It's the same reason a gift of a thousand bucks would be huge news to you, but meaningless to Bill Gates.

                Comentario

                • MoaLaiSkirulais
                  ^^(V)^^
                  • 08-07-2003
                  • 23268

                  #9
                  QuakeC

                  Código:
                  void(entity inflictor, entity attacker, float damage, entity ignore, string dtype) T_RadiusDamage =
                  {
                  	local	float 	points;
                  	local	entity	head;
                  	local	vector	org;
                  
                  	head = findradius(inflictor.origin, damage+40);
                  	
                  	while (head)
                  	{
                  		if (head != ignore)
                  		{
                  			if (head.takedamage)
                  			{
                  				org = head.origin + (head.mins + head.maxs)*0.5;
                  				points = 0.5*vlen (inflictor.origin - org);
                  				if (points < 0)
                  					points = 0;
                  				points = damage - points;
                  				if (head == attacker)
                  					points = points * 0.5;
                  				if (points > 0)
                  				{
                  					if (CanDamage (head, inflictor))
                  					{
                  						head.deathtype = dtype;
                  						T_Damage (head, inflictor, attacker, points);
                  					}
                  				}
                  			}
                  		}
                  		head = head.chain;
                  	}
                  };

                  Comentario

                  • MoaLaiSkirulais
                    ^^(V)^^
                    • 08-07-2003
                    • 23268

                    #10
                    class en JScript

                    Código:
                    //-----------------------------------------
                    //Coleccion 
                    //-----------------------------------------
                    function collection() {
                    
                    	function item(Index){
                    		if (Index==null)
                    	      return this.col
                    	    else
                    		  return this.col[Index]     
                    	      };
                    
                    	function length(){
                    	      return this.col.length};
                    	      
                        function push(oElem,oIndex){
                    		if (oIndex==null)
                    			{
                    			var tamano=this.col.push(oElem)
                    			return this.col[tamano-1]
                    			}
                            else   
                    			{
                    			this.col[oIndex]=(oElem)
                    			return this.col[oIndex]
                    			}
                              };
                    	
                    	function show(){
                    		var cadena="<BR>"
                    		
                    		for (key in this.item()){
                    			cadena=cadena + "&nbsp&nbsp&nbsp&nbsp&nbsp<i><FONT color=green>[" + key  + "]</FONT></i>"
                    			for (atributo in this.item(key)){
                    				cadena= cadena + "<BR>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<i><b>" + atributo  + ": </b></i>" + this.item(key)[atributo]
                    				}
                    			cadena= cadena + "<BR>"
                    		}
                    		return cadena
                    	}
                    	
                    	function clear(){	
                    		this.col = new Array ()	
                    		}
                    	
                    	this.length=length
                    	this.item=item
                    	this.push=push
                    	this.clear=clear
                    	this.col = new Array ()
                    	this.show=show	
                    }

                    Comentario

                    • roan_gackt
                      |-|4/\/\573|2 P0\/\/4|-|
                      • 22-07-2003
                      • 3372

                      #11
                      Con que compilo el codigo?
                      Bloc de notas? =P
                      Ppl die, ppl moan, they look for a place to call paradise..

                      MIREN A MI HAMSTER!
                      www.leo.developer.graphyx.net/roan.WMV



                      Alto BOUCH ^_^'
                      ME VOY A VIVIR A CHILE POR UN ANHO!

                      Comentario

                      • Lux
                        ルクス
                        • 24-04-2003
                        • 24465

                        #12
                        BUENISIMO LOCOO EY CHEdsadsa


                        &#123;<br />
                        printf("correcto.");<br />
                        punt = punt + 1;<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        else<br />
                        <br />
                        &#123;<br />
                        printf("incorrecto.\n");<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        resp = "";<br />
                        <br />
                        <br />
                        <br />
                        printf("Para correr Windows 3.1 es necesario tener instalado el DOS?\n");<br />
                        <br />
                        scanf("%s",&resp);<br />
                        <br />
                        if (resp == 'si') <br />
                        <br />
                        &#123;<br />
                        printf("correcto.");<br />
                        punt = punt + 1;<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        else<br />
                        <br />
                        &#123;<br />
                        printf("incorrecto.\n");<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        resp = "";<br />
                        <br />
                        <br />
                        <br />
                        printf("El comando MD sirve para modificar un directorio?\n");<br />
                        <br />
                        scanf("%s",&resp);<br />
                        <br />
                        if (resp == 'no') <br />
                        <br />
                        &#123;<br />
                        printf("correcto.");<br />
                        punt = punt + 1;<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        else<br />
                        <br />
                        &#123;<br />
                        printf("incorrecto.\n");<br />
                        printf("Puntos : %d\n",punt);<br />
                        }<br />
                        <br />
                        resp = "";<br />
                        <br />
                        <br />
                        <br />
                        printf("El modificador '/p' lista directorios horizontalmente?\n");<br />
                        <br />
                        scanf("%s",&resp);<br />
                        <br />
                        if (resp == 'no') <br />
                        <br />
                        &#123;<br />
                        printf("correcto.");<br />

                        Comentario

                        • Lalolanda
                          Otorrinolaringologia
                          • 16-05-2003
                          • 17500

                          #13
                          obvio que no se ni enteinedo eh re que

                          Comentario

                          • HeLLRaiSeR
                            Incrédulo.
                            • 26-05-2003
                            • 478

                            #14
                            Posteado por: kabronero
                            #include <stdio.h>
                            #include <stdlib.h>
                            #include <time.h>
                            #include <string.h>


                            char *sl[]={
                            ":]", ":[", "snif", "Causa noble", "MUERTE", "Esplendido Draco", "AGUANTE A.N.I.M.A.L.", "Desir rock", "Todo va y viene.. lo que queda es la experiencia", "Eagle me dijo que..."
                            };

                            int main()
                            {
                            char a_la_basura[1000];
                            srand(time(NULL));
                            printf("Chat con DoomLoco 1.0, by kabronero\n");
                            printf("-----------------------------------\n");
                            printf("Para terminar la charla escribe \"chau\"\n\n");
                            for(; {
                            printf("vos: ");
                            gets(a_la_basura);
                            if(!strcmpi(a_la_basura, "chau"))
                            break;
                            if(!strcmpi(a_la_basura, "morite"))
                            printf("Doomloco: snif, hagamos casitas [kabro: bueno SH no sabia que poner]\n");
                            printf("Doomloco: %s\n", sl[rand()%(sizeof(sl)/sizeof(sl[0]))]);
                            }
                            return 0;
                            }
                            JAjuajuauja, sos dios

                            Comentario

                            Trabajando...