Click here to Skip to main content
16,010,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Any way to keep console.exe open? Pin
DaveE9th28-Jun-03 14:58
DaveE9th28-Jun-03 14:58 
GeneralRe: Any way to keep console.exe open? Pin
Peter Weyzen28-Jun-03 17:18
Peter Weyzen28-Jun-03 17:18 
GeneralRe: Any way to keep console.exe open? Pin
Peter Weyzen29-Jun-03 9:24
Peter Weyzen29-Jun-03 9:24 
GeneralRe: Any way to keep console.exe open? Pin
DaveE9th30-Jun-03 9:27
DaveE9th30-Jun-03 9:27 
GeneralRe: Any way to keep console.exe open? Pin
Toni7829-Jun-03 14:38
Toni7829-Jun-03 14:38 
GeneralMaximum function Pin
Sunnygirl28-Jun-03 12:27
Sunnygirl28-Jun-03 12:27 
GeneralRe: Maximum function Pin
Melekor28-Jun-03 13:43
Melekor28-Jun-03 13:43 
GeneralRe: Maximum function Pin
peterchen28-Jun-03 14:29
peterchen28-Jun-03 14:29 
just two notes
a) you shouldn't use a macro if it can be expressed in the language - i.e.
template <typename T> inline T max(T a, T b) { return (a > b) ? a : b; } should do it without side effect problems, correct name scoping
b) if you need to use a macro, use braces around each argument,
#define max(a,b) ((a) > (b) ? (a) : (b))





"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS

sighist | Agile Programming | doxygen

GeneralRe: Maximum function Pin
majian40528-Jun-03 17:22
majian40528-Jun-03 17:22 
GeneralRe: Maximum function Pin
peterchen29-Jun-03 1:03
peterchen29-Jun-03 1:03 
GeneralRe: Maximum function Pin
Toni7828-Jun-03 14:04
Toni7828-Jun-03 14:04 
GeneralRe: Maximum function Pin
ZoogieZork28-Jun-03 14:46
ZoogieZork28-Jun-03 14:46 
GeneralDynamic Matrix! Pin
Sunnygirl28-Jun-03 10:54
Sunnygirl28-Jun-03 10:54 
GeneralRe: Dynamic Matrix! Pin
Neville Franks28-Jun-03 11:48
Neville Franks28-Jun-03 11:48 
GeneralRe: Dynamic Matrix! Pin
MAAK28-Jun-03 12:10
MAAK28-Jun-03 12:10 
GeneralRe: Dynamic Matrix! Pin
Toni7828-Jun-03 14:11
Toni7828-Jun-03 14:11 
GeneralRe: Dynamic Matrix! Pin
Peter Weyzen28-Jun-03 17:21
Peter Weyzen28-Jun-03 17:21 
GeneralRe: Dynamic Matrix! Pin
Toni7829-Jun-03 14:42
Toni7829-Jun-03 14:42 
GeneralRe: Dynamic Matrix! Pin
Peter Weyzen29-Jun-03 19:53
Peter Weyzen29-Jun-03 19:53 
GeneralRe: Dynamic Matrix! (I am wrong) Pin
MAAK29-Jun-03 5:40
MAAK29-Jun-03 5:40 
Generalthe cheapest computer books Pin
chester16328-Jun-03 10:20
chester16328-Jun-03 10:20 
GeneralRe: the cheapest computer books - Beware SPAM Pin
Neville Franks28-Jun-03 11:49
Neville Franks28-Jun-03 11:49 
GeneralRe: the cheapest computer books Pin
Trollslayer28-Jun-03 12:01
mentorTrollslayer28-Jun-03 12:01 
GeneralRe: the cheapest computer books Pin
Toni7828-Jun-03 12:06
Toni7828-Jun-03 12:06 
GeneralTab order in win32 dialog Pin
Melekor28-Jun-03 9:02
Melekor28-Jun-03 9:02 

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.