Español
C ++ Foro

Zeiger

 
¡Hola, irgendwie packe Yo con el Zeiger no de C++(Dev C++).
Lo kommt hier el Valor 0 fuera, eigentlich Yo quería 45 haben.

Wer sabe se como de con el Fehler, el I, con el Zeiger gemacht habe?

mfg
peter
KompilierenMarcaSeparación
declare testram#
dim testram#,100
cls
test()
print byte(testram#,0)
WaitInput
end

proc test

    parameters testram#
    int *a;
    *a=addr(testram#);
    a[0]=45;

13.09.2008  
 



Statt el proc test simplemente byte testram#,0=45.
 
13.09.2008  
 




Sebastian
König
Usted puede C++ y XProfan-Code no en esta Art y Weise mischen. Profano2Cpp akzeptiert primero veces simplemente sólo XProfan, genau como el normale Interpreter o. Compiler. Wenn uno (de Profano2Cpp 2.0) doch direkten C++-Code uso möche (kann en manchen Fällen sí hilfreich ser), así muss dieser zwischen el Spezial-Kommentaren <INLINE_CPP> y </INLINE_CPP> posición. Diese Kommentare weden con P2CPP: eingeleitet. Für Näheres dazu verweise Yo veces en el Profano2Cpp-Ayuda, Punkt "Sonstige Features"

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
13.09.2008  
 



Ahhhh.., also sauber abtrennen.
Das Yo no gemacht.

¿Cómo se puede Yo entonces ahora una Función de C++ reinsetzen?

mfg
peter
 
13.09.2008  
 



Nutzt Usted XPSE?
 
13.09.2008  
 



Nein todavía no en Profano2cpp.
Muss primero dieses en el Reihe bekommen.

Was wolltest du porque testen en el Zusammenhang con Profano2cpp.

mfg
peter
 
13.09.2008  
 



¿Cómo se puede Yo entonces el Variablenzeiger/Variables de Xprofan a C++ transferencia?
Nur con "PVAR"?

mfg
peter
 
13.09.2008  
 




Sebastian
König
Peter Bierbachh
¿Cómo se puede Yo entonces el Variablenzeiger/Variables de Xprofan a C++ transferencia?
Nur con "PVAR"?


Sí, sólo así se el richtige Name sichergestellt.

Un C++-Función kannst Usted bastante normal como en C++ aufrufen. Siehe para Ejemplo el código con AllocConsole(), el Yo en un otro Hilo aquí Nuevo habe.
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
13.09.2008  
 



Peter Bierbachh
Nein todavía no en Profano2cpp.
Was wolltest du porque testen en el Zusammenhang con Profano2cpp.


Er unterstützt el cpp-inlineasm-Blöcke (todavía) no, él intenta esta después de XProfan a konvertieren.
 
13.09.2008  
 



AllocConsole()...,
steuer mich como veces hin, finde Yo no.

Diese Übergabe de los Variables es para muy Wichtig.
Tal vez hast du todavía así einpaar kleien Hinweise.
Gracias.

DIe otro sachen Funktionieren ahora selbstverständlich.
War mein Fehler. no correcto gelesen.

mfg
peter
 
13.09.2008  
 




Sebastian
König
Sorry, Yo meinte WriteConsole() hier  [...]  Das todo es una Ausschnitt de diesem Code:
KompilierenMarcaSeparación
MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
13.09.2008  
 



Verstehe Yo no en el Zusammenhang con uno Bereichsvariable :
declarar ram#
dim ram#,1000

Diese möchte Yo en C++ nun con bytewerten füllen.
Weiss pero no , Yo el en:
long *zeiger;
reinbekomme.

Variables voluntad eigentlich así transferencia:
char i[100];
zeiger=&i; >>> zeiger=&PVAR(ram#) va no.
y luego kann con
zeiger[0]=234 usw zugegriffen voluntad o gefüllt voluntad.

mfg
 
13.09.2008  
 




Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

9.145 Views

Untitledvor 0 min.
funkheld17.12.2013
H.Hackl22.03.2012

Themeninformationen



Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie