Solved

Input questions

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now