C ++很复杂,C很臃肿。 [英] C++ is complicated and C is bloated.

查看:92
本文介绍了C ++很复杂,C很臃肿。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在阅读有关perl的书籍,这可能不像C ++那样强大,但至少比C& C +更强大。很容易从手册中学到

。我也在购买关于C ++的书籍,以及关于算法的书籍。对于C来说,这是一个很好的学习方法。但是我一直在努力学习这个书。

从第1天开始学习unix,linux和C ++。即使我第一次打开一台

windows机器,我也幻想着运行我自己的unix服务器。现在我

每月为一个linux shell盒子上的帐户支付一个很好的费率,

webspace。我有一台运行UNIX的iMac,但也可以处理以前只能在Windows上做的所有艺术品的b $ b。 iMac可用的软件比Linux更多,而且操作系统更好,硬件也更好。我买不起购买iMac超级计算机网络或来自ISP的租用线路,所以

我不会成为下一个YouTube, MySpace,或谷歌,但我可以在
最少学习如何编写perl,cgi和C ++代码。我知道外壳的来龙去脉,有点关于什么是在底层运行,我知道怎么用
使用Vi和Emacs,我知道当我需要运行认为需要root的程序时,如何绕过我的系统管理员

。还有很多我需要学习的东西,但是有什么好玩的呢,就是他们不会在学校教给你。学校就在那里激励着你,而且你需要亲自动手去了解它。只需获得一台linux

机器并学习交易技巧,从unixly(希望FreeBSD而不是Linux)购买unix上的书籍。你现在甚至不需要一个

iMac。


但是我在哪里可以找到一本书来演示如何制作

紧凑的算法,包括向量,字符串,列表,映射,以及通常使用C ++的
容器?我需要学习使用CONTAINERS,

和LOW LEVEL CONTROLS,以及了解ITERATORS&一个指针。一旦你了解了所有这些面向对象的类模型和

模板和结构,以及所有这些都落实到位。但是我需要通过实例来学习,并将我正在学习的内容与旧的实践进行比较。实际上,我想到了C ++。这不是很复杂,但是我花了好几年时间来理解

基础知识。希望我甚至可以为具有

CGI的网站编写C ++后端,甚至可能有一天会编写我自己的网络服务器代码,而不需要
甚至需要CGI作为一个中间人。

So I''m reading books about perl, which may not be quite as powerful as
C++ but at least has more power than C & is very easy to learn from
the manuals. I''m also buying books on C++, and books about algorithms
for C. It isn''t easy to learn it though, and I have been trying to
learn unix, linux, and C++ since day 1. Even when I first turned on a
windows machine I fantasized about running my own unix server. Now I
pay a good rate every month for an account on a linux shell box, with
webspace. And I have an iMac that runs UNIX, but can also handle all
of the artistic things you could only do on windows before. There is
more software available for iMac''s than there is for linux, and the
operating system is better, much better hardware too. I can''t afford
to buy an iMac supercomputer network, or a leased line from an ISP, so
I''m not going to be the next YouTube, MySpace, or Google, but I can at
least learn how to code perl, cgi, and C++. I know the ins and outs
of the shell, a bit about what''s running under the hood, I know how to
use Vi and Emacs, and I know how to get around my system administrator
when I need to run programs that think they need root. There is a lot
more I need to learn, but what''s so fun about it is they don''t teach
it to you in school. School is just there to inspire you, and you
have to get your hands dirty to learn about it. Just get a linux
machine and learn the tricks of the trade, buy the books on unix from
Orielly (Hopefully FreeBSD instead of Linux). You don''t even need an
iMac at this point.

But where on earth can I find a book that demonstrates how to make
tight compact algorithms with vectors, strings, lists, maps, and
containers in general with C++? I need to learn to use CONTAINERS,
and LOW LEVEL CONTROLS, and Understand ITERATORS & POINTERS. Once you
understand all of that the object oriented model of classes and
templates, and structures, and all of that falls into place. But I
need to learn by example, and compare what I''m learning to the old
bloated way of doing it in C. Actually come to think of it C++ isn''t
that complicated, but it has just taken me years to understand the
basics. Hopefully I''ll even be writing C++ backends for websites with
CGI, and maybe even one day will code my own webserver that doesn''t
even need CGI as a middle man.

推荐答案

3月30日下午1:30,CoreyWhite < CoreyWh ... @ gmail.comwrote:
On Mar 30, 1:30 pm, "CoreyWhite" <CoreyWh...@gmail.comwrote:

但是我在哪里可以找到一本书来演示如何制作

紧带有向量,字符串,列表,映射的紧凑算法,以及通常使用C ++的
容器?
But where on earth can I find a book that demonstrates how to make
tight compact algorithms with vectors, strings, lists, maps, and
containers in general with C++?



我猜不上alt.magick。你能否请停止交叉发布

这个问题?

I''m guessing NOT on alt.magick. Can you please stop cross-posting
this drivel?


" CoreyWhite" < Co ******** @ gmail.comwrote in message

news:11 ********************* @ d57g2000hsg.googlegro ups.com ...

:但我在哪里可以找到一本书来演示如何制作

:带有向量,字符串,列表的紧凑算法,地图和

:一般用C ++的容器?


要制作紧凑而紧凑的算法,你应该先学习

基础知识。

