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.
  • 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
                        • M Michael Dunn

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

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

                          .

                          1 Reply Last reply
                          0
                          • C Christian Graus

                            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 Offline
                            M Offline
                            Michael Dunn
                            wrote on last edited by
                            #22

                            Christian Graus wrote: but if you hate them so much, you can roll your own ... or I can just use CString::Format() ;P --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

                            C 1 Reply Last reply
                            0
                            • M Michael Dunn

                              Christian Graus wrote: but if you hate them so much, you can roll your own ... or I can just use CString::Format() ;P --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

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

                              I would tend to use CString::Format if I was using MFC, but I never use MFC nowadays. So I'm glad to have learned the alternatives that are always with me, so long as I'm in C++. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                              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