Thread: Couple errors please help :-D

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Generally, I'd post the code unless it's, say, over a thousand lines long. People, myself included, don't like the extra work entailed in clicking on an attachment.

    If you're worried about readability, colouring the code with a syntax highlighter like codeform can be nice.

    What's easier to read? This?
    Code:
    #include <stdio.h>
    
    int main(void) {
        printf("Hello, World!\n");
        return 0;
    }
    Or this?
    Code:
    #include <stdio.h>
    
    int main(void) {
        printf("Hello, World!\n");
        return 0;
    }
    Codeform can be run online here: dwks.theprogrammingsite.com/myprogs/cfonline.htm
    (Yes, it's true, I wrote codeform. So don't take me too seriously. But it really does make a difference for really large programs . . . there are other syntax highlighters around too, if you hate codeform or something.)

    As for limits . . . well, someone once posted the first million or so digits of PI, I think, so if there is a limit it's pretty high.
    Last edited by dwks; 03-05-2008 at 10:23 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 03:11 PM
  2. Help with a couple compiler errors
    By s_ny33 in forum C Programming
    Replies: 1
    Last Post: 09-15-2005, 08:46 PM
  3. Errors when building program
    By tay_highfield in forum C Programming
    Replies: 2
    Last Post: 03-07-2003, 11:08 AM
  4. Errors when including winsock2.h
    By skiingwiz in forum Windows Programming
    Replies: 2
    Last Post: 12-27-2002, 07:32 PM
  5. Replies: 5
    Last Post: 11-13-2001, 04:38 PM