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++ loop through list 
Cpp :: SUMOFPROD2 solution 
Cpp :: c++ for loop multiple variables 
Cpp :: convert char to int c++ 
Cpp :: maxheap cpp stl 
Cpp :: array of struct in c++ 
Cpp :: c++ class template 
Cpp :: vector in c++ 
Cpp :: system("pause") note working c++ 
Cpp :: c++ changing string to double 
Cpp :: polymorphism in c++ 
Cpp :: what do you mean by smallest anagram of a string 
Cpp :: overload array operator cpp 
Cpp :: take a function argument 
Cpp :: put text on oled 
Cpp :: how to change the value of a key in hashmp in c++ 
Cpp :: oncomponentendoverlap ue4 c++ 
Cpp :: C++ Program to Find the Range of Data Types using Macro Constants 
Cpp :: matrix c++ 
Cpp :: creating node in c++ 
Cpp :: volumeof a sphere 
Cpp :: how to get last element of set 
Cpp :: max heap insertion c++ 
Cpp :: Split a number and store it in vector 
Cpp :: qt file explorer 
Cpp :: c++ function pointer variable 
Cpp :: c++ check first character of string 
Cpp :: Implicit conversion casting 
Cpp :: c++ visual studio 
Cpp :: gcd of two numbers 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =