Click here to Skip to main content
15,883,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pascals triangle using user-define function use. Not working ! Pin
Richard MacCutchan28-Oct-17 22:03
mveRichard MacCutchan28-Oct-17 22:03 
AnswerRe: pascals triangle using user-define function use. Not working ! Pin
CPallini29-Oct-17 22:59
mveCPallini29-Oct-17 22:59 
GeneralRe: pascals triangle using user-define function use. Not working ! Pin
Tarun Jha31-Oct-17 10:19
Tarun Jha31-Oct-17 10:19 
GeneralRe: pascals triangle using user-define function use. Not working ! Pin
CPallini31-Oct-17 23:30
mveCPallini31-Oct-17 23:30 
QuestionData Structure issue Pin
patriotaki28-Oct-17 2:33
patriotaki28-Oct-17 2:33 
AnswerRe: Data Structure issue Pin
leon de boer28-Oct-17 6:23
leon de boer28-Oct-17 6:23 
GeneralRe: Data Structure issue Pin
harold aptroot28-Oct-17 6:52
harold aptroot28-Oct-17 6:52 
GeneralRe: Data Structure issue Pin
leon de boer28-Oct-17 6:58
leon de boer28-Oct-17 6:58 
Pi goes to inifinite decimal places .. creating the infinite output is easy and such things exist. Any irrational number is an example, the element involved being a digit.
Even in your case a computer will get thru thousands or millions of compares for a single digit per second.
If I asked you to count the digit 7 occurance in the PI output you can easily do it, and you could carry the count until you ran out of memory, disk space etc to hold the count. You only need the count you don't have to store the thing.

Doing it in O (log n) that is the question?
In vino veritas


modified 28-Oct-17 13:12pm.

GeneralRe: Data Structure issue Pin
harold aptroot28-Oct-17 7:42
harold aptroot28-Oct-17 7:42 
GeneralRe: Data Structure issue Pin
leon de boer28-Oct-17 23:10
leon de boer28-Oct-17 23:10 
GeneralRe: Data Structure issue Pin
harold aptroot29-Oct-17 0:52
harold aptroot29-Oct-17 0:52 
GeneralRe: Data Structure issue Pin
leon de boer29-Oct-17 7:45
leon de boer29-Oct-17 7:45 
GeneralRe: Data Structure issue Pin
harold aptroot29-Oct-17 9:38
harold aptroot29-Oct-17 9:38 
GeneralRe: Data Structure issue Pin
leon de boer29-Oct-17 17:12
leon de boer29-Oct-17 17:12 
GeneralRe: Data Structure issue Pin
harold aptroot29-Oct-17 22:37
harold aptroot29-Oct-17 22:37 
GeneralRe: Data Structure issue Pin
leon de boer30-Oct-17 4:25
leon de boer30-Oct-17 4:25 
AnswerRe: Data Structure issue Pin
CPallini29-Oct-17 23:04
mveCPallini29-Oct-17 23:04 
Questionalogaritm for mini calender project Pin
Member 1348043227-Oct-17 3:21
Member 1348043227-Oct-17 3:21 
AnswerRe: alogaritm for mini calender project Pin
CPallini27-Oct-17 3:27
mveCPallini27-Oct-17 3:27 
Question[ win32 ][ code::block's ] game 1 error ? Pin
bluatigro25-Oct-17 23:19
bluatigro25-Oct-17 23:19 
AnswerRe: [ win32 ][ code::block's ] game 1 error ? Pin
CPallini26-Oct-17 0:06
mveCPallini26-Oct-17 0:06 
AnswerRe: [ win32 ][ code::block's ] game 1 error ? Pin
Richard MacCutchan26-Oct-17 0:16
mveRichard MacCutchan26-Oct-17 0:16 
GeneralRe: [ win32 ][ code::block's ] game 1 error ? Pin
bluatigro30-Oct-17 23:50
bluatigro30-Oct-17 23:50 
GeneralRe: [ win32 ][ code::block's ] game 1 error ? Pin
Richard MacCutchan31-Oct-17 0:13
mveRichard MacCutchan31-Oct-17 0:13 
QuestionCDBVariant type problem Pin
_Flaviu25-Oct-17 2:06
_Flaviu25-Oct-17 2:06 

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.