我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

本页主题: vc编译后组建*.exe出错提示这样 显示签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

qkshan



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
家族: 单身贵族
发贴: 686
威望: 0
浮云: 1422
在线等级:
注册时间: 2006-12-29
最后登陆: 2011-11-10

5come5帮你背单词 [ elaborate /i'læbərit/ v. 详细说明,阐述,精心制作;a. 说尽的,复杂的,精心制作的 ]


vc编译后组建*.exe出错提示这样

编译可以通过,一组建就出问题,提示如下:

Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol [url=mailto:_WinMain@16]_WinMain@16[/url]
Debug/StudentInfo.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.


建项目建错了,汗,应该是win32控制台


[ 此帖被qkshan在2008-03-28 09:46 PM重新编辑 ]
附件: StudentInfo.rar (30 K) 下载次数:1

顶端 Posted: 2008-03-28 10:40 | [楼 主]
路客与刀客



性别: 帅哥 状态: 该用户目前不在线
等级: 希望之光
家族: 梦魇图腾
发贴: 1980
威望: 0
浮云: 1186
在线等级:
注册时间: 2007-01-02
最后登陆: 2008-06-29

5come5帮你背单词 [ psychology /sai'koləd3əi/ n. 心理学 ]


这样就行了。
Quote:

#include    <stdio.h>
#define CLASS_SIZE 3

typedef unsigned long ulong;

typedef struct tagStudentT {
    char name[20];
    ulong number;  //max size=4294967295;
    float score;                       
    }StudentT;

void AddStu(StudentT *p)

    int i;
    for(i=0;i<CLASS_SIZE;i++)
    {
        printf("please enter a new student'  name number score:\n");
        scanf("%s %ld %f",p.name,&(p.number),&(p.score));
    }
}

void PrintStu(StudentT *p)
{   
        int i;
        int Length=CLASS_SIZE;

       printf("Name            Number            Score \n");
      
     for(i=0;i<Length;i++)
       {
        printf("%-25s%-25lu    %5.1f\n",  p.name,  p.number,  p.score);
       }

        //getch();
}

int  main(int argc,char *argv[])
{
    StudentT classmates[CLASS_SIZE];

    AddStu (classmates);    /* add a studen's info to the classes! */

    PrintStu(classmates);    /*print the student's info to the screen*/

    return 0;

}
附件: Cpp1.rar (1 K) 下载次数:1

顶端 Posted: 2008-03-28 12:41 | [1 楼]
我来我网·5come5 Forum » 程序员之家

Total 0.016295(s) query 5, Time now is:05-10 05:04, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号