I am trying to print leading zeros.My number is a numeric clock card number that is usually 4 digits.If ,however,the number should be less than 1000 I want to print leading zeros so that my columns on my print out remain level.
Anyone help???
Many thanks for all your help it DID turn out to be concerned with OS.The network had been purposely set so that the Clothes Stores operators could ot write and delete files for security purposes so my legitimate delete and rename was not allowed.
Thanks Again.
I have a function to delete a record from a file.The method I am using takes an input code number and finds the record.I substitute the first letter of the surname found with an asterisk and rewrite to the file.I then read the file and write all records without an asterisk to a temporary file.I...
Many thanks for your continued interest in my problem.I can expand a little.
The program works perfectly at home no problem running from the MS DOS prompt in Windows 95.
Also ,at work now after your advice the program works after pressing ALT ENTER when run from windows explorer...
I define lightredflash as global:
========================
#define lightredflash textcolor(140);
rmenu()
{
int choice=0;
do /*** FUNCTION TO DISPLAY MAINMENU ***/
{
rnewscr(1);lightgreen;gotoxy(35,4);cprintf("MAIN MENU");lightred...
Thankyou once again or your reply PSkYiClHlOeDrIC but I am afraid I still cannot get it to work no matter what I try.
I have run from the floppy and C drive and pressed ALT Enter over and over but still get the white block.
Thanks very much for your time anyway.
Thankyou for your reply PSkYiClHlOeDrIC but I am afraid it did not work.
I run at home on Windows 95 which has an MS-DOS option on the menu bar but the one at work is Windows NT which has only a Pseudo type prompt.
I am sure I am FULL screen but it still will not work.
Is there anything else...
In my program I set up a flashing colour in order to give error message
i.e. #define lightredflash textcolor(140);
This works fine on my computer,however, on the computers at work it is displayed
on screen as a red character with a fixed white bow around it.
Any clues as to why this is????
I used to print my C programs on a Dot Matrix printer at work no problem using
if(!biosprint(2,0,0) && 0X90)
printf;("Printer Not Ready");
Otherwise do the business.
This worked fine.However in my new job I now am trying to use a Hewlett Packard
Laserjet 6L.I use the same...
Thank you MBARANSKI. The final advice with the WHILE LOOP
sorted me out.
And PALBANO the stars were dedicated to people who were taking time out to help not criticise.It's nice to learn.
The harder the battle the sweeter the victory.
I start my database of 16 options with main() and then
rmenu(). In this menu i have 16 options which are 16 functions like "View Stock Records" etc....
Each function runs its course and comes to the final bracket } . How do I then get the menu back up on screen in order for the user...
I am still pondering my problem with Stack Overflow understanding recursion.
I have a Database which I call Rstock with a menu with 16 options. I run the program
rstock.exe and the very first thing it does is run a function rmenu(). This puts up the menu of 16 different options. At the end of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.