[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Input questions

Posted on 1997-12-11
2
Medium Priority
?
197 Views
Last Modified: 2010-04-02
In a program that I am working on I let the user input name, adress, telefonnr etc in different windows on the screen. I have created the windows by using the function window( ).
In the windows I use the function gets to determine what the user have printed. How do I prevent the program from printing characters outside the window if the name is longer then the the window?

And how can I let the user "jump" betwen the windows at any time by pressing a key ex(TAB)? I have thought about some functions like getch, gotoxy. But I can´t figure out how I at the same time use the gets function to let the user enter his string?

Please help me with this problem!

mrc
0
Comment
Question by:mrc121197
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 200 total points
ID: 1256629
i have written a generic input routine which will work in windows on many different OS (Dos, Unix, Mac, ...). I'll send you the code but not for 10 points. If you give me 100 points I'll send you the code.
send a mail to rbr@physik.kfunigraz.ac.at

0
 

Author Comment

by:mrc121197
ID: 1256630
Adjusted points to 100
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question