Hello World!

众所周知,在c++语言中,最难的题目便是输出"Hello World!"了(bushi)。那么,接下来我将为大家呈现这一题的答案代码:

#include<iostream>
//#include <istream>
//#include <ostream>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<cstring>
#include<cmath>
#include<ctime>
#include<algorithm>
#include<utility>
#include<stack>
#include<queue>
#include<vector>
#include<set>
#include<map>
#include<bitset>
#include<unordered_map>
#include<unordered_set>
#define PI acos(-1.0)
#define INF 0x3f3f3f3f
#define LL long long
#define Pair pair<int,int>
LL quickPow(LL a,LL b){ LL res = 1; while(b){if(b&1)res *= a; a *= a; b >>= 1;} return res; }
LL multMod(LL a,LL b,LL mod){ a %= mod; b  %= mod; LL res = 0; while(b){if(b&1)res = (res + a) % mod; a =(a <=1) % mod; b >>= 1; } return res%mod;}
LL quickMultPowMod(LL a, LL b,LL mod){ LL res = 1,k = a; while(b){if((b&1))res = multMod(res,k,mod) % mod; k = multMod(k,k,mod) % mod; b>>=1;} return res % mod;}
LL quickPowMod(LL a,LL b,LL mod){ LL res = 1; while(b){if(b & 1)res = (a*res)%mod; a=(a*a)%mod; b>>=1; } return res; }
LL getInv(LL a,LL mod){ return quickPowMod(a,mod-2,mod); }
LL GCD(LL x,LL y){ return !y?x:GCD(y,x%y); }
LL LCM(LL x,LL y){ return x/GCD(x,y)*y; }

/* TREE */template<typename T>struct BinaryTreeNode {T data;BinaryTreeNode<T>* leftChild;BinaryTreeNode<T>* rightChild;};

const double EPS = 1E-6;
const int MOD = 1000000000+7;
const int N = 1000+5;
const int dx[] = {0,0,-1,1,1,-1,1,1};
const int dy[] = {1,-1,0,0,-1,1,-1,1};
const LL MAX = -100000;
const LL MIN = 0X3f3f3f3f;

bool x = false;
char str[] = "Hello World!" ;
 
using namespace std;
 
int isRight(int n){
    bool Right = true;
    bool Wrong = false;
    if(n = true){
        return Right;
    }
    else {
        return Wrong;
    }
}

void isPrime(bool n){
    n = 1;
    if( !( !isRight(n) )){
        x = true;
    }
    else {
        x = false;
    }
}

int main (void){
    if(x = true){
            printf(str);
            cout << "\n";
    }
    else{
        cout<<"作者是个人物。";
    }
    return 0;
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值