| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1124 人关注过本帖
标题:这个可是我们的老师都不知道的啊你知道吗?
只看楼主 加入收藏
zh672903
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2005-10-2
收藏
得分:0 
"stdafx.h"这个文件怎么建哪!能不能发过来我瞧瞧哦
2005-11-03 23:35
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
zh672903,
你的老师确实应该下岗了,如果他教你们WindowsProgramming 的话。

你在建立工程时一定出错了,我没有测试你的程序,但一眼看去,程序没有问题。

下面跟你说一下建立工程的步骤(对WindowsApplication 而言)

1) File->New...
2) under Projects select Win32 Application
3) enter your Project name for example: Fun
(Pay Attention:
a) Location is for your Project path, that mean,
you can find all your project files unter this path.
b) unter Platforms, Win32 should be selected
)
4) select An empty project, then press enter Key,
by others press also enter Key
5) File->New...
6) under Files select c++ Source File
7) Enter file name for example: fun
8) Press enter key
9) you can now write your code and compile it und let it run
For your situation, you can copy the code, and paste it to the
code write area, and compile it and let it run.

That is all!!!
Viel Spass!!!




自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2005-11-04 07:43
lisypro
Rank: 4
等 级:业余侠客
威 望:3
帖 子:695
专家分:216
注 册:2005-9-25
收藏
得分:0 

强烈同意KAI的意见

1) File->New...
文件-》新建
2) under Projects select Win32 Application
选工程选项卡,选Win32 Application
3) enter your Project name for example: Fun
输入工程名称:Fun
(Pay Attention:
注意:
a) Location is for your Project path, that mean,
1)location 是你的工程的路径,也就是说你的工程的所有文件都在这个目录中
you can find all your project files unter this path.

b) unter Platforms, Win32 should be selected
2)平台 必须选win32
)

4) select An empty project, then press enter Key,
选择空工程,按回车
by others press also enter Key

5) File->New...
文件-》新建
6) under Files select c++ Source File
选择文件选项卡,选中C++ Source File
7) Enter file name for example: fun
输入文件名:fun
8) Press enter key
回车
9) you can now write your code and compile it und let it run
现在,你可以在写程序了,
For your situation, you can copy the code, and paste it to the
或者拷贝代码到write area,编译运行。
code write area, and compile it and let it run.
顺便学一下英语,唉 尽苍生是鸟语!!!!!!


长期承接管理系统
代做各种vb/ / vc小程序
QQ:82341763
手机:13623290828
群号 11619730
2005-11-06 11:41
lxc20082008
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-11-4
收藏
得分:0 
圣骑士,你胡说,你试一下,看vc编译的时候能不能找到stdafx.h,它是mfc的玩意,你混到api里面了,我认为这种情况很正常,也不是人家老师下岗,每种东西都有它的不稳定性,我也有这种情况,上一次也是只能编译不能运行,但这一次能编译也能运行了,

2005-11-06 18:00
踏魔狼
Rank: 6Rank: 6
等 级:贵宾
威 望:24
帖 子:1322
专家分:33
注 册:2005-9-22
收藏
得分:0 
难道说你编Win32程序的时候没有看见过这个文件吗?

=×&D o I p R e E n C g T l X&×=
2005-11-10 19:07
zh672903
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2005-10-2
收藏
得分:0 
各位老大!不管怎样,我都得谢谢您们.我编译的时候是直接在C++ Source File里写的,然后直接编译,就是这些步骤了,我根本没有管什么win32,是不是有点傻?首先,我是在c++程序设计的基础上学习vc++面向对象与可视化程序设计的.看了各位老大的建议,我回去试试.再次感谢
2005-11-11 22:07
快速回复:这个可是我们的老师都不知道的啊你知道吗?
数据加载中...
 
   



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

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