| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 442 人关注过本帖
标题:求助!这段代码怎么运行不了?
只看楼主 加入收藏
yppsniper
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2015-5-5
结帖率:0
收藏
 问题点数:0 回复次数:2 
求助!这段代码怎么运行不了?
#include <stdioi.h>
int main()
{
    cout <<"yppsniper"<<endl;
}
搜索更多相关主题的帖子: include 
2015-05-05 13:43
Erlosshex
Rank: 2
等 级:论坛游民
威 望:1
帖 子:17
专家分:10
注 册:2014-5-24
收藏
得分:0 
/* C Version */
#include<stdio.h>

int main()
{
    printf("yppsniper\n");
    return 0;
}

// C++ Version
#include<iostream>

using namespace std;

int main()
{
    cout<<"yppsniper"<<endl;
    return 0;
}
2015-05-05 14:14
yppsniper
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2015-5-5
收藏
得分:0 
回复 2楼 Erlosshex
多谢哥们儿!,那这一个怎么改呢???
YPP求帮忙。帮我改一个程序。谢谢!
//C语言文件操作
#include <stdio.h>
#include <stdlib.h>
int main()
{
    FILE *in,*out;
    if((in=fopen("C:\\Users\\YPP\\Desktop\\input.txt","r"))==NULL)  //读
    {
    printf("Cannot open the input.txt !\n");
    exit(0);
    }
    if((out=fopen("C:\\Users\\YPP\\Desktop\\output.txt",‘w’))==NULL)  //写
    {
    printf("Cannot open the output.txt !\n");
    exit(0);
    }
    while(!feof(in))
        putc(getc(in),out);
    putchar(10);
    fclose(in);
    fclose(out);
    return 0;
}

微信 yppsniper
2015-05-05 14:44
快速回复:求助!这段代码怎么运行不了?
数据加载中...
 
   



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

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