Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Sequential structure code

Sequential structure code

Scheduled Pinned Locked Moved C#
6 Posts 5 Posters 0 Views 1 Watching
  • 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 Offline
    B Offline
    BabyOreo
    wrote on last edited by
    #1

    How the sequential structure code looked like? Can anyone give me some examples? Thanks!

    N C CPalliniC D 4 Replies Last reply
    0
    • B BabyOreo

      How the sequential structure code looked like? Can anyone give me some examples? Thanks!

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      low_sinwei@yahoo.com wrote:

      How the sequential structure code looked like?

      It looked fine. ;P Now tell us what you are asking?

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • B BabyOreo

        How the sequential structure code looked like? Can anyone give me some examples? Thanks!

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        What are you talking about ?

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        1 Reply Last reply
        0
        • B BabyOreo

          How the sequential structure code looked like? Can anyone give me some examples? Thanks!

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          Looks like the following:

          class Program{public static int Oct(int dec){return ((dec / 8) * 10) + (dec % 8);}static void Main(string[] args){...

          Anyway I don't encourage you to use it. :rolleyes:

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          In testa che avete, signor di Ceprano?

          B 1 Reply Last reply
          0
          • CPalliniC CPallini

            Looks like the following:

            class Program{public static int Oct(int dec){return ((dec / 8) * 10) + (dec % 8);}static void Main(string[] args){...

            Anyway I don't encourage you to use it. :rolleyes:

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            B Offline
            B Offline
            BabyOreo
            wrote on last edited by
            #5

            sequential structure code means no function inside right? thanks for above comments.

            1 Reply Last reply
            0
            • B BabyOreo

              How the sequential structure code looked like? Can anyone give me some examples? Thanks!

              D Offline
              D Offline
              DaveyM69
              wrote on last edited by
              #6

              Are you referring to System.Runtime.InteropServices.LayoutKind[^] Just an example from something I'm currently looking at:

              [StructLayout(LayoutKind.Sequential)]
              private struct MIDIINCAPS
              {
              public ushort wMid;
              public ushort wPid;
              public uint vDriverVersion; // MMVERSION
              [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
              public string szPname;
              public uint dwSupport;
              }

              Dave
              BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
              Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
              Why are you using VB6 ? Do you hate yourself ? (Christian Graus)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups