首页 > 编程语言 > 详细

C语言--乱写C语言

时间:2015-06-03 23:19:18      阅读:328      评论:0      收藏:0      [点我收藏+]
技术分享 C语言的语法太枯燥了 换个写法
 
#include <stdio.h> 
#include<stdlib.h>


#define end }
#define if(x) if (x){
#define then


#define while(x) while(x){

#define function(x) void function(x){
#define else }else{
#define sd scanf("%d",&x);
#define s(a) scanf("%d",&a);
#define p(a) printf("%d",a);
#define main int main(){
#define pend system("pause");return 0;}
#define var(a) int a;
#define loop(x) for(i=0;i<x;i++){
#define arr(x) arr[x]

//可以乱写的C语言,代码如下:
function(int x)

    if (x > 5) then

    else

    end

    while (x <= 5) then

    end

    sd

end


main

    //从键盘输入5个整数。然后输出不为0的值
    var (arr[10])
    var    (m)
    var    (i)
    loop (5)
        s(arr(i))

    end
    loop(5)
        if (arr(i)!=0 ) then
            p(arr(i))
        end
    end
pend

C语言--乱写C语言

原文:http://www.cnblogs.com/xcr1234/p/4550412.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!