If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > getInput function called twice

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-04, 11:43
ernieball ernieball is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
getInput function called twice

I'm not quite sure where exactly I should post but since this included C in the title I decided to come here.

I have a project to do for class and I'm working on my getInput function to get the input for the number of rows and columns from the user. I have the function all coded and I know how to get the number of rows sent back...I guess my question is just is there anyway in the printf statement that I could have it ask for rows the first time the function is called and columns the second time. So I don't have to write a second function to get the column input from the user.

I think that's about the best I can ask it. If it's too confusing I'm sorry I'll try to explain it better if anyone asks.

Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On