跳到正文

个人记录

Longlish头文件开发

Mengyj2024约 20 分钟
原文
文章信息与版本

文章信息

发布
2025年8月13日
收录
2025年12月12日
更新
2026年11月16日
篇幅
约 20 分钟

版本

  1. v1当前

前言

在评论区提出你的意见。
最后更新时间:2025年8月13日14点0分0秒,正在更改。 2026年3月7日21点7分13秒

正文

Longlish.h
文件保存在C:\Program Files (x86)\Dev-Cpp\MinGW64\include里

C++
/*
this is Longlish!

that`s speak Longlish! 


The Linguistic Phenomenon of Longlish: A Hybrid Language for the Digital Age

Introduction

In our increasingly interconnected world, Longlish has emerged as a fascinating linguistic hybrid that blends elements of Chinese and English. 

This 800-word essay explores the origins, characteristics, and cultural significance of Longlish while examining its role in modern communication. 

As globalization accelerates, such language mixtures represent more than just casual slang—they reflect deeper sociolinguistic transformations.

The Genesis of Longlish

Longlish originated from the natural code-switching between Mandarin Chinese (particularly the "Long" dialect) and English, frequently occurring in bilingual communities. Several factors contributed to its development:





Educational Context: Many Chinese students learn English from primary school, creating neural pathways that facilitate blending



Digital Communication: Social media platforms encouraged linguistic experimentation



Pop Culture Influence: K-pop's Konglish demonstrated the viability of hybrid languages

Unlike Chinglish (often considered erroneous English), Longlish represents intentional, systematic blending by fluent bilinguals. For example: "Let's go 干饭去" combines English grammar with Chinese slang for eating.

Structural Characteristics

Longlish exhibits distinct linguistic features across various levels:

Phonological Blending

? English words adopt Chinese tones ("coffee" pronounced as "kā-fēi") ? Chinese words incorporate English stress patterns

Lexical Innovation

? Loanword blending: "emo了" (to become emotional) ? Calques: "人山人海" translated as "people mountain people sea"

Grammatical Hybridization

? Topic-comment structure from Chinese with English vocabulary ? Flexible use of articles and plurals

A 2024 study by Beijing Language University identified over 1,200 stable Longlish expressions in daily use.

Social and Cultural Functions

Longlish serves multiple psychosocial functions in contemporary society:

Identity MarkerFor young Chinese professionals, Longlish signals:





Global awareness without Westernization



Cultural pride combined with international outlook

Communication EfficiencyIn business settings, Longlish expressions like "我们需要brainstorm一下" convey precise meanings untranslatable in either language.

Creative ExpressionChinese influencers frequently use Longlish for:





Wordplay humor



Cultural commentary



Viral content creation

Challenges and Controversies

Despite its popularity, Longlish faces significant criticism:
Purist Opposition: Language conservatives argue it "corrupts" both languages



Generational Divide: Older speakers often find it incomprehensible



Standardization Issues: Lack of formal grammar rules creates confusion

However, historical linguists note similar resistance faced by Spanglish and Franglais before their eventual acceptance.

The Future of Longlish

Current trends suggest Longlish will likely evolve in three directions:





Institutional Recognition: Possible inclusion in bilingual education



Literary Applications: Emerging authors experimenting with Longlish poetry



Technological Integration: AI language models developing Longlish processing capabilities

As communication becomes increasingly globalized, such hybrid languages may become the norm rather than the exception.

Conclusion

Longlish represents more than a linguistic curiosity—it embodies the dynamic cultural exchange defining our era. 

While its long-term trajectory remains uncertain, its current vitality demonstrates how languages naturally evolve to meet speakers' needs. 

Rather than fearing such hybridization, we might celebrate it as evidence of human adaptability in an interconnected world.
*/
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <climits>
#include <cctype>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <cmath>
#define Longlish int
#define ll long long
#define IAKIOI return 0;

#define LOCAL //LOCAL_DEBUG交时记得删
// #define int long long //看情况
namespace ly{
    namespace IO{
        #ifndef LOCAL
            constexpr auto maxn = 1 << 20;
            char in[maxn], out[maxn], *p1 = in, *p2 = in, *p3 = out;
            #define getchar() (p1 == p2 && (p2 = (p1 = in) + fread(in, 1, maxn, stdin), p1 == p2) ? EOF : *p1++)
            #define flush() (fwrite(out, 1, p3 - out, stdout))
            #define putchar(x) (p3 == out + maxn && (flush(), p3 = out), *p3++ = (x))
            class Flush{public: ~Flush(){flush();}}_;
        #endif
        namespace usr{
            template <typename type>
            inline type read(type &x){x = 0; bool flag(0); char ch = getchar(); while(!isdigit(ch)) flag ^= ch == '-', ch = getchar(); while(isdigit(ch)) x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar(); return flag ? x = -x : x;}
            template <typename type>
            inline void write(type x){x < 0 ? x = -x, putchar('-') : 0; static short Stack[50], top(0); do Stack[++top] = x % 10, x /= 10; while(x); while(top) putchar(Stack[top--] | 48);}
            inline char read(char &x){do x = getchar(); while(isspace(x)); return x;}
            inline char write(const char &x){return putchar(x);}
            inline void read(char *x){static char ch; read(ch); do *(x++) = ch; while(!isspace(ch = getchar()) && ~ch);}
            template <typename type> inline void write(type *x){while(*x) putchar(*(x++));}
            inline void read(std::string &x){static char ch; read(ch), x.clear(); do x += ch; while(!isspace(ch = getchar()) && ~ch);}
            inline void write(const std::string &x){for(int i = 0, len = x.length(); i < len; ++i)putchar(x[i]);}
            template <typename type, typename...T> inline void read(type &x, T&...y){read(x), read(y...);}
            template <typename type, typename...T>
            inline void write(const type &x, const T&...y){write(x), putchar(' '), write(y...), sizeof...(y) ^ 1 ? 0 : putchar('\n');}
            template <typename type>
            inline void put(const type &x, bool flag = 0){write(x), flag ? putchar('\n') : putchar(' ');}
        }
        #ifndef LOCAL
            #undef getchar
            #undef flush
            #undef putchar
        #endif
    } using namespace IO::usr;
} using namespace ly::IO::usr;
using namespace std;
void read_Longlish(int &a) {
	cin>>a;
}
void write_Longlish(int a) {
	cout<<a;
}
//std::string removeLeadingZeros(std::string num) {
//    num.erase(0, num.find_first_not_of('0'));
//    return num.empty() ? "0" : num;
//}
//
//// 高精度加法
//std::string operator+(std::string num1, std::string num2) {
//    std::string result;
//    int carry = 0;
//    int i = num1.size() - 1;
//    int j = num2.size() - 1;
//    
//    while (i >= 0 || j >= 0 || carry) {
//        int digit1 = (i >= 0) ? (num1[i--] - '0') : 0;
//        int digit2 = (j >= 0) ? (num2[j--] - '0') : 0;
//        int sum = digit1 + digit2 + carry;
//        carry = sum / 10;
//        result.push_back((sum % 10) + '0');
//    }
//    
//    std::reverse(result.begin(), result.end());
//    return removeLeadingZeros(result);
//}
//
//// 高精度减法
//std::string operator-(std::string num1, std::string num2) {
//    if (num1 < num2) return "-" + (num2 - num1);
//    
//    std::string result;
//    int borrow = 0;
//    int i = num1.size() - 1;
//    int j = num2.size() - 1;
//    
//    while (i >= 0 || j >= 0) {
//        int digit1 = (i >= 0) ? (num1[i--] - '0') : 0;
//        int digit2 = (j >= 0) ? (num2[j--] - '0') : 0;
//        digit1 -= borrow;
//        borrow = 0;
//        
//        if (digit1 < digit2) {
//            digit1 += 10;
//            borrow = 1;
//        }
//        result.push_back((digit1 - digit2) + '0');
//    }
//    
//    std::reverse(result.begin(), result.end());
//    return removeLeadingZeros(result);
//}
//
//// 高精度乘法
//std::string operator*(std::string num1, std::string num2) {
//    if (num1 == "0" || num2 == "0") return "0";
//    
//    int m = num1.size(), n = num2.size();
//    std::vector<int> pos(m + n, 0);
//    
//    for (int i = m - 1; i >= 0; i--) {
//        for (int j = n - 1; j >= 0; j--) {
//            int mul = (num1[i] - '0') * (num2[j] - '0');
//            int sum = mul + pos[i + j + 1];
//            pos[i + j] += sum / 10;
//            pos[i + j + 1] = sum % 10;
//        }
//    }
//    
//    std::string result;
//    for (int p : pos) {
//        if (!(result.empty() && p == 0)) {
//            result.push_back(p + '0');
//        }
//    }
//    return result.empty() ? "0" : result;
//}
//
//// 高精度除法(整数部分)
//std::string operator/(std::string num1, std::string num2) {
//    if (num2 == "0") throw std::runtime_error("Division by zero");
//    if (num1 == "0") return "0";
//    if (num2 == "1") return num1;
//    if (num1.size() < num2.size() || (num1.size() == num2.size() && num1 < num2)) return "0";
//    
//    std::string result;
//    std::string current;
//    
//    for (char c : num1) {
//        current.push_back(c);
//        current = removeLeadingZeros(current);
//        int count = 0;
//        
//        while (current.size() > num2.size() || 
//              (current.size() == num2.size() && current >= num2)) {
//            current = current - num2;
//            count++;
//        }
//        
//        result.push_back(count + '0');
//    }
//    
//    return removeLeadingZeros(result);
//}

Longlish.cpp

C++
#include "Longlish.h"
Longlish main() {
	Longlish lyz;
	read_Longlish(lyz);
	write_Longlish(lyz);
	cout<<'\n';
	Longlish aaa;
	char bbb;
	bool ccc;
	read(aaa,bbb,ccc);
	write(aaa,ccc);
	IAKIOI;
}//that`s speak Longlish!
原文
存档评论1 条抓取于