Ad
Fundamentals
Code
Diff
  • #include <iostream>
    
    using namespace std;
    int helloCplusplus(){
      cout << "Hello Cplusplus" << endl;
      return 0;
    }
    • #include <iostream>
    • using namespace std;
    • int helloCplusplus(){
    • char str[] = "Hello, C++!\n";
    • cout << str;
    • cout << "Hello Cplusplus" << endl;
    • return 0;
    • }
bool Or(bool a, bool b){
	if(!a){
		if(!b){
			return false;
		}
	}
	return true;
}

bool Xor(bool a, bool b){
	return a != b;	
}

bool And(bool a, bool b){
	if(a){
		if(b){
			return true;
		}
	}
	return false;
}

If it does not work, just say :).

template<typename T>
T add(T a, T b){
	return a-(-b);
}