Click here to Skip to main content
15,889,826 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill5-Feb-08 14:28
Mark Churchill5-Feb-08 14:28 
QuestionRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:55
Skippums6-Feb-08 4:55 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult6-Feb-08 13:06
mvePIEBALDconsult6-Feb-08 13:06 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 13:36
Skippums6-Feb-08 13:36 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill6-Feb-08 15:16
Mark Churchill6-Feb-08 15:16 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult5-Feb-08 14:28
mvePIEBALDconsult5-Feb-08 14:28 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:59
Skippums6-Feb-08 4:59 
GeneralI need help how to start this program. Pin
Alex5015-Feb-08 11:27
Alex5015-Feb-08 11:27 
say that within each egg carton, the ‘slot’ for each egg is given a number, just like we number arrays. We will also number the egg cartons themselves. So in the picture below, we see that egg carton #0 has 8 slots. Within egg carton #0, the slots are number 0, 1, 2, 3, 4, 5,6, and 7, just like the carton was an array. Another way to number the slots would be to use ‘global slot number’. This is what you’d get, if you started counting at the first slot in the first carton, and then kept counting when you moved on to the second carton, etc, etc. For example, “carton#0, slot#1” would be given the ‘global slot number’ of 1, since you start counting (at carton#0, slot#0) with 0, then count carton#0, slot#1 as ‘global 1’. When you run out space in the first carton (having reached ‘global 7’, at “carton#0, slot#7”), you go on to the second carton, and keep counting. So carton#1, slot#0 is actually ‘global slot number 8’. Carton #1, slot #5 is ‘global slot number 13’, and ‘global slot number 17’ really means carton #2, slot #1.

You need to fill in code, in program that is provided below, so that your program will ask the user for the ‘global slot number’ of a particular slot in a particular egg carton, and will then tell the user which carton, and which slot # with that carton, to put the egg.
GeneralRe: I need help how to start this program. Pin
Gareth H5-Feb-08 11:59
Gareth H5-Feb-08 11:59 
GeneralRe: I need help how to start this program. Pin
led mike5-Feb-08 12:07
led mike5-Feb-08 12:07 
GeneralRe: I need help how to start this program. Pin
Malcolm Smart5-Feb-08 21:05
Malcolm Smart5-Feb-08 21:05 
GeneralRe: I need help how to start this program. Pin
J4amieC5-Feb-08 22:37
J4amieC5-Feb-08 22:37 
GeneralRe: I need help how to start this program. Pin
Wes Aday6-Feb-08 4:18
professionalWes Aday6-Feb-08 4:18 
GeneralBest method to save dynamic data Pin
Richard Blythe5-Feb-08 10:50
Richard Blythe5-Feb-08 10:50 
GeneralRe: Best method to save dynamic data Pin
led mike5-Feb-08 12:04
led mike5-Feb-08 12:04 
GeneralRe: Best method to save dynamic data Pin
Mark Churchill5-Feb-08 14:31
Mark Churchill5-Feb-08 14:31 
GeneralRe: Best method to save dynamic data Pin
User 2710095-Feb-08 17:22
User 2710095-Feb-08 17:22 
GeneralRe: Best method to save dynamic data Pin
Richard Blythe5-Feb-08 17:41
Richard Blythe5-Feb-08 17:41 
GeneralRe: Best method to save dynamic data Pin
User 2710095-Feb-08 17:50
User 2710095-Feb-08 17:50 
GeneralRe: Best method to save dynamic data Pin
led mike6-Feb-08 5:38
led mike6-Feb-08 5:38 
GeneralRe: Best method to save dynamic data Pin
Richard Blythe6-Feb-08 11:23
Richard Blythe6-Feb-08 11:23 
QuestionHow to call javascript from asp:hyperlinkcolumn Pin
Exelioindia5-Feb-08 10:39
Exelioindia5-Feb-08 10:39 
AnswerRe: How to call javascript from asp:hyperlinkcolumn Pin
pmarfleet5-Feb-08 11:27
pmarfleet5-Feb-08 11:27 
GeneralFile transfer from one folder to another folder Pin
Deepak Nigam5-Feb-08 9:55
Deepak Nigam5-Feb-08 9:55 
GeneralIgnore this post. Cross posted in the VB.NET forum Pin
Dave Kreskowiak5-Feb-08 10:38
mveDave Kreskowiak5-Feb-08 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.