954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Draw

Can C++ draw a table for matrix? or I must draw a line like this?
__________________________
__________________________
_________________________
_________________________

nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 

Or a nested for loop of '_'

cscgal
The Queen of DaniWeb
Administrator
19,424 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

I dont understand a nested for loop of '_'

nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 

Perhaps we should ask: what do you mean by a "table for matrix"? And on what medium do you want to draw it (console, gui window, printer paper)?

Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
 

let me explain, I want to a 2 dimensional array which consist 140*140 and i do it in matrix form. So, if I have do a array, did C++ have a function to draw a line for the array?
Its look like school timetable.
_________________________
|_i,j_|_1_|_2_|__3_|__4_|_5__|
|_1__|___|___|____|____|____|
|_2__|___|___|____|____|____|
|_3__|___|___|____|____|____|

I want above line...or I must draw it bymyself?

nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 
nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 

You must draw it "bymyself."

Sturm
Veteran Poster
1,079 posts since Jan 2007
Reputation Points: 343
Solved Threads: 24
 

What medium do you want to draw it on...

Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
 

if I have a 400*400? so I must draw it myself.?
Huhuhuhu
So, C++ doest have a function to draw like a maple 11.

nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 

if I have a 400*400? so I must draw it myself.?
Huhuhuhu
So, C++ doest have a function to draw like a maple 11.

nurulshidanoni
Posting Whiz in Training
219 posts since Nov 2007
Reputation Points: 9
Solved Threads: 0
 

>What medium do you want to draw it on...

Considering his lack of information, I think it's safe to assume the medium is a terminal.

I repeat, you must draw it yourself.

Sturm
Veteran Poster
1,079 posts since Jan 2007
Reputation Points: 343
Solved Threads: 24
 

or, you can design an algorithm to draw it for you... consisting in a series of nested loops...

Nichito
Posting Virtuoso
1,602 posts since Mar 2007
Reputation Points: 424
Solved Threads: 57
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You