Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - How to break looong lines of code
Author Message
  Post subject:  Re: How to break looong lines of code  Reply with quote
yes.
Post Posted: Sun Apr 26, 2020 4:27 pm
  Post subject:  Re: How to break looong lines of code  Reply with quote
Hi again,

Just to make sure, are the following two equal?

1) poly f=x+y;

2) poly f=x+
y;

Thanks in advance
Post Posted: Wed Apr 22, 2020 11:30 pm
  Post subject:  Re: How to break looong lines of code  Reply with quote
a newline is allowed at each place where a white space is allow:
i.e. before and after each name, keyword, operation, etc.
If one really needs to have a line break ith a number or name, add \ as the last characzer on the line.
Post Posted: Wed Apr 22, 2020 8:29 pm
  Post subject:  How to break looong lines of code  Reply with quote
Hi all,

how can I break looong lines of code in several lines for better readability, without scrolling to the right/left, please?
As an example in MATLAB we just add 3 dots at the end, so the compiler knows that the expression continues on the next line.
Post Posted: Tue Apr 21, 2020 8:56 pm


It is currently Fri May 13, 2022 10:55 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group