Your Ad Here Your Ad Here
Results 1 to 4 of 4

Thread: simple programming question with Microsoft Visual C++

  1. #1
    slim150's Avatar Poster
    Join Date
    Aug 2003
    Age
    34
    Posts
    452
    When you have code that exceeds the 80 characters how can you make the complier know that the line isn't finished and the rest of it is on subsequent lines?
    "Their most trivial action may mean volumes, or their most extraordinary conduct may depend upon a hairpin or a pair of curling-tongs" - Holmes


  2. Software & Hardware   -   #2
    ... The compiler knows when a line finishes by the ending ; on almost every statement except preprocessor codes (begin with #).

  3. Software & Hardware   -   #3
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    35
    Posts
    5,530
    what 80 char limit are you talking about. you will can write a sinlge line of code over ten lines if you want just use a ; to tell the compiler its the end of a line.

  4. Software & Hardware   -   #4
    Illuminati's Avatar Simple Bystander BT Rep: +7BT Rep +7
    Join Date
    May 2003
    Location
    2008 European Capital of Culture
    Age
    32
    Posts
    2,758
    "What they said
    - you can write
    any command over
    as many lines of
    code as you want,
    like this.

    The compiler only
    recognises the end
    of a line when there's
    a semi-colon at the end
    of it";


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •