473,379 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

how can i complete this program?

//FILE: StkFigMn.cpp
//DRAW A STICK FIGURE (Main function only)

Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. //Functions used...
  5. //DRAW A CIRCLE
  6. void draw_circle ();
  7.  
  8. //DRAW A TRIANGLE
  9. void draw_triangle ();
  10.  
  11. //DRAW INTERSECTING LINES
  12. void draw_intersect ();
  13.  
  14. //DRAW A HORIZONTAL LINE
  15. void draw_base ();
  16.  
  17. int main ()
  18. {
  19.      //Draw the figure.
  20.      //Draw a circle.
  21.      draw_circle ();
  22.  
  23.      //Draw a triangle.
  24.      draw_triangle ();
  25.  
  26.      //Draw intersecting lines.
  27.      draw_intersect ();
  28.      return 0;
  29. }
// Insert definitions for functions draw_circle, draw_trinagle,
// draw_intersect and draw base



<---Our teacher assigned us to complete this program using void function.. we're supposed to draw a stick figure of a girl and a house... how can i complete this?
help!
Jan 22 '08 #1
1 1644
Ganon11
3,652 Expert 2GB
You need to provide definitions for all the functions that will output the correct ASCII characters in the right order.
Jan 23 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: post400 | last post by:
Hi, apparently there is a very famous book that every developer should read: Code complete by Steve McConnell ! Is there an electronic version freely downloadable ? After all, the book was...
0
by: B. Tommie Usdin | last post by:
--------------------------------------------------------- ************* Complete Program Available ************** ************ Late Breaking News Added ************* *********** Extreme...
1
by: Starx | last post by:
I have a while loop in my program that is going to execute a very large number of loops (well over 100000000). Sometimes this can take quite some time for the computer to process so I'd like the...
4
by: nan | last post by:
Hi all. Anyone has an idea of how to open a file without know the complete name of it, without opening the directory (with opendir) and test each file? For example, I have this: ...
12
by: Anders Eriksson | last post by:
Hello! I'm trying to create a program that will watch a directory and when a file is created print that file. I have used FileSystemWatcher for watching the directory and I get an created event....
8
by: John | last post by:
Hi, I am developing an application using VB.Net and hope that the textbox can process features which are similar to auto-complete features in Window. For example, when user types "ap" in a...
7
by: GeorgeAtkins | last post by:
I want to create a web-based form or page that consists of a series of formatted questions and answers. The form will resemble an existing paper form. When the form is filled in, I want the user to...
4
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as...
3
by: jyck91 | last post by:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> main() { float num; int i, temp, remainder, baseM, j; printf("Enter a number:"); scanf("%f",&num);
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.