The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Simple Question aforball UNIX for Dummies Questions & Answers 3 03-04-2008 04:26 PM
sed - simple question scotty_123 Shell Programming and Scripting 13 03-29-2007 02:23 AM
Simple C question... Hopefully it's simple Xeed High Level Programming 6 12-15-2006 02:29 PM
Ok simple question for simple knowledge... Corrail UNIX for Dummies Questions & Answers 1 11-28-2005 01:03 PM
Simple ksh question frustrated1 Shell Programming and Scripting 1 11-05-2003 12:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-30-2001
dell9 dell9 is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 8
a very simple question (but i don't know)

how to write a program that receive a string from keyboard and then print it out. i write a program:
main()
{
char str[80];
gets(str);
printf(str);
}
but when i compile it, the system said something like "new line is not last charicter" and sometime the system said "a3.c is up to date"
what does them mean?
thanks.
  #2 (permalink)  
Old 10-30-2001
shaik786
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
hi!

when you get the message: "a3.c is up to date", delete the executable created in the earlier compile (maybe a.out)

use the FORMAT string in printf like: printf("%s", str);

Rgds
SHAIK
Closed Thread

Bookmarks

« ? | dup() »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0