Thread: some help needed again

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    7

    some help needed again

    I have two problems this time. We will have an exam on C in january - we will be required to write a given program. The problem is - we are going to use MS visual c++ 6.0 to write this exam in.

    1: The paper will ask to clear the screen and place the cursor in the top left hand corner of the screen. The obvious solution is of course clrscr(). The problem is, visual c++ doesn't accept this function and starts flashing errors (propably because clrscr() is non standard - i think).

    Is there any other way to do this?
    Simplest answer only please.

    2: Also, we will be required to create a delay in the program. Something like, a message gets printed, short delay, message printed, short delay etc.. - you get the idea.
    Demonstrate the simlest way of doing this please if you can.
    Simplest answer only.

    We are allowed to use only standard functions and headers and the header <time.h> is to be avoided as much as possible.

    Thanks





    ----
    Every man shall see the devil before he dies.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>Simplest answer only please.
    Read the FAQ or do a board search, both questions have been asked many times.

    >>clear the screen and place the cursor in the top left hand corner of the screen
    >>We are allowed to use only standard functions and headers
    Standard C has no real concept of a screen, it tries to keep things as generic as possible to promote portability. Therefore your assignment is bogus, and you should consider handing in a blank sheet of paper, or at most, at explanation of how wrong the assignment really is.

    >>or something else that occupies the CPU for a while.
    I know what you're saying, but I sure wish these assignments would be a little more "valid".
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. lock needed in this scenario?
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-25-2008, 07:22 AM
  4. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM
  5. semi-colon - where is it needed
    By kes103 in forum C++ Programming
    Replies: 8
    Last Post: 09-12-2003, 05:24 PM