| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 705 人关注过本帖
标题:程序封装报错~~但是还能运行~~ide是code blocks
取消只看楼主 加入收藏
pokerleejack
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2013-9-13
结帖率:100%
收藏
已结贴  问题点数:10 回复次数:0 
程序封装报错~~但是还能运行~~ide是code blocks
#include<stdio.h>
#define SIZE 20
int main()
{
    int value_count=0;
    float fp1=0.0;
    int i=0;
    int j=0;
    char word1[SIZE]=" ";
    char word2[SIZE]=" ";
    int byte_count=0;
    value_count=scanf("%f %d %d %[abcdefghijklmnopqrstuvwxyz] %*d %s %n",
                      &fp1,&i,&j,word1,word2,&byte_count);
    printf("\nCount of bytes read = %d\n",byte_count);
    printf("\nCount of values read = %d\n",k);
    printf("\nfp1=%f i=%d j=%d",fp1,i,j);
    printf("\nword1=%s word2=%s\n",word1,word2);
    return 0;
}
报错内容:k undeclared(first use in the function)
搜索更多相关主题的帖子: values include 
2013-09-15 10:44
快速回复:程序封装报错~~但是还能运行~~ide是code blocks
数据加载中...
 
   



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

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