Domain Name Forum  

Go Back   Domain Name Forum > Web Design & Development > Programming > C

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2011, 05:47 PM
C++ C++ is offline
Senior Member
 
Join Date: Jun 2009
Posts: 18,248
Default Adding 2-nd dimention to pre allocated array.

Hi I have a structure of members uint x,uint y (name is "ruudud") declared as global variable. Iv declared structure and pointer to structure globally in following way: struct ruudud{ unsigned int x: 6; // 64 max unsigned int y: 6;
__________________
C++
domain name forum
Reply With Quote
  #2  
Old 07-27-2017, 12:35 PM
steffidsouza46 steffidsouza46 is offline
Member
 
Join Date: Jun 2017
Posts: 60
Default

Create a second array that is 3-by-2 and uses the same field names:for the array, and preallocate this amount of memory for it at the time the array is created.
Reply With Quote
Reply

Thread Tools
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

Forum Jump


All times are GMT -4. The time now is 05:12 PM.

| Webmaster Forum | | Domain Name Forum |



Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.