Solved

Input questions

Posted on 1997-12-11
2
176 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 spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why adding test code changes the build ? 11 130
Coverting 24 hour time to 12 hour in C++ 15 168
C simple state machine for client server handshake 4 270
Grammars for C C++ and java 1 114
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…
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…
The goal of this video is to provide viewers with basic examples to understand and use structures 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.

864 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

21 Experts available now in Live!

Get 1:1 Help Now