对于聪明而独立的人,我建议您阅读Knuth的计算机编程艺术来开始

。我13岁的时候开始了,这是一个非常棒的丰富体验。

这是最好的,但很多其他关于算法的书籍

和数据结构足够好。


:我需要学习使用CONTAINERS,

:和低水平控制,以及了解ITERATORS&一个指针。一旦你了解b $ b:了解所有这些面向对象的类模型和

:模板和结构,以及所有这些都落实到位。但是我需要通过实例来学习,并将我正在学习的内容与旧的比较。
:在C中进行臃肿的方式。


" Accelerated C ++"是一本很好的入门书,专注于C ++语言提供的高级

抽象(而不是它的b方面)。


:实际上是想到它C ++不是没有b $ b:这很复杂,但它花了我多年时间来理解

:基础知识。希望我甚至会为使用

:CGI的网站编写C ++后端,甚至可能有一天会编写我自己的网络服务器,而不是b $ b:甚至需要CGI作为中间人。


如果你学习更多关于网络服务器的知识,你会发现你可能不会想要b $ b不想打扰从头开始写一个。


-
http://ivan.vecerina.com/contact/?subject=NG_POST < - 电子邮件联系表格

Brainbench MVP for C ++< http://www.brainbench.com

"CoreyWhite" <Co********@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
: But where on earth can I find a book that demonstrates how to make
: tight compact algorithms with vectors, strings, lists, maps, and
: containers in general with C++?

To make tight and compact algorithms, you should start by learning
the basics.
For someone who is bright and independent, I would recommend starting
with reading Knuth''s The Art Of Computer Programming. I was 13 when
I started, and it has been a great and enriching experience.
This is simply the best, but many other books about algorithms
and data structures are good enough.

: I need to learn to use CONTAINERS,
: and LOW LEVEL CONTROLS, and Understand ITERATORS & POINTERS. Once you
: understand all of that the object oriented model of classes and
: templates, and structures, and all of that falls into place. But I
: need to learn by example, and compare what I''m learning to the old
: bloated way of doing it in C.

"Accelerated C++" is a good introductory book focusing on high-level
abstractions offered by the C++ language (rather than the C side of
it).

: Actually come to think of it C++ isn''t
: that complicated, but it has just taken me years to understand the
: basics. Hopefully I''ll even be writing C++ backends for websites with
: CGI, and maybe even one day will code my own webserver that doesn''t
: even need CGI as a middle man.

If you study more about web servers, you''ll find out that you probably
don''t want to bother writing one from scratch.

--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <http://www.brainbench.com

在文章< 11 ********************* @ d57g2000hsg.googlegroups中。 com>,

CoreyWhite< Co ******** @ gmail.comwrote:
In article <11*********************@d57g2000hsg.googlegroups. com>,
CoreyWhite <Co********@gmail.comwrote:

>所以我''我正在阅读有关perl的书籍,它可能不如C ++强大,但至少比C
更强大
>So I''m reading books about perl, which may not be quite as powerful as
C++ but at least has more power than C



C和C ++和perl都是图灵完成 - 任何确定性的

计算可以在任何一个中表达和计算(给定足够的时间和内存。)就计算理论而言,

它们中没有一个比另一个更强大。如果你不是使用计算理论作为你的衡量标准,那么哪种语言更强大,那么你最好更具体地说明它是什么?

表示语言具有一定的权力。

C and C++ and perl are all Turing Complete -- any deterministic
calculation can be expressed and computed in any of them (given
enough time and memory.) As far as computing theory is concerned,
none of them are more powerful than the other. If you aren''t
using computing theory as your metric for which language is more
powerful, then you had best be more specific about what it
means for a language to have certain amounts of power.


>&从手册中学习非常容易。
>& is very easy to learn from
the manuals.



多年来作为perl程序员,我可以自信地说,如果你发现perl易学,那么
你不明白

呢! perl在许多运营商的角落里有很多隐藏的微妙之处。 perl不是由任何理论或任何正式的b $ b规范定义的,并且没有由其文档定义:在这种情况下perl被定义为/ b $ b perl实现实际上做了什么(无论是否b $ b这样做是否有意义。)当我说已定义时,我不是在说:

松散地说:我的意思是Larry Wall有具体说明是定义语言的

实现。


如果你发现perl非常容易学习,请搜索perl打高尔夫球

竞赛,其目标是以最短的程序生成具有

的特定输出。看看你是否能理解获奖作品中的任何



(不要误解我:我不会把perl放下来。)

-

原型是其克隆的超类型。 - maplesoft

As a perl programmer for a number of years, I can say with confidence
that if you are finding perl easy to learn, then you don''t understand
it yet! perl has a lot of hidden subtleties in the corner cases of its
many operators. perl is not defined by any theory or by any formal
specification, and not defined by its documentation: perl is defined
in such cases by what the perl implementation actually does (whether it
makes sense to do it or not.) When I say "is defined", I''m not speaking
loosely: I mean that Larry Wall has said specifically that it is the
implementation that defines the language.

If you are finding perl very easy to learn, search for perl "golfing"
contests, where the goal is to produce a specific output with
the shortest possible program. See if you can understand any
of the winning entries.

(Don''t misunderstand me: I''m not putting perl down.)
--
Prototypes are supertypes of their clones. -- maplesoft


这篇关于C ++很复杂,C很臃肿。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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