Results 1 to 3 of 3

Thread: C++ ,

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User hateras's Avatar
    Join Date: Jan:2011
    Location: Kronos III
    Posts: 1,028

    C++ ,

    .
    :
    Code:
    #define MY_ARR_SIZE 8
    
    typedef struct  { 
      unsigned short MyIntData[MY_ARR_SIZE];
      double MyDoubleData[MY_ARR_SIZE];
    } 	SampleStruct;
    
    
    void DoSomeStuf(double * data[MY_ARR_SIZE]) {
    	//Do s'mting
    }
    
    void CallTheDoSomeStuff(SampleStruct * SS) {
    	DoSomeStuf(SS->MyDoubleData);
    }
    ?
    ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , DoSomeStuff "double * data[]", " double". - "double data[]", "double* data". , "" ( ). .. "double data[MY_ARR_SIZE]" - " double, ". .. MY_ARR_SIZE . , 42 - , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User hateras's Avatar
    Join Date: Jan:2011
    Location: Kronos III
    Posts: 1,028
    , ( char * ) ...
    .
    ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |