[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] pointer gymnastik



Jeg tog eksemplet og flyttede det over i Visual C++ 5.0 og kørte det
med
både
   *p++ og p++, og det virkede uden problemer, derefter var jeg selv
lidt
i tvivl omkring problemstillingen
    med det. Derfor kiggede jeg i
The C++ Programming Language 3rd
Editiion, og fandt ud af hvad jeg har
beskrevet. Det virker fint med
begge dele, men den korekte måde er p++
hvilket betyder at den addresse
som en pointer jo faktisk peger på vil
blive førget med størelsen på den
datatype den peger på, derved flyttes den
jo i dette tilfælde 1 karakter
frem.

  Med Venlig Hilsen
  Kim Pedersen



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *