15,851,453 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) David Crow1-Jan-13 18:23 David Crow 1-Jan-13 18:23
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) mrt-amin1-Jan-13 19:29 mrt-amin 1-Jan-13 19:29
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) David Crow2-Jan-13 5:27 David Crow 2-Jan-13 5:27
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) Richard MacCutchan1-Jan-13 23:22 Richard MacCutchan 1-Jan-13 23:22
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) mrt-amin2-Jan-13 3:41 mrt-amin 2-Jan-13 3:41
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) Richard MacCutchan2-Jan-13 5:25 Richard MacCutchan 2-Jan-13 5:25
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) mrt-amin2-Jan-13 10:54 mrt-amin 2-Jan-13 10:54
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) Richard MacCutchan2-Jan-13 11:06 Richard MacCutchan 2-Jan-13 11:06
 And I explained how to do this in my first answer. Create an array or list which contains the names of all numbers, and use the digits of the numbers to select them. Something like: C++ ```char* numbers = { "one", "two", ... int day = currentDate.day; cout << numbers[day - 1]; // etc``` One of these days I'm going to think of a really clever signature.
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) mrt-amin2-Jan-13 20:02 mrt-amin 2-Jan-13 20:02
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) Richard MacCutchan2-Jan-13 23:02 Richard MacCutchan 2-Jan-13 23:02
 Re: For help solving C + + 4.5 ((a numerical calendar date letters)) mrt-amin3-Jan-13 19:16 mrt-amin 3-Jan-13 19:16
 Empty String john563230-Dec-12 21:27 john5632 30-Dec-12 21:27
 Re: Empty String Richard MacCutchan30-Dec-12 23:22 Richard MacCutchan 30-Dec-12 23:22
 Re: Empty String Chris Meech31-Dec-12 2:57 Chris Meech 31-Dec-12 2:57
 Re: Empty String David Crow31-Dec-12 6:25 David Crow 31-Dec-12 6:25
 Re: Empty String manem21k2-Jan-13 2:26 manem21k 2-Jan-13 2:26
 Re: Empty String jeron12-Jan-13 5:21 jeron1 2-Jan-13 5:21
 Re: Empty String manem21k2-Jan-13 23:32 manem21k 2-Jan-13 23:32
 Re: Empty String CPallini2-Jan-13 11:09 CPallini 2-Jan-13 11:09
 MFC Grid control 2.27 BorisAnimal30-Dec-12 5:46 BorisAnimal 30-Dec-12 5:46
 Re: MFC Grid control 2.27 Richard MacCutchan30-Dec-12 6:34 Richard MacCutchan 30-Dec-12 6:34
 When should printf round a floating number up for display? Member 419459328-Dec-12 6:11 Member 4194593 28-Dec-12 6:11
 Re: When should printf round a floating number up for display? Richard MacCutchan28-Dec-12 6:53 Richard MacCutchan 28-Dec-12 6:53
 Re: When should printf round a floating number up for display? Member 419459328-Dec-12 7:55 Member 4194593 28-Dec-12 7:55
 Re: When should printf round a floating number up for display? Richard MacCutchan28-Dec-12 8:01 Richard MacCutchan 28-Dec-12 8:01
 Last Visit: 31-Dec-99 19:00     Last Update: 4-Mar-24 19:09 Refresh ᐊ Prev1...820821822823824825826827828829 Next ᐅ