Welcome to pickSourcecode.com Login | Register    
pickZy.com
 Home  | search  | games  | General  | C  | C++  | Java  | Php  | Networking  | Visual Basic  | VC++  | Win32  | MFC  | JavaScript  | Jobs  | JavaScript  | Post jobs
Cpp - Writing Macro Definition       Share
2008-11-03 |  RatheeshTR  | Viewed: 1186  |    0

#include <iostream>
using namespace std;


#define maximum(a, b) (a < b) ? b : a 

int main()
{

    
int max = maximum(5, 3);
    cout << "The maximum of 5 and 3 = " << max << endl;

    return 0;

}


Comments:





Submit comment's

Type:

User Comment's:

Submitted By:
Prof: Software
Tech: C ,Cpp
Send Mail: malathi.v



Related topics
Stack Implementation
cpp stack example

General Topics
agile methodology
test entry and exit criteria
severity and priority
race condtions and memory leak
performance testing
test design
unit, integration and system testing
testing techinical terms

Web site contents © Copyright 2007, All rights reserved.
Help | Terms and Conditions | Privacy Policy | About Us