Solved

Input questions

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
negation in C function 14 161
Detect CR LF to each line 12 170
Synchronization using condition variables to avoid locking in C 8 90
Windows Server 2012  Backup - HyperV host 18 60
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

829 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