Solved

with the reference of arrays

Posted on 2002-05-01
4
182 Views
Last Modified: 2010-04-02
hello
i wanna 9 basic deifination of odd shaped arrays, isoceles
triangular, right triangular with respect to arrays .....
i anybody here 2 help me
0
Comment
Question by:annihilator
4 Comments
 
LVL 2

Accepted Solution

by:
jonnin earned 50 total points
Comment Utility
in c++ you can't have a 2d *array* that has 1 element on row one, 3 on row 2, 5 on row 3, ... but you can simulate this with these methods:

make square arrays and use the piece of it that you need (wastes memory) or
create an array of pointers and allocate what you need
(not too bad if you know pointers or can use vectors)



0
 

Expert Comment

by:vrelhan
Comment Utility
Homework ??
0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
Dear annihilator

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jonnin"

comment(s) as an answer since you never gave more feedback.

If you think your question was not answered at all, you can explain here why you want to do this and post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now