Solved

Input questions

Posted on 1997-12-11
2
179 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 100 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C: GetDiskFreeSpaceEx() for default drive 14 107
Passing command line arguments in C 10 92
Problem to scan all sheets 3 104
change colour of repeater control in asp.net c# 7 90
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
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 opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

803 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