![]() |
|
|
|
|
#1
|
||||
|
||||
anyone know C?
if you know C programming language I need a little help. My first assignment was to code "Hello World" and modify it to use for the first assignment. It compiled and ran fine but the text runs right into the "press any key to continue" script in DOS when that script should be below it. Visually its annoying.
|
#2
|
||||
|
||||
You need a line return (think "enter" in a typical text interface).
In C, it's done with a "\n ", I believe.
__________________
1982 240D, sold 9/17/2008 1987 300D TurboW124.133 - 603.960, 722.317 - Smoke Silver Metallic / Medium Red (702/177), acquired 8/15/2009 262,715 and counting ![]() |
#3
|
||||
|
||||
yep that did the trick
thanks! |
#4
|
||||
|
||||
You can handle it in DOS by inserting the word "echo" above the pause statement, that will give you a new line.
You should post your code if you want help, given the information you gave, I am guessing you are missing a carriage return/line feed escape code at the end of your output statement. That will depend on the paltform: On Unix, an ASCII newline (\n) LF (linefeed) character ends each line. On Windows, an ASCII sequence CR LF (\r\n) (return followed by linefeed) ends each line. On Macintosh, an ASCII CR (\r) (carriage return) character ends each line. |
#5
|
||||
|
||||
Quote:
but Nate hit it on the head and it worked out for me |
#6
|
||||
|
||||
You're not really wasting time on the old C, are you ? C# is where it is at, junk that $hit.
|
#7
|
|||
|
|||
Quote:
In current C standard output libraries [ #include |
#8
|
||||
|
||||
I will record that somewhere in my diary.
|
#9
|
|||
|
|||
Sorry, I'm an old guy. Need any help with fortran77?
|
#10
|
|||
|
|||
Join the club, Fortran, Fortran IV, COBOL (not II, I know current but started on COBOL).
How about AutoCoder geesh dating myself. Pick a language I've used it some.
__________________
KLK, MCSE 1990 500SL I was always taught to respect my elders. I don't have to respect too many people anymore. |
#11
|
||||
|
||||
I miss Dbase II. Life was so much simpler then, when all's I needed was a "Clipper" lib.
|
#12
|
||||
|
||||
Haha, good deal
![]() I don't actually use C, I just use Matlab all the time and the fprintf and similar commands have all the same syntax
__________________
1982 240D, sold 9/17/2008 1987 300D TurboW124.133 - 603.960, 722.317 - Smoke Silver Metallic / Medium Red (702/177), acquired 8/15/2009 262,715 and counting ![]() |
#13
|
||||
|
||||
its C then C++... gotta get the basics first
|
#14
|
||||
|
||||
gcc, perl, java and am a little rusty with PASCAL
fu pascal
__________________
![]() 1972 W115 220D/8 SLS, Coffman Starter "Ümläüt" (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination |
#15
|
||||
|
||||
pascal is so "over".
|
![]() |
Bookmarks |
|
|