Solved

Looking for an implementation of Vector in C

Posted on 2008-10-24
6
915 Views
Last Modified: 2012-05-05
Anyone have a good Vector.c file?
0
Comment
Question by:mstrelan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Author Comment

by:mstrelan
ID: 22801578
In particular need these methods
create vector
destroy vector
get element count
add element
remove element
get element
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22801649
why not working with C++ classes? (STL)
What are your constraints?
0
 
LVL 10

Author Comment

by:mstrelan
ID: 22801653
its a uni assignment and i havent learnt any c++, just c
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22801727
>>its a uni assignment and i havent learnt any c++, just c
so, I guess you have to implement the vector class by yourself, right?
0
 
LVL 10

Author Comment

by:mstrelan
ID: 22801731
the vector part is not crucial to the assignment. it is about sockets, threads and synchronisation. they provided a vector header file which is optional to use. i'm allowed to use a vector from the internet as long as i reference the source
0
 
LVL 24

Accepted Solution

by:
fridom earned 500 total points
ID: 22810597
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.

734 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