Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Intializing all the structure variable at once

    General and Desktop
    2
    2
    760
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BibekKumar last edited by

      @ struct LoadsForAPDLScript
      {
      double JntLCLoad;
      double JntPPLoad;
      double JntLimManLoad;
      double JntLimShockLoad;
      double JntOthLimTenLoad;
      double JntOthLimManLoad;
      double JntBPLoad;
      double JntUltManLoad;
      double JntUltShockLoad;
      double JntOthUltTenLoad;
      double JntOthUltManLoad;
      };@
      Is there any way to initialize all the struct variable mentioned above in one line instead of initializing it one by one ?

      1 Reply Last reply Reply Quote 0
      • C
        cincirin last edited by

        @
        LoadsForAPDLScript variable = {1.0, .5, .1, 2.1, .0, .15/, etc .../}
        @

        1 Reply Last reply Reply Quote 0
        • First post
          Last post