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
  1. Home
  2. Other Discussions
  3. The Back Room
  4. void main(void)

void main(void)

Scheduled Pinned Locked Moved The Back Room
23 Posts 9 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.
  • S Offline
    S Offline
    Stefan Pedersen
    wrote on last edited by
    #1

    .

    S R I J R 6 Replies Last reply
    0
    • S Stefan Pedersen

      .

      S Offline
      S Offline
      Stefan Pedersen
      wrote on last edited by
      #2

      .

      S 1 Reply Last reply
      0
      • S Stefan Pedersen

        .

        S Offline
        S Offline
        Stefan Pedersen
        wrote on last edited by
        #3

        .

        M 1 Reply Last reply
        0
        • S Stefan Pedersen

          .

          R Offline
          R Offline
          Rob Manderson
          wrote on last edited by
          #4

          Nah, the first brace should line up under the first character of the function name... :) Rob Manderson http://www.mindprobes.net You have an eight-ball and Tommy wants to buy two grams. You bought the eight-ball with a quarter-bag of grass, two reds, a six-pack of Old Milwaukie, and $4 in change. You want a profit margin of 35%. How much hash should you get from Tommy for your blow? - Roger Wright

          S 1 Reply Last reply
          0
          • S Stefan Pedersen

            .

            S Offline
            S Offline
            Stefan Pedersen
            wrote on last edited by
            #5

            .

            1 Reply Last reply
            0
            • R Rob Manderson

              Nah, the first brace should line up under the first character of the function name... :) Rob Manderson http://www.mindprobes.net You have an eight-ball and Tommy wants to buy two grams. You bought the eight-ball with a quarter-bag of grass, two reds, a six-pack of Old Milwaukie, and $4 in change. You want a profit margin of 35%. How much hash should you get from Tommy for your blow? - Roger Wright

              S Offline
              S Offline
              Stefan Pedersen
              wrote on last edited by
              #6

              It was JoeSox that got me thinking... What about acutally programming in CodeProject? I.e. > compile.exe -url www.codeproject.com/soapbox?topic=x :)

              R 1 Reply Last reply
              0
              • S Stefan Pedersen

                It was JoeSox that got me thinking... What about acutally programming in CodeProject? I.e. > compile.exe -url www.codeproject.com/soapbox?topic=x :)

                R Offline
                R Offline
                Rob Manderson
                wrote on last edited by
                #7

                I don't even want to think about where that could lead :) SCO lawsuits because the Soapbox violates their IP? :laugh: Rob Manderson http://www.mindprobes.net You have an eight-ball and Tommy wants to buy two grams. You bought the eight-ball with a quarter-bag of grass, two reds, a six-pack of Old Milwaukie, and $4 in change. You want a profit margin of 35%. How much hash should you get from Tommy for your blow? - Roger Wright

                1 Reply Last reply
                0
                • S Stefan Pedersen

                  .

                  I Offline
                  I Offline
                  Ian Darling
                  wrote on last edited by
                  #8

                  Is non standard for C++ - main must return an int Or are you programming in C - heathen :-) -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                  S J 2 Replies Last reply
                  0
                  • I Ian Darling

                    Is non standard for C++ - main must return an int Or are you programming in C - heathen :-) -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                    S Offline
                    S Offline
                    Stefan Pedersen
                    wrote on last edited by
                    #9

                    I figured people would be annoyed enough without me adding the extra line. And for you std freaks: --- orig Wed Sep 17 00:35:00 2003 +++ new Wed Sep 17 00:42:00 2003 @@ 1,1 1,1 @@ -void main(void) +int main(int argc, char** argv, char** env) @@ 3,3 3,4 @@ +return 0; in unified diff format ofcourse (handcrafted from memory so there are probably errors) :)

                    I 1 Reply Last reply
                    0
                    • I Ian Darling

                      Is non standard for C++ - main must return an int Or are you programming in C - heathen :-) -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                      J Offline
                      J Offline
                      Jorgen Sigvardsson
                      wrote on last edited by
                      #10

                      It looks like he's programming in C. printf - evidence #1. I guess I'll have to ask him tomorrow when I see him.. :-D -- You still have your old friend Zoidberg. You all have Zoidberg!

                      C 1 Reply Last reply
                      0
                      • S Stefan Pedersen

                        .

                        J Offline
                        J Offline
                        Jorgen Sigvardsson
                        wrote on last edited by
                        #11

                        Ok, that's it. You better ship the next release before you go totally bonkers. Do it tomorrow, ok? :rolleyes: -- You still have your old friend Zoidberg. You all have Zoidberg!

                        1 Reply Last reply
                        0
                        • S Stefan Pedersen

                          I figured people would be annoyed enough without me adding the extra line. And for you std freaks: --- orig Wed Sep 17 00:35:00 2003 +++ new Wed Sep 17 00:42:00 2003 @@ 1,1 1,1 @@ -void main(void) +int main(int argc, char** argv, char** env) @@ 3,3 3,4 @@ +return 0; in unified diff format ofcourse (handcrafted from memory so there are probably errors) :)

                          I Offline
                          I Offline
                          Ian Darling
                          wrote on last edited by
                          #12

                          Stefan Pedersen wrote: And for you std freaks: Ta :-D -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                          1 Reply Last reply
                          0
                          • J Jorgen Sigvardsson

                            It looks like he's programming in C. printf - evidence #1. I guess I'll have to ask him tomorrow when I see him.. :-D -- You still have your old friend Zoidberg. You all have Zoidberg!

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

                            Sadly, too many people still use printf, and other remnants of the toxic C standard libraries, even as they return void from main, because their toxic compiler lets them. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                            N M 2 Replies Last reply
                            0
                            • C Christian Graus

                              Sadly, too many people still use printf, and other remnants of the toxic C standard libraries, even as they return void from main, because their toxic compiler lets them. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                              N Offline
                              N Offline
                              Nish Nishant
                              wrote on last edited by
                              #14
                              CG, where have you been?

                              Nish


                              Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

                              C 1 Reply Last reply
                              0
                              • N Nish Nishant
                                CG, where have you been?

                                Nish


                                Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

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

                                Doing a bit of freelance work, planting and tending to my fruit trees, all that sort of stuff. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                                1 Reply Last reply
                                0
                                • S Stefan Pedersen

                                  .

                                  M Offline
                                  M Offline
                                  Michael Dunn
                                  wrote on last edited by
                                  #16

                                  ;P --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

                                  K S 2 Replies Last reply
                                  0
                                  • C Christian Graus

                                    Sadly, too many people still use printf, and other remnants of the toxic C standard libraries, even as they return void from main, because their toxic compiler lets them. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                                    M Offline
                                    M Offline
                                    Michael Dunn
                                    wrote on last edited by
                                    #17

                                    I'll take printf() or CString::Format() any day over the maze of badly-named poorly-documented STL manipulators. X| --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

                                    C 1 Reply Last reply
                                    0
                                    • M Michael Dunn

                                      I'll take printf() or CString::Format() any day over the maze of badly-named poorly-documented STL manipulators. X| --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

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

                                      Well, you know what they say about old dogs :0) I agree that some of the manipulator names are not great, but if you hate them so much, you can roll your own. Extensibility is one of the reasons the std library canes the old C stuff, or the horrible MFC stuff. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                                      M 1 Reply Last reply
                                      0
                                      • S Stefan Pedersen

                                        .

                                        R Offline
                                        R Offline
                                        Rickard Andersson20
                                        wrote on last edited by
                                        #19

                                        CListCtrl? Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318 Interests: C++, ADO, SQL, Winsock, 0s and 1s

                                        1 Reply Last reply
                                        0
                                        • M Michael Dunn

                                          ;P --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

                                          K Offline
                                          K Offline
                                          KaRl
                                          wrote on last edited by
                                          #20

                                          /* :laugh::laugh: */


                                          Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Dwight D. Eisenhower

                                          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