Search
 
SCRIPT & CODE EXAMPLE
 

CPP

include cpp

#include <iostream>
#include "foop.h"

int main(int argc, char *argv[])
{
int x=42;
std::cout << x <<std::endl;
std::cout << foo(x) << std::endl;
return 0;
}
Comment

c++ #include

//INCLUDING BUILT-IN LIBRARIES...
#include <iostream>
#include <stdlib.h>
//PRE-DEFINE CONSTANT VALUES...
#define MAXNUM -12    //defining an integer
#define PI 3.1415     //defining a float
#define END "

		Program has ended!!
"   //defining a string
//PRE-DEFINING CONSTANT OPERATIONS...
#define ADD(a, b, c) (a + b + c)    //Operation that will add its 3 parameters

using namespace std;

int main(){
    //using other definitions to check if the current device is Windows or UNIX
    #ifdef _WIN32  
        cout<<"Windows Operating System Detected"<<endl;
    #elif __unix__
        cout<<"UNIX Operating System Detected"<<endl;
    #else
        cout<<"Operating System could NOT be identified!"<<endl;
    #endif
    
    cout<<endl<<"Using pre-defined values and operations: "<<endl;
    cout<<" • MAXNUM: "<<MAXNUM<<endl;       //using pre-defined integer
    cout<<" • PI: "<<PI<<endl;               //using pre-defined float
    cout<<" • ADD(): "<<ADD(2,5,99.5)<<endl;   //using pre-defined function

    cout<<END;    //using pre-defined string
    return 0;
}
Comment

cpp #include "" <>

#include <iostream>  // Searches iostream in Standard C++ Header files but not in the Current file's folder
#include "myiostream.h" // Searcher myiostream.h in the Current file's folder and also the Standard Header files
Comment

PREVIOUS NEXT
Code Example
Cpp :: C++ std::string find and replace 
Cpp :: sleep c++ 
Cpp :: How to pause a c++ program. 
Cpp :: read comma separated text file in c++ 
Cpp :: c++ foreach 
Cpp :: how to convert string into lowercase in cpp 
Cpp :: double to int c++ 
Cpp :: c++ print string 
Cpp :: vector size for loop 
Cpp :: c++ do while loop 
Cpp :: c++ default parameters 
Cpp :: OpenGL C++ Version 
Cpp :: how to get size of 2d vector in c++ 
Cpp :: debugging c/c++ with visual studio code 
Cpp :: are strings mutable in c++ 
Cpp :: int max c++ 
Cpp :: loop through array c++ 
Cpp :: how to input a vector when size is unknown 
Cpp :: what is a template in c++ 
Cpp :: C++ Vector Operation Add Element 
Cpp :: Header for INT_MIN 
Cpp :: string vector to string c++ 
Cpp :: odd numbers 1 to 100 
Cpp :: iterate through list c++ 
Cpp :: how to get hcf of two number in c++ 
Cpp :: c++ string slicing 
Cpp :: hello c++ 
Cpp :: attention nlp 
Cpp :: why convert char* to string c++ 
Cpp :: unpack tuple c++ 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =