• Viernes 9 de Mayo de 2025, 16:09

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - geobeid

Páginas: 1 2 3 [4]
76
C/C++ / Re: Vector De Bits
« en: Martes 5 de Septiembre de 2006, 21:32 »
Usa el bitset de la libreria Standar
aca tenes lo que muestra la ayuda del c++builder acerca de este contenedor:
Citar
Interface

template <size_t N>
class bitset {
public:
// bit reference:
  class reference {
   friend class bitset;
  public:
   ~reference();
   reference& operator= (bool);
   reference& operator= (const reference&);
   bool operator~() const;
   operator bool() const;
   reference& flip();
  };

// Constructors
  bitset ();
  bitset (unsigned long);
  template<class charT, class traits, class Allocator>
  explicit bitset
           (const basic_string<charT, traits, Allocator>,

            typename basic_string<charT, traits,
                                  Allocator>::size_type=0,
            typename basic_string<charT, traits,
                                  Allocator>::size_type=
            basic_string<charT, traits, Allocator>::npos);
  bitset (const bitset<N>&);
  bitset<N>& operator= (const bitset<N>&);
// Bitwise Operators and Bitwise Operator Assignment
   bitset<N>& operator&= (const bitset<N>&);
   bitset<N>& operator|= (const bitset<N>&);

   bitset<N>& operator^= (const bitset<N>&);
   bitset<N>& operator<<= (size_t);
   bitset<N>& operator>>= (size_t);
// Set, Reset, Flip
   bitset<N>& set ();
   bitset<N>& set (size_t, int = 1);
   bitset<N>& reset ();
   bitset<N>& reset (size_t);
   bitset<N> operator~() const;
   bitset<N>& flip ();
   bitset<N>& flip (size_t);
// element access
   reference operator[] (size_t);
   unsigned long to_ulong() const;
   template<class charT, class traits, class Allocator>

   basic_string<charT, traits, Allocator> to_string();
   size_t count() const;
   size_t size() const;
   bool operator== (const bitset<N>&) const;
   bool operator!= (const bitset<N>&) const;
   bool test (size_t) const;
   bool any() const;
   bool none() const;
   bitset<N> operator<< (size_t) const;
   bitset<N> operator>> (size_t) const;
};
// Non-member operators
template <size_t N>
bitset<N> operator& (const bitset<N>&, const bitset<N>&);
template <size_t N>

bitset<N> operator| (const bitset<N>&, const bitset<N>&);
template <size_t N>
bitset<N> operator^ (const bitset<N>&, const bitset<N>&);
template <size_t N>
istream& operator>> (istream&, bitset<N>&);
template <size_t N>
ostream& operator<< (ostream&, const bitset<N>&)

Constructors

bitset();

Constructs an object of class bitset<N>, initializing all bit values to zero.

bitset(unsigned long val);

Constructs an object of class bitset<N>, initializing the first M bit values to the corresponding bits in val. M is the smaller of N and the value CHAR_BIT * sizeof(unsigned long). If M < N, remaining bit positions are initialized to zero. Note: CHAR_BIT is defined in <climits>.

template<class charT, class traits, class Allocator>
explicit
bitset (const basic_string<charT, traits, Allocator>,
        typename basic_string<charT, traits,
                              Allocator>::size_type=0,
        typename basic_string<charT, traits,
                              Allocator>::size_type=
        basic_string<charT, traits, Allocator>::npos);

Determines the effective length rlen of the initializing string as the smaller of n and str.size() - pos. The function throws an invalid_argument exception if any of the rlen characters in str, beginning at position pos, is other than 0 or 1. Otherwise, the function constructs an object of class bitset<N>, initializing the first M bit positions to values determined from the corresponding characters in the string str. M is the smaller of N and rlen. This constructor expects pos <= str.size(). If that is not true, the constructor throws an out_of_range exception.

bitset(const bitset<N>& rhs);

Creates a copy of rhs.

Assignment Operators

bitset<N>&
operator=(const bitset<N>& rhs);

Erases all bits in self, then inserts into self a copy of each bit in rhs. Returns a reference to *this.

Operators

bool
operator==(const bitset<N>& rhs) const;

Returns true if the value of each bit in *this equals the value of each corresponding bit in rhs. Otherwise returns false.

bool
operator!=(const bitset<N>& rhs) const;

Returns true if the value of any bit in *this is not equal to the value of the corresponding bit in rhs. Otherwise returns false.

bitset<N>&
operator&=(const bitset<N>& rhs);

Clears each bit in *this for which the corresponding bit in rhs is clear and leaves all other bits unchanged. Returns *this.

bitset<N>&
operator|=(const bitset<N>& rhs);

Sets each bit in *this for which the corresponding bit in rhs is set, and leaves all other bits unchanged. Returns *this.

bitset<N>&
operator^=(const bitset<N>& rhs);

Toggles each bit in *this for which the corresponding bit in rhs is set, and leaves all other bits unchanged. Returns *this.

bitset<N>&
operator<<=(size_t pos);

Replaces each bit at position I with 0 if I < pos or with the value of the bit at I - pos if I >= pos. Returns *this.

bitset<N>&
operator>>=(size_t pos);

Replaces each bit at position I with 0 if pos >= N-I or with the value of the bit at position I + pos if pos < N-I. Returns *this.

bitset<N>&
operator>>(size_t pos) const;

Returns bitset<N>(*this) >>= pos.

bitset<N>&
operator<<(size_t pos) const;

Returns bitset<N>(*this) <<= pos.

bitset<N>
operator~() const;

Returns the bitset that is the logical complement of each bit in *this.

bitset<N>
operator&(const bitset<N>& lhs,
          const bitset<N>& rhs);

lhs gets logical AND of lhs with rhs.

bitset<N>
operator|(const bitset<N>& lhs,
          const bitset<N>& rhs);

lhs gets logical OR of lhs with rhs.

bitset<N>
operator^(const bitset<N>& lhs,
          const bitset<N>& rhs);

lhs gets logical XOR of lhs with rhs.

template <size_t N>
istream&
operator>>(istream& is, bitset<N>& x);

Extracts up to N characters (single-byte) from is. Stores these characters in a temporary object str of type string, then evaluates the expression x = bitset<N>(str). Characters are extracted and stored until any of the following occurs:

N characters have been extracted and stored
   An end-of-file is reached on the input sequence
   The next character is neither '0' nor '1'. In this case, the character is not extracted

Returns is.

template <size_t N>
ostream&
operator<<(ostream& os, const bitset<N>& x);

Returns os << x.to_string()

Member Functions

bool
any() const;

Returns true if any bit in *this is set. Otherwise returns false.

size_t
count() const;

Returns a count of the number of bits set in *this.

bitset<N>&
flip();

Flips all bits in *this, and returns *this.

bitset<N>&
flip(size_t pos);

Flips the bit at position pos in *this and returns *this. Throws an out_of_range exception if pos does not correspond to a valid bit position.

bool
none() const;

Returns true if no bit in *this is set.  Otherwise returns false.

bitset<N>&
reset();

Resets all bits in *this, and returns *this.

bitset<N>&
reset(size_t pos);

Resets the bit at position pos in *this. Throws an out_of_range exception if pos does not correspond to a valid bit position.

bitset<N>&
set();

Sets all bits in *this, and returns *this.

bitset<N>&
set(size_t pos, int val = 1);

Stores a new value in the bits at position pos in *this. If val is nonzero, the stored value is one, otherwise it is zero. Throws an out_of_range exception if pos does not correspond to a valid bit position.

size_t
size() const;

Returns the template parameter N.

bool
test(size_t pos) const;

Returns true if the bit at position pos is set. Throws an out_of_range exception if pos does not correspond to a valid bit position.

template<class charT, class traits, class Allocator>
basic_string<charT, traits, Allocator>
to_string();

Returns an object of type string, N characters long.
Each position in the new string is initialized with a character ('0' for zero and '1' for one) representing the value stored in the corresponding bit position of *this. Character position N - 1 corresponds to bit position 0. Subsequent decreasing character positions correspond to increasing bit positions.

unsigned long
to_ulong() const;

Returns the integral value corresponding to the bits in *this. Throws an overflow_error if these bits cannot be represented as type unsigned long.

ESPERO TE SIRVA.
 :kicking:

77
C++ Builder / Re: ¡haced La Prueba!
« en: Martes 5 de Septiembre de 2006, 21:16 »
PROBA CON EL EVENTO "OnCloseQuery" EN VES DEL "OnClose" Y DESPUES ME CONTAS

 :comp:  :kicking:

78
HTML / Re: Mejor Editor Html
« en: Martes 5 de Septiembre de 2006, 06:38 »
EL MEJOR EL ES NOOBHTML (DE HECHO NO ES UN EDITOR SINO UN PEQUEÑO PROGRAMA QUE TOY HACIENDO EN C++ PARA QUE CUALQUIER NOOB PUEDA HACER UN SITIO ESTATICO :P)
AHORA HABLANDO EN SERIO COMO EDITOR PARA HACER UNA PAGINA PLANA QUE SOLO SE ENCARGUE DE MOSTRAR UN TEXTO DE FORMA LINDA: DW ES LO MEJOR DEVIDO A LO COMODO Y RAPIDO.
SINO COMO LE RESPONDI A MI PROFESOR DE PROGRAMACION 2 CUANDO ME PREGUNTO SI USABA ALGUN EDITOR DE JAVASCRIPT Y LE RESPONDI: "¿BLOCK DE NOTAS?" PERO EL KATE ES LO MAS LOKO :kicking:

BYTES GENTE

79
C++ Builder / Re: Ayuda Urgente... Porfa
« en: Martes 5 de Septiembre de 2006, 06:13 »
SE NOTA QUE ESTOY AL PEDO. ACA LO CORREGI BASTANTE. FIJATE SI ES LO QUE QUERIAS.

Código: Text
  1. #include &#60;stdio.h&#62;
  2. #include &#60;conio.h&#62;
  3. #include &#60;windows.h&#62;
  4. #include &#60;stdlib.h&#62;
  5. #define max 5
  6.  
  7. typedef struct tbicicleta{
  8.         int x,y,dx;
  9.         int color;
  10.         } tbicicleta;
  11.  
  12. void bicicleta(int c, int x, int y){
  13.         if(x&#60;66){
  14.                 textcolor(c);
  15.                 gotoxy(x,y);
  16.                 cprintf(&#34;,___V&#34;);
  17.                 gotoxy(x,y+1);
  18.                 cprintf(&#34;o  o&#34;);}
  19.         else{
  20.                 textcolor(10);
  21.                 gotoxy(x,y);
  22.                 cprintf(&#34;GANADOR&#34;);};
  23.         }
  24.  
  25. void Borra(int x, int y){
  26.         gotoxy(x,y);
  27.         printf(&#34;     &#34;);
  28.         gotoxy(x,y+1);
  29.         printf(&#34;     &#34;);
  30.         }
  31.  
  32. int Pasa(int n){
  33.         return(n&#60;66?0:1);
  34.         }
  35.  
  36. void linea_final(){
  37.         int i;
  38.         for (i=1;i&#60;25;i++){
  39.                 gotoxy(70,i);
  40.                 textcolor(12);
  41.                 cprintf(&#34;%c&#092;n&#34;,176);
  42.                 }
  43.         }
  44.  
  45. void main(){
  46.         int i;
  47.         tbicicleta img[max];
  48.         linea_final();
  49.         randomize();
  50.         for(i=0;i&#60;max;i++){
  51.                 img[i].x=3;
  52.                 img[i].y=3+4*i;
  53.                 img[i].color=10+i;
  54.                 }
  55.  
  56.         for(i=0;i&#60;max;i++){
  57.                 bicicleta(img[i].color,img[i].x,img[i].y);}
  58.         gotoxy(35,10);
  59.         printf(&#34;PULSE ENTER PARA INICIAR&#34;);
  60.         getch();
  61.         clrscr();
  62.         int p,g=0,bici[max]={0,0,0,0};
  63.         while(1){
  64.                 for(i=0;i&#60;max;i++){
  65.                         do{
  66.                         if(g)
  67.                                 getch();
  68.                         bici[i]=bici[i]+img[i].x+random(3)+1;
  69.                         gotoxy(bici[i],img[i].y);
  70.                         bicicleta(img[i].color,bici[i],img[i].y);
  71.                         p=bici[i];
  72.                         }while((g=Pasa(p)));
  73.                 }
  74. linea_final();
  75. Sleep(300);
  76. for(i=0;i&#60;max;i++)
  77. Borra(bici[i],img[i].y);
  78. }
  79. }
  80.  

80
C++ Builder / Re: Ayuda Urgente... Porfa
« en: Martes 5 de Septiembre de 2006, 05:42 »
UN ERROR ECONTRE POR AHORA QUE ES QUE TU FUNCION QUE BORRA LA BICICLETA PARA QUE AVANCE NO LA BORRA ENTERA. FIJATE BIEN.
EL RESTO ESTA BIEN.

PODRIAS PONER UNA VERIFICACION DE QUE DONDE SE ENCUENTRA LA BICICLETA Y QUE SI ESTA ESTA EN LA META ESCRIBA EN ESTA POCICION EN OTRO COLOR "GANADOR" Y PODES AGREGARLE UN "cout<<"\a\a"" CUANDO IMPRIME GANADOR.

BYTES

81
C++ Builder / Re: Ayuda Urgente... Porfa
« en: Martes 5 de Septiembre de 2006, 05:34 »
Citar
el primero que llegue a la linea anunciarlo como ganador en esa posición.
si hay varios ganadores la posicion mas cercana es la ganadora.
y por último que revisen si se puede mejorar mi código

no entiendo la duda

82
Python / Re: Pregunta Un Tanto Estupida
« en: Martes 5 de Septiembre de 2006, 05:31 »
GRAX.

NO SE SI SE DIERON CUENTA PERO NO PASARON NI 5 MINUTOS QUE ENTRARON 9 PERSONAS A LEER MI POST, ME RESPONDI UNA Y YO YA LE AGRADECI. QUE BUEN FORO LOCO!!!

83
Python / Pregunta Un Tanto Estupida
« en: Martes 5 de Septiembre de 2006, 05:23 »
Como bien lo dice la descripcion: " me siento un noob" ya que acostumbrado a mi lindo windows escribia mis codiguitos phyton extremadamente basicos en el block de notas, los uardaba como .py y lugo con un lindo doble click los ejecutaba, y lito el pollo.
ahora que me vine al KDE y programe algo en phyton en el kate, lo guarde, le puse hola.py para que el kate me coloree la sintaxis y por mas que le pongo todo lo que se me ocurre en la konsole no lo puedo ejecutar.

mi pregunta es:

¿como abro un programa en phyton en KDE? (no se si sera lo mismo en gnome o slack pero bue yo pregunto y me da verguenza)

84
C/C++ / Re: Problemas De Novato
« en: Martes 5 de Septiembre de 2006, 05:14 »
Citar
#include <stdio.h>

int main()
{
float e,v,t;

v = 30 ;
t = 5 ;
e = v*t;

printf ("\nVelocidad: %f\nTiempo : %f",v,t);
printf ("\nEspacio recorrido : %f\n",e); /*Aqui tengo el dixoso problema*/
return 0;
}

el problema era en la linea 12 ( contando a partir de 1 y teniendo en cuenta los renglones en blanco) que decia "prinft" y no "printf". nada mas. el ' \n' que agregaste es indiferente este o no. y el "return0" y el "int" depende el compilador si tira error o no pero por protocolo deveria haber aunque sea un "void" antes del main y un "return void" aunque no genere error al compilar.

 :lightsabre:

85
C/C++ / Re: 1 Seg De Hola Mundo
« en: Martes 5 de Septiembre de 2006, 04:38 »
TODO OKK CUANDO UNO ADKIERE DEMACIADO CONOCIMIENTO COMO NOSOTROS SUELE CONFUNDIR LOS CONOCIMIENTOS BASICOS.

SOS GROSSO. SABELO

BYTES :kicking:

86
C/C++ / Re: Alguien Tiene Codigo A Mano Para Dni
« en: Martes 5 de Septiembre de 2006, 04:31 »
Y BUE ESQUE VI ALGO QUE SUPE RESPONDER Y ME EMOCIONE (LOL) YA SE QUE SOY UN GEEK PERO AMO PROGRAMAR Y HACIA RATO NO LO HACIA.

JEJE AL MISMO TIEMPO QUE LE RESPONDO A EL LOS OTROS DIAS ME RETARON POR PUTEAR AU NO QUE PREGUNTABA ALGO SIMILAR ASI COMO: COMO HACER TAL COSA??.

= EL CODIGO QUE DEJE ESPERO QUE SIRVA Y VAS A TENER QUE TOCARLO OSKARUPS.

CHE HABRIA QUE HACER UN FORO QUE SE LLAME TAREAS PARA LOS QUE QUIEREN ESTE TIPO POSTS( EN LO POSIBLE QUE SE REPONDAN ENTRE ELLOS).

OK DEJO DE OKUPARLES PRECIOSOS BYTES EN EL SERVER.

BYTES.

87
C/C++ / Re: Alguien Tiene Codigo A Mano Para Dni
« en: Lunes 4 de Septiembre de 2006, 01:54 »
primero no se de donde sos pero en mi pais ( ARGENTINA) los dni no tienen letras pero bue voy a intentar hacerlo lo mas generico posible.

suponiendo que primero pida una letra primero y luego 8 numeros.
Código: Text
  1.  
  2. no esta permitido hacer la tarea a vagos... espero no haya sido demasiado tarde.  &#60;_&#60;
  3.  
  4.  

EN C++ FUNCIONA NO SE MUCHO DE C (COMO DIJO UNA VES UN AMIGO MIO:" YO C++ QUE VOS" JUAZ  :kicking:)
SI HAY ERROR DE SINTAXIS ES PORQUE HACE 2 MESES QUE NO TOCO EL C++ PORQUE ESTOY ESTUDIANDO JAVA :P  LOL .
BYTES GUYS

88
C/C++ / Re: 1 Seg De Hola Mundo
« en: Lunes 4 de Septiembre de 2006, 01:13 »
Bicholey, te hago una pequeña correccion:
Citar
printf("\n\n\t\tHola Mundo");
getch();
printf("\n\n\t\tPress any key");

mas bien seria:
Código: Text
  1.  
  2. printf(&#34;&#092;n&#092;n&#092;t&#092;tHola Mundo&#34;);
  3. printf(&#34;&#092;n&#092;n&#092;t&#092;tPress any key&#34;);
  4. getch();
  5.  
  6.  

corrijanme si me equiboco.

Bytes

89
C++ Builder / Re: Ayuda Soy Programador Junior
« en: Jueves 17 de Agosto de 2006, 08:02 »
DE ULTIMA UNA MAS FACIL SI QUERES QUE EL BOTON TENGA MAS ONDA ( PORQUE SEAMOS SINCEROS LOS BOTONES CLASICOS TIENEN MENOS ONDA QUE FUNCION LINEAL) PODES PONER UN TImage CON EL ATRIBUTO Transparent=true Y AHI LOADEARLE UN BITMAP YL UEGO PROGRAMARLE EL ON CLICK ( LO QUE SI SI QUERES QUE CARGUE EN TIEMPO DE EJECUCION OTRA IMAGEN VAS A TENER QUE TENERLA EN ALGUN LADO SINO CON HACER UN LINKADO ESTATICO ESTA).

SI NO SE ENTIENDE INTENTO EXPLICARME MEJOR PERO SOY MEDIO QUESO PARA LA REDACCION ( POR ALGO ESTUDIO INFORMATICA LOL).

SUERTE.

PD: DE DONDE SOS?? YA VEO QUE TERMINAMOS ESTUDIANDO EN LA MISMA UNIVERIDAD ( OSEA YA EM ENCONTRE CON UN TIPO EN UNA CHARLA DE PYTHON QUE SE AHBIA VENIDO DESDE BUENOS AIRES ARGENTINA Y ME RECONOCIO DE OTRO FORO ASI QUE NADA ME SORPRENDE)

PD2: LAS MAYUSCULAS NO INDICAN QUE GRITO SINO QUE ME GUTAN MAS  :kicking:

90
C++ Builder / Re: Imprimir Texto Enriquecido
« en: Lunes 7 de Agosto de 2006, 05:44 »
Arigatou gozaimashita.
Ahora.
(aclaro que acepto que es de vago ni me fije en el builder los metodos del objeto ese).
pero como lo mando a imprimir (generalmente imprimia strings no objetos).

grax again :kicking:

91
C++ Builder / Imprimir Texto Enriquecido
« en: Martes 1 de Agosto de 2006, 08:26 »
Pregunto por simple curiosidad. ¿Como hago para imprimir un texto enriquecido?.
cuando digo imprimir obviamente me refiero a imprimir con la impresora y no imprimir en pantalla ( :P )
ya se como imprimir un texto cualquiera pero no entiendo como hacerlo con un texto con color, fuente y tamaño determinado.

Grax.

92
C++ Builder / Re: Cargar Programa
« en: Viernes 14 de Julio de 2006, 09:55 »
Eso deveria de andar pero es mas facil si al Form le activas el Autosize

Código: Text
  1. Form1-&#62;Autosize=true
  2.  

o aun mas facil en el inspector de objetos :P asi ya queda desde que se ejecuta con esa propiedad

93
C++ Builder / Re: Calculo Del Volumen
« en: Viernes 14 de Julio de 2006, 09:48 »
Mira la cosa es simple la parte visual te toca hacerla a vos ( por Dios estas usando Builder es una boludez hacer la parte visual) y lo otro es cuestion de matematica basica

Volumen del paralelepipedo ( no es un rectangulo los cuales no tienen volumen sino area) = Lado 1 * Lado 2 * Lado 3

Creo que no soy el unico al que le molestan este tipo de preguntas que nada tienen que ver con dudas sino con respuestas faciles para algun que otro trabajo practico para la facultas, colegio o donde sea.

NO QUIERO QUE SUENE OFENSIVO SINO QUE TE HAGA PENSAR LA PROXIMA ANTES DE POSTEAR.

Ademas lo divertido es quedarse hasta tarde peleandose con los programas porque no compilan tan bien como compilaban en el paperl  :D

suerte y ponete las pilas  :comp:

94
C++ Builder / Re: Crear Imagenes (objetos) En Tiempo De Ejecucion
« en: Viernes 14 de Julio de 2006, 09:40 »
Seria mas facil hacerlo con Open GL  :D

De cualquier modo lo que veo es que tenes problemitas primero porque tenes una gran cantidad de Timages inutiles ya que por lo que entiendo solo queres que cambie lo que tiene el Timage dentro para que emule una animacion.

en ves de hacer una lista de Timages solo crearia uno. Evitaria poner ñ en los nombres de los bmp( depende la ver del builder puede traer problemas).

Como ya dijo Vatoicc ponele

Código: Text
  1. imag-&#62;parent = Parent;
  2.  
y solo encargate de hacer un LoadFromFile sin necesidad de borrar lo q habia previamente

si queres que sea un solo T image prova con esto
Código: Text
  1.  
  2.  
  3. ...
  4. Dibu *TImage;
  5. Dibu= new TImage(Form1);
  6. Dibu-&#62;Parent(Form1);
  7. Dibu-&#62;Visible=true;
  8. Dibu-&#62;AutoSize=true;
  9. Dibu-&#62;Transparent=true;
  10. Dibu-&#62;Picture-&#62;LoadFromFile(&#34;c:&#092;&#092;programa&#092;&#092;imagenes&#092;&#092;dibujito.bmp&#34;); // (ACORDATE DE PONER '&#092;&#092;' Y NO '&#092;' PORQUE SINO NO TE LA TOMA COMO UNA BARRA SINO COMO QUE ES PARTE DE UN CARACTER ESPECIAL)
  11. ...
  12.  
  13.  

Y cada ves que quieras cambiar la imagen desde tu timer le pones
Código: Text
  1.  
  2. Dibu-&#62;Picture-&#62;LoadFromFile(&#34;/* Path de la imagen que queres lodear*/&#34;);
  3.  
  4.  

SI TENES ALGUNA DUDA MANDAME UN MAIL Q ES MAS FACIL ( ENTRO MUY DE VES EN CUANDO  :whistling: )

suerte y segui gastandote las huellas digitales con el teclado que es la unica forma de encontrar errores

95
C++ Builder / Re: .exe En Otra Maquina
« en: Jueves 18 de Mayo de 2006, 05:37 »
Proba con el Gosth Instaler Studio ( muy muy bueno, mejor que el Installshiel seguro) solo para windows lo unico.

EL OBE 3.11
 :devil:  :comp:

96
C++ Builder / Re: Imprimir
« en: Jueves 18 de Mayo de 2006, 05:33 »
Proba con este codigo

Código: Text
  1.  
  2. #include &#60;iostream.h&#62;
  3. #include &#60;fstream.h&#62;
  4.  
  5. void main(void)
  6. {fstream impresora;
  7. char EJEMPLO[20]=&#34;ABCD&#34;;
  8. impresora.open(&#34;PRN&#34;,ios::out);
  9.    if(impresora)
  10.    {
  11.    impresora&#60;&#60;EJEMPLO;
  12.    impresora.close();
  13.    };
  14. }
  15.  

97
C++ Builder / Re: Incrustar Un Archivo De Flash
« en: Jueves 18 de Mayo de 2006, 05:19 »
Agrego una duda.
Inserte el componente Shockwave Flash en mi form y tengo el swf.
Si le doy el path completo para la pelicula no hay problema pero si lo doy solo el camino "relativo" ( por ejemplo el path completo seria c:\\carpeta\video.swf pero si  le digo video.swf o \video.swf , estando el exe en la mima carpeta, no lo carga) alguien sabe como lo puedo solucionar. desde ya muchas gracias

EL OBE 3.11
 :devil:

98
C++ Builder / Re: Como hago un solitario en builder
« en: Jueves 18 de Mayo de 2006, 05:09 »
YO TAMBIEN HICE UN BLACK JACK PARA UN PROYECTO DE FIN DE MATERIA. ME COSTO UN HUEVO HACERLO. DE HABER LEIDO ESTO HACE 3 MESES ME HUBIESE AHORRADO MUCHOS DOLORES DE CABEZA JEJEJE.

ES MEDIO DIFICIL EXPLICAR A TRAVES DE UN FORO ALGO TAN COMPLICADO Y ABSTRACTO. SENTATE Y PROGRAMA Y TIRA DUDAS NO PREGUNTAS TAN ABSTRACTAS

SUERTE Y BIENVENIDO A EL MUNDO DE LOS 0 & 1 :comp:

EL OBE 3.11

99
C++ Builder / Re: Problemas Con Timage
« en: Viernes 12 de Mayo de 2006, 03:13 »
INTENTA PONIENDOLE TRUE AL AUTOSIZE DEL TIMAGE.:angel:

Páginas: 1 2 3 [4]