Thread: copy to floppy

  1. #1
    Unregistered
    Guest

    copy to floppy

    I am currently writing programs in C and using the microsoft visual studio compiler.How can i copy the program to a floppy so i can run on another computer.I 've tried it using MS-DOS prompt.But when I then want to open the program from the floppy it doesn't run totally.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    If you are saving to floppy, then make sure you have supporting files on the floppy as well. Make sure you copy the .exe to the floppy.
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

  3. #3
    Unregistered
    Guest
    I've done this.When I run the .exe file from the floppy,the programs start working but it stops after one operation.For exemple when I've written a program that asks for a number,he asks it but then the screen disappears.Perhaps it is impossible to do this with the microsoft visual studio compiler,at least when you write in C!!

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    try puting getchar(); at the end of main();

    Code:
    int main (void)
    {
       char answer[20];
    
       printf("what is your name :");
       gets(answer);
       printf("your name is %s", answer);
       /* pause to view output */
       getchar();
       return 0;
    }
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

  5. #5
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65
    Does the coputer that you are moving the files to have a MSVS or another compiler?
    I have a rabbit in my pants! Please be happy for me.

  6. #6
    Unregistered
    Guest
    yes,it has.

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    add a getch() or equivalent to the end of your code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gcc can't find obvious copy constructor
    By SevenThunders in forum C++ Programming
    Replies: 13
    Last Post: 03-19-2009, 02:41 PM
  2. calling copy constructor from template
    By Ancient Dragon in forum C++ Programming
    Replies: 3
    Last Post: 09-28-2005, 01:54 PM
  3. dynamic memory alloccation & returning objects
    By haditya in forum C++ Programming
    Replies: 8
    Last Post: 04-21-2005, 11:55 PM
  4. Quick ? on copy constructor
    By Traveller in forum C++ Programming
    Replies: 3
    Last Post: 05-03-2002, 10:31 AM
  5. Copy Constructor Help
    By Jubba in forum C++ Programming
    Replies: 2
    Last Post: 11-07-2001, 11:15 AM