HOW TO MAKE A CURSOR (WITHOUT USING GRAPHICS)

Nov 28, 2014 at 10:43am
List of commands: [ALL COMMANDS MUST BE IMPLEMENTED IN SEPARATE FUNCTIONS]

1. fd or forward [e.g. forward 60] moves forward

2. bk or backward [e.g. backward 60] moves backwards

3. rt [rt 90] right turn only angles multiple of 45

4. lt [lt 90] left turn only angles multiple of 45

5. repeat [e.g. repeat 4[fd 50 rt 90] repeat what ever in [] n number of times. In this case n is 4.

6. pu [pen up]

7. pd [pen down]

8. color [e.g. color BLACK] change color of pen

9. width [e.g. WIDTH 5] change width (pixel size) of pen

10. cs [clear screen]

11. square [e.g. square 30] draw square of given length

12. circle [e.g. circle 30] draw circle of given radius

13. save [e.g. save “abc.txt”] save up to last 100 commands in file. Can be used anytime

14. Load [e.g. load “myfile.txt”] load commands from file and execute. File format: one instruction

per line. Load instruction can be use any time.

OPTIONAL

15. factorial [e.g. factorial 3] and so on whatever you can think of.

All instructions must be saved in a 2D character array. When the user gives the ‘save’ command store

all instructions from this array to file.

Error Handling

For unknown commands the system must prompt “I don’t know this command”. E.g. eat 90

For incomplete commands the system must prompt “Incomplete command” . E.g. fd
Nov 28, 2014 at 10:49am
don't double post.
and attempt something yourself first.
Nov 28, 2014 at 10:55am
closed account (z05DSL3A)
http://www.cplusplus.com/forum/general/149048/
Nov 29, 2014 at 3:16pm
Poora question hi post kar diya zaalim insaan :p khud project kar
Nov 29, 2014 at 3:37pm
closed account (EwCjE3v7)
This seems to us as its homework so we will not do it for you, you will have to give it a try first.
Nov 29, 2014 at 4:42pm
Guys i tried everything!! This project is future impossible for me!!!
I just don't know how to make a cursor without using GRAPHICS!!!!!
@Uzair yar samjha kro
Topic archived. No new replies allowed.