15,880,427 members
Home / Discussions / Algorithms

# Algorithms

 Re: Simplex Downhill... Stefan_Lang7-Aug-18 2:21 Stefan_Lang 7-Aug-18 2:21
 Re: Simplex Downhill... User 110609797-Aug-18 21:23 User 11060979 7-Aug-18 21:23
 Re: Simplex Downhill... Stefan_Lang7-Aug-18 22:05 Stefan_Lang 7-Aug-18 22:05
 Re: Simplex Downhill... User 110609798-Aug-18 1:41 User 11060979 8-Aug-18 1:41
 Re: Simplex Downhill... Stefan_Lang8-Aug-18 2:11 Stefan_Lang 8-Aug-18 2:11
 Re: Simplex Downhill... User 110609798-Aug-18 10:18 User 11060979 8-Aug-18 10:18
 help me~ for use..... #define macro ## #@ # dsyoon ds29-Jul-18 17:07 dsyoon ds 29-Jul-18 17:07
 Re: help me~ for use..... #define macro ## #@ # Daniel Pfeffer29-Jul-18 20:42 Daniel Pfeffer 29-Jul-18 20:42
 You can't do that. Macros are expanded early in the compilation process, and only then is the resulting C (or C++) code compiled. The a in your code is therefore treated as a text string "a", rather than the number 1. In C++, you could do something similar: C++ ```template T FUNC(T x) { return x + n; } ... int const a = 1; int result = FUNC(100);``` Note the const before the a. Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
 Re: help me~ for use..... #define macro ## #@ # Richard MacCutchan29-Jul-18 21:26 Richard MacCutchan 29-Jul-18 21:26
 Re: help me~ for use..... #define macro ## #@ # Chris Losinger30-Jul-18 8:32 Chris Losinger 30-Jul-18 8:32
 Read text from a file and realloc when needed claymorehack6-Jul-18 4:02 claymorehack 6-Jul-18 4:02
 Re: Read text from a file and realloc when needed Richard MacCutchan6-Jul-18 4:08 Richard MacCutchan 6-Jul-18 4:08
 Re: Read text from a file and realloc when needed claymorehack7-Jul-18 22:46 claymorehack 7-Jul-18 22:46
 Re: Read text from a file and realloc when needed Richard MacCutchan8-Jul-18 2:49 Richard MacCutchan 8-Jul-18 2:49
 Lookup table with angles cristiapi6-Jul-18 2:30 cristiapi 6-Jul-18 2:30
 Re: Lookup table with angles Stefan_Lang5-Aug-18 23:09 Stefan_Lang 5-Aug-18 23:09
 Big-O Notation Manish16927-Jun-18 18:31 Manish169 27-Jun-18 18:31
 Re: Big-O Notation Richard Andrew x648-Jul-18 3:33 Richard Andrew x64 8-Jul-18 3:33
 Time complexity Manish16927-Jun-18 1:42 Manish169 27-Jun-18 1:42
 Re: Time complexity Richard MacCutchan27-Jun-18 2:28 Richard MacCutchan 27-Jun-18 2:28
 Re: Time complexity Manish16927-Jun-18 17:24 Manish169 27-Jun-18 17:24
 Re: Time complexity Richard Deeming28-Jun-18 0:54 Richard Deeming 28-Jun-18 0:54
 Re: Time complexity Richard MacCutchan28-Jun-18 0:58 Richard MacCutchan 28-Jun-18 0:58
 Re: Time complexity Richard Deeming28-Jun-18 1:08 Richard Deeming 28-Jun-18 1:08
 Re: Time complexity Richard MacCutchan28-Jun-18 1:20 Richard MacCutchan 28-Jun-18 1:20
 Last Visit: 31-Dec-99 18:00     Last Update: 17-Apr-24 18:19 Refresh ᐊ Prev1...20212223242526272829 Next ᐅ