Solved

Looking for an implementation of Vector in C

Posted on 2008-10-24
6
911 Views
Last Modified: 2012-05-05
Anyone have a good Vector.c file?
0
Comment
Question by:mstrelan
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

822 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