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
Delete repeated rows from a file tonet Shell Programming and Scripting 8 04-08-2008 10:42 AM
Repeated execution of Autosys Jobs Data469 Shell Programming and Scripting 2 02-28-2008 04:24 PM
matching repeated character robsonde Shell Programming and Scripting 5 12-13-2007 05:43 PM
how to find a word repeated in a file gurukottur UNIX for Dummies Questions & Answers 4 08-24-2006 05:53 AM
Get rid of repeated entries. jijibabawu Shell Programming and Scripting 2 10-03-2005 11:17 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-25-2005
C|[anti-trust] C|[anti-trust] is offline
Registered User
  
 

Join Date: Apr 2005
Location: Australia
Posts: 30
Repeated printF causes annoyance with do

Quote:
int initgrille(char *string) {
char car;
int ent;
do {
printf ( "Entrez entre 4 et 9 %s ",string);
scanf("%c",&car);
ent=atoi(&car);
} while ((ent<5) || (ent > 9) ) ;
}
This gives :
Quote:
Entrez entre 4 et 9 lignes 6
Entrez entre 4 et 9 colonnes Entrez entre 4 et 9 colonnes
after calling it twice:
Quote:
l=initgrille("lignes");
c=initgrille("colonnes");
how can i solve this so that on output i get :
Quote:
Entrez entre 4 et 9 lignes 6
Entrez entre 4 et 9 colonnes
 

Bookmarks

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 06:54 PM.


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