正确的C ++教程第5部分“如何使用库”可用(Windows,mingw / msvc / std) [英] Correct C++ tutorial part 5 "How to use libraries" available (Windows, mingw/msvc/std)

查看:51
本文介绍了正确的C ++教程第5部分“如何使用库”可用(Windows,mingw / msvc / std)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过的Correct C ++教程的第五部分现已推出,

虽然现在只有Word格式(如果没有Word则使用免费的Open Office),以及

此外,它尚未经过审核 - 欢迎评论!


如何使用图书馆

< url:http: //home.no.net/dubjai/win32cpptut/w32cpptut_01_05.doc>


一般网址:


< url:http:/ /home.no.net/dubjai/win32cpptut/html/>


除了
$ b之外还提供第1部分和第2部分作为网页(HTML) $ b原始Word文档的第1部分到第5部分。


第五部分是非常具体的,非常面向工具,因此可能更难(b $ b)写起来要比以前的部分要困难和耗时多了b $ b,因此我认为还有更高的机会来控制错误,次优的方式做事等等。


内容,第5部分:

1 [背景:]班级,成员&可选参数。

2使用库指定的类型。

3查找库(或:找到一组库...)。

4使用make-tool构建一个库(长)。

5为GNU工具使用类似Unix的构建环境(长)。

6第二个库同样的东西(它现在更容易!)。

7手动创建一个库(第三次是魅力!)。

8修复无效的C ++源代码(旧的iostream问题)。

9使用库:以编程方式创建图片。

10使用头文件包装器(介绍C ++)预处理器)。

11使用编译器响应文件。


和以前一样,邀请注释的点是_fix_任何不正确的,或者

演示文稿,或者其他什么;你的输入很有价值,因此你可以帮助那些偶然发现本教程并用它来学习C ++的人。


提前谢谢,


- Alf


-

答:因为它弄乱了人们通常阅读文字的顺序。 />
问:为什么这么糟糕?

A:热门发布。

问:usenet上最烦人的事情是什么?电子邮件?

The fifth part of my attempted Correct C++ tutorial is now available,
although for now only in Word format (use free Open Office if no Word), and
also, it''s not yet been reviewed at all -- comments welcome!

"How to use libraries"
<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_05.doc>

General URL:

<url: http://home.no.net/dubjai/win32cpptut/html/>

which provides parts 1 and 2 as web-pages (HTML) in addition to the
original Word documents of parts 1 through 5.

This fifth part is very concrete, very tool-oriented, and is therefore
possibly more difficult (it was far more difficult and time-consuming
to write than the earlier parts), and I think therefore also has a higher
chance of containing errors, sub-optimal ways of doing things, etc.

Contents, part 5:
1 [Background:] Classes, members & optional arguments.
2 Use library-specified types.
3 Find a library (or: find a set of libraries...).
4 Use a make-tool to build a library (long).
5 Use a Unix-like build environment for the GNU tools (long).
6 Do the same things for a second library (it''s easier now!).
7 Create a library manually (the third time''s the charm!).
8 Fix invalid C++ source code (the "old iostream" problem).
9 Use a library: create a picture programmatically.
10 Use header file wrappers (introducing the C++ preprocessor).
11 Use compiler response files.

As before, the point of inviting comments is to _fix_ anything incorrect, or
the presentation, or whatever; your input is valuable, and you can thereby
help those who stumble across this tutorial and use it to learn C++.

Thanks in advance,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

推荐答案

Alf P. Steinbach写道:
Alf P. Steinbach wrote:
我尝试的正确C ++教程的第五部分现在是可用,
虽然现在只有Word格式(如果没有
Word,使用免费的Open Office),而且,它还没有被审查过 - 欢迎评论!

如何使用图书馆
< url:http://home.no.net/dubjai/win32cpptut/w32cpptut_01_05.doc>

一般网址:

< url:http://home.no.net/dubjai/win32cpptut/html/>

w除了第1部分到第5部分的原始Word文档之外,hich还提供了第1部分和第2部分作为网页(HTML)。

第五部分非常具体,非常面向工具,并且是
因此可能更难(写入比前面的部分要困难和耗时),因此我认为包含错误的可能性也高出
,sub - 最佳的做事方式等等。
The fifth part of my attempted Correct C++ tutorial is now available,
although for now only in Word format (use free Open Office if no Word), and also, it''s not yet been reviewed at all -- comments welcome!

"How to use libraries"
<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_05.doc>

General URL:

<url: http://home.no.net/dubjai/win32cpptut/html/>

which provides parts 1 and 2 as web-pages (HTML) in addition to the
original Word documents of parts 1 through 5.

This fifth part is very concrete, very tool-oriented, and is therefore possibly more difficult (it was far more difficult and time-consuming
to write than the earlier parts), and I think therefore also has a higher chance of containing errors, sub-optimal ways of doing things, etc.




你好阿尔夫,这是非常好的,但你不认为你应该潜入

例如bbasics上课之前的类和其他语言语义

创建库等...?

我更希望如果这是第10章而不是第5章...


托马斯


-
www.frostinnovation.com 掌上电脑服务系统提供商



Howdy Alf, this is very good, but don''t you think you should dive into
the bbasics of e.g. classes and other language semantics before going
into creating libraries etc...?
I would prefer if this was chapter 10 maybe instead of chapter 5...

Thomas

--
www.frostinnovation.com THE Pocket PC Service System Provider


* Thomas Hansen:
* Thomas Hansen:

你好阿尔夫,这是非常好的,但你不觉得你应该潜入
例如bbasics类和其他语言语义在进入创建库等之前......?


好​​吧,或者使用非常特定于平台的示例(例如,

Windows API元文件)或者只是非常非常枯燥的例子,或者写一些

易于使用的支持库,可能还有安装程序...


我写了一个简单的XBM图像生成器(一个XBM图像文件很纯粹文本,

实际上是C源代码,这意味着std :: cout是你需要的所有工具

生成一个XBM图像文件),但是黑/白很无聊互联网

资源管理器6.x似乎并不支持这种格式,尽管据说几乎所有其他浏览器都支持这种格式。我知道早期版本支持XBM for

内部网页脚本。也许IE 6仍然没有检查。


但是我决定去网上出去的主要原因是获取一个库

是_get real_,因为它是使用真正的

代码驱动学习曲线的实际要求(根据我的经验,就是这样) :

需要引入的功能和工具和技术以及顺序是什么。

在C#+ .NET中生成PNG图片是微不足道的,这是一个初学者的任务。它在b ++中不应该那么难,而且它真的不是:它只是工具

使用(一次)安装必要的图书馆有点复杂。


如果这是第10章而不是第5章我更喜欢...

Howdy Alf, this is very good, but don''t you think you should dive into
the bbasics of e.g. classes and other language semantics before going
into creating libraries etc...?
Well it''s either that or use very platform-specific examples (e.g.
Windows API metafiles) or only very very dull examples or, write some
articially easy-to-use support libraries, perhaps with installer...

I did write a simple XBM image generator (an XBM image file is pure text,
actually C source code, which means std::cout is all the tool you need to
generate an XBM image file), but black/white is boring and Internet
Explorer 6.x doesn''t seem to support the format, although reportedly
almost all other browsers do. I know earlier versions supported XBM for
internal web-page scripting. Perhaps IE 6 does still, haven''t checked.

But the main reason I decided to go "out on the net" to fetch a library
was to _get real_, because it''s the actual requirements of using real
code that drives the learning curve (in my experience, that is): which
features and tools and techniques need to be introduced and in what order.
Generating a PNG picture is trivial in C# + .NET, a beginner''s task. It
shouldn''t be that hard in C++, and it really isn''t: it''s just the tool
usage to (once) install the necessary libraries that is a bit complex.

I would prefer if this was chapter 10 maybe instead of chapter 5...



$ b $嘿。 :-)


-

答:因为它弄乱了人们通常阅读文本的顺序。

问:为什么这么糟糕?

A:热门发布。

问:usenet和电子邮件中最烦人的是什么?



Heh. :-)

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


al***@start.no (Alf P. Steinbach)在留言中写道:< 42 ************** @ news.individual.net> ...
al***@start.no (Alf P. Steinbach) wrote in message news:<42**************@news.individual.net>...
* Thomas Hansen:
* Thomas Hansen:

Howdy Alf, this is very good, but don''t you think you should dive into
the bbasics of e.g. classes and other language semantics before going
into creating libraries etc...?



那就是它或者使用特定于平台的例子(例如
Windows API元文件)或者只是非常非常枯燥的例子,或者写一些易于使用的支持库,可能还有安装程序...



Well it''s either that or use very platform-specific examples (e.g.
Windows API metafiles) or only very very dull examples or, write some
articially easy-to-use support libraries, perhaps with installer...



可能最初的反应是我无法想到任何类型的观众

将有耐心经历所需的所有步骤

下载2或3个独立的库,配置/生成makefile文件

构建它们(即使有助手),甚至将源代码修改为

让它编译,但不知道成员函数是什么,或者

甚至如何编写一个函数(你在结尾处提到的下一步是

)。


话虽如此,我实际上很欣赏这个教程

并没有尝试让一切都变得更好k超级简单 - 老实说 -

识别并解决了许多程序员在开发任何级别的应用程序时必须面对的典型复杂问题

复杂程度。但托马斯是对的,它基本上是第10章,而不是第5章。


是的,很不幸的是那里是非常非常简单的图形

格式,可以由最基本的C ++程序生成

并且大多数Windows用户都可以在不下载的情况下查看<另外一个软件,但是如果你真的很想让用户很快就能生成图形图像,那么我建议不要使用

下载一个适用于Windows的XBM或PNM查看器比一个可怜的新手程序员目前所期待的所有内容都要少工作!


Might initial reaction was that I can''t think of any sort of audience
that would have the patience to go through all the steps required to
download 2 or 3 separate libraries, configure/produce makefiles to
build them (even with a helping hand), and even modify the source to
get it to compile, but would not know what a member function was, or
even how to write a function (which you mention as the "next step" at
the end).

Having said that, I actually appreciate the fact that this tutorial
doesn''t try to make everything look super simple - it all-too-honestly
recognises and addresses many of the typical complications that
programmers have to face when developing applications of any level of
sophistication. But Thomas is right, it''s basically a chapter 10
tutorial, not a chapter 5 one.

Yes, it''s unfortunate that there isn''t a very very simple graphics
format that could both be generated by the most basic of C++ programs
and that most Windows users would be able to view without downloading
additional software, but if you really are keen to get users to
generate graphical images that soon, then I''d suggest having to
download an XBM or PNM viewer for Windows is a loss less work than
everything you''re currently expecting of the poor novice programmer!


这篇关于正确的C ++教程第5部分“如何使用库”可用(Windows,mingw / msvc / std)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