跳到正文

题解

题解 P1000 【超级玛丽游戏】

Lstdo约 1 分钟
原文
文章信息与版本

文章信息

发布
2018年2月5日
收录
2025年12月12日
更新
2026年11月13日
篇幅
约 1 分钟
获赞
1
题目
P1000

版本

  1. v1当前

代码谁都会,这里介绍一种简便方法,不用一行一行复制

1.复制内容到1.txt,最后回车再输入个a表示结束

2.在本地编写cpp文件:

C++
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
    freopen("1.txt","r",stdin);
    freopen("2.txt","w",stdout);
    char s[100];
    while (gets(s)&&s[0]!='a')
        printf("%s\\n",s);
    return 0;
}
  

3.把2.txt的内容复制

C++
#include <cstdio>
using namespace std;
int main()
{
printf("复制的内容");
return 0;
}

提交AC

原文
存档评论1 条抓取于