Help in C++? - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > Other Programming - Perl, C++, Java, ASP, .NET Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-07-2010, 04:50 AM   #1 (permalink)
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default Help in C++?

Hi,
Can you please help me how can I create dynamically array?
Can you please help me in C++?
notyrock is offline   Reply With Quote
Sponsored Links
Old 07-07-2011, 04:50 AM   #2 (permalink)
t0l
Junior Member
 
Join Date: Jul 2011
Location: Beijing
Posts: 31
Default Re: Help in C++?

new=>select DLL type a name and add to a project in VS
t0l is offline   Reply With Quote
Old 07-07-2011, 08:35 AM   #3 (permalink)
Junior Member
 
Join Date: Mar 2011
Posts: 61
Default Re: Help in C++?

sorry i am not aware of it
john9988 is offline   Reply With Quote
Old 07-12-2011, 06:56 AM   #4 (permalink)
Member
 
Join Date: Apr 2011
Location: Punjab
Posts: 493
Default Re: Help in C++?

Google will help you dear.
Host4dost is offline   Reply With Quote
Old 07-13-2011, 06:38 PM   #5 (permalink)
Junior Member
 
gtk29's Avatar
 
Join Date: Jul 2011
Posts: 2
Default Re: Help in C++?

Dynamic array creation can be done using the new keyword. This uses memory from the heap. So you must de-allocate this memoery using the delete keyword.

The following example creates a dynamic array of type int :

int * myarray = new int[5];

delete myarray;
gtk29 is offline   Reply With Quote
Old 07-14-2011, 02:32 AM   #6 (permalink)
Regular User
 
pratap295's Avatar
 
Join Date: Jul 2011
Posts: 48
Default Re: Help in C++?

Yes, you can design a dynamically array using Linked List. This can grow at run time. As long as you keep on reading file and folderls u can add them to linked list.
It is declared using a structure. Like this

struct filefolder
{
char filename[10];
char foldername[10];
struct filefolder *nextnode;
};

The last item in the above structure is a link to next structure.

The Linked List is like a train where each coach is linked with the next coach by a link. Starting from the engine u can go up to last coach.

U have to preserve the address of the first node. So with the address of the first node u can go up to the last node of the Linked List.
pratap295 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:00 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting