标题:程序封装报错~~但是还能运行~~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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-420594-1-1.html




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

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