LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-07-2009, 08:43 AM   #1
BJesty
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Preprocessor adding new line


Dear all,
does anyone know how I can make the c preprocessor to add a new line in the code? I would be great to have something like

#define foo bar XXXX

so that

print *, foo
print *, "something"

looks like

print *, bar

print *, "something"


That's critical because I have to use fortran with 77 characters per line!

All the best,

B
 
Old 04-07-2009, 09:13 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
And why do you want to use "C" preprocessor and not a scripting language like Perl ?
 
Old 04-07-2009, 11:05 AM   #3
charlitos
Member
 
Registered: Feb 2009
Posts: 51

Rep: Reputation: 16
off topic

Quote:
Originally Posted by BJesty View Post

That's critical because I have to use fortran with 77 characters per line!
I thought no one was using Fortran anymore...what is this language good at exactly?
 
Old 04-07-2009, 11:26 AM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by charlitos View Post
I thought no one was using Fortran anymore...what is this language good at exactly?
Numeric computations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C pre-preprocessor or preprocessor replacement Tischbein Programming 3 02-11-2007 11:38 AM
Adding a line in KWord leupi Linux - Software 0 03-18-2006 09:29 AM
Adding a line to file mikz Linux - General 2 03-03-2005 12:35 PM
Adding users via command Line AmdMhz Linux - Software 4 10-31-2004 01:29 PM
adding line to /etc/ld.so.conf jotus Red Hat 3 10-13-2003 05:49 AM


All times are GMT -5. The time now is 10:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration