| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 580 人关注过本帖
标题:小弟用C语言写了一个程序 还请各位来看 并希望各位指出可更好的地方 !
只看楼主 加入收藏
逍风
Rank: 2
来 自:中国 江西
等 级:论坛游民
帖 子:88
专家分:84
注 册:2015-3-7
结帖率:90.91%
收藏
已结贴  问题点数:5 回复次数:3 
小弟用C语言写了一个程序 还请各位来看 并希望各位指出可更好的地方 !
/**** I love you_ 999999 ****/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int fc_1();
int fc_2();
/*** 主函数 ***/
int main()  
{
    int x,y;
    system("title I love you 1314!");
    system("color F5");
    printf("请耐心看完哦:\n");
     printf("    I love you: \n");
       for
          (x=0;x<=1314521;x++)
        fc_1(x);
     printf("\n");
     printf("                                     一生一世我爱你!\n");
     printf("     I hate you: \n");
         for
           (y=1000000;y>=0;y--)
           fc_2(y);
     printf("\n");
     printf("                                     我爱你,胜过我恨你!\n");
        for
           (x=0;x<=15;x++)
             printf(" ");
              printf("You are my little dear little apple\n");
              printf("\n");
        for
           (x=0;x<=21;x++)
             printf(" ");
              printf("Just love the sky the moust beautiful clods\n");
              printf("\n");
        for
           (x=0;x<=19;x++)
             printf(" ");
              printf("你是我的小呀小苹果,\n");
              printf("\n");
        for
           (x=0;x<=15;x++)
             printf(" ");
              printf("怎么爱你呀都不嫌多。\n");
        for
           (x=0;x<=23;x++)
             printf(" ");
              printf("5\n");
        for
           (x=0;x<=26;x++)
             printf(" ");
              printf("2\n");
        for
           (x=0;x<=29;x++)
             printf(" ");
              printf("0\n");
        for
           (x=0;x<=32;x++)
             printf(" ");
              printf("1 ---<you are just my one baby !>--- ");
        for
           (x=0;x<=39;x++)
             printf(" ");
              printf("3\n");
        for
           (x=0;x<=26;x++)
             printf(" ");
              printf("1\n");
        for
           (x=0;x<=23;x++)
             printf(" ");
              printf("4\n");
   printf("\n");
     printf("    I miss you everyday !\n");
   system("pause");
   exit(0);
}
fc_1(int x)
{
          printf("              %d\r",x);
          return 0;
        
}
fc_2(int y)
{
          printf("               %d\r",y);
          return 0;
}
搜索更多相关主题的帖子: include system C语言 color title 
2015-03-10 12:37
whc19940817
Rank: 1
等 级:新手上路
帖 子:5
专家分:2
注 册:2015-3-8
收藏
得分:2 
好像错误很多,我修改了部分,不过有/**** I love you_ 999999 ****/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int fc_1();
int fc_2();
/*** 主函数 ***/
int main()  
{
    int x,y;
    system("title I love you 1314!");
    system("color F5");
    printf("请耐心看完哦:\n");
     printf("    I love you: \n");
       for
          (x=0;x<=1314521;x++)
        fc_1();
     printf("\n");
     printf("                                     一生一世我爱你!\n");
     printf("     I hate you: \n");
         for
           (y=1000000;y>=0;y--)
           fc_2();
     printf("\n");
     printf("                                     我爱你,胜过我恨你!\n");
        for
           (x=0;x<=15;x++)
             printf(" ");
              printf("You are my little dear little apple\n");
              printf("\n");
        for
           (x=0;x<=21;x++)
             printf(" ");
              printf("Just love the sky the moust beautiful clods\n");
              printf("\n");
        for
           (x=0;x<=19;x++)
             printf(" ");
              printf("你是我的小呀小苹果,\n");
              printf("\n");
        for
           (x=0;x<=15;x++)
             printf(" ");
              printf("怎么爱你呀都不嫌多。\n");
        for
           (x=0;x<=23;x++)
             printf(" ");
              printf("5\n");
        for
           (x=0;x<=26;x++)
             printf(" ");
              printf("2\n");
        for
           (x=0;x<=29;x++)
             printf(" ");
              printf("0\n");
        for
           (x=0;x<=32;x++)
             printf(" ");
              printf("1 ---<you are just my one baby !>--- ");
        for
           (x=0;x<=39;x++)
             printf(" ");
              printf("3\n");
        for
           (x=0;x<=26;x++)
             printf(" ");
              printf("1\n");
        for
           (x=0;x<=23;x++)
             printf(" ");
              printf("4\n");
   printf("\n");
     printf("    I miss you everyday !\n");
   system("pause");
   return(0);
}
int  fc_1(int x)
{
          printf("              %d\r",x);
          return 0;
        
}
 int  fc_2(int y)
{
          printf("               %d\r",y);
          return 0;
} 点,还是没有调试过去
2015-03-10 19:55
逍风
Rank: 2
来 自:中国 江西
等 级:论坛游民
帖 子:88
专家分:84
注 册:2015-3-7
收藏
得分:0 
回复 2楼 whc19940817
您好! 嗯,您可以告诉我您把哪里改了么,谢谢!、

<%谦虚学习,用心做人,没有最好,只有更好!%>
2015-03-11 10:37
孤单忧怜
Rank: 1
等 级:新手上路
帖 子:5
专家分:7
注 册:2015-3-9
收藏
得分:2 
我想for循环语句的括号应写在同一行!!!
2015-03-11 12:42
快速回复:小弟用C语言写了一个程序 还请各位来看 并希望各位指出可更好的地方 !
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027938 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved