毕业论文外文翻译-C#.docx
《毕业论文外文翻译-C#.docx》由会员分享,可在线阅读,更多相关《毕业论文外文翻译-C#.docx(8页珍藏版)》请在冰点文库上搜索。
WhereC#FitsIn
Inonesense,C#canbeseenasbeingthesamethingtoprogramminglanguagesas.NETistotheWindowsenvironment.JustasMicrosofthasbeenaddingmoreandmorefeaturestoWindowsandtheWindowsAPIoverthepastdecade,VisualBasicandC++haveundergoneexpansion.AlthoughVisualBasicandC++haveendedupashugelypowerfullanguagesasaresultofthis,bothlanguagesalsosufferfromproblemsduetothelegaciesofhowtheyhaveevolved.
InthecaseofVisualBasic6andearlier,themainstrengthofthelanguagewasthefactthatitwassimpletounderstandanddidn'tmakemanyprogrammingtaskseasy,largelyhidingthedetailsoftheWindowsAPIandtheCOMcomponentinfrastructurefromthedeveloper.ThedownsidetothiswasthatVisualBasicwasnevertrulyobject-oriented,sothatlargeapplicationsquicklybecomedisorganizedandhardtomaintain.Aswellasthis,becauseVisualBasic'ssyntaxwasinheritedfromearlyversionsofBASIC(which,inturn,wasdesignedtobeintuitivelysimpleforbeginningprogrammerstounderstand,ratherthantowritelargecommercialapplications),itdidn'treallylenditselftowell-structuredorobject-orientedprograms.
C++,ontheotherhand,hasitsrootsintheANSIC++languagedefinition.Itisn'tcompletelyANSIcompliantforthesimplereasonthatMicrosoftfirstwroteitsC++compilerbeforetheANSIdefinitionhadbecomeofficial,butitcomesclose.Unfortunately,thishasledtotwoproblems.First,ANSIC++hasitsrootsinadecade-oldstateoftechnology,andthisshowsupinalackofsupportformodemconcepts(suchasUnicodestringsandgeneratingXMLdocumentation),andinsomearchaicsyntaxstructuresdesignedforthecompilersofyesteryear(suchastheseparationofdeclarationfromdefinitionofmemberfunctions).Second,MicrosofthasbeensimultaneouslytryingtoevolveC++intoalanguagethatisdesignedforhigh-performancetasksonWindows,andinordertoachievethatthey'vebeenforcedtoaddahugenumberofMicrosoft-specifickeywordsaswellasvariouslibrariestothelanguage.
TheresultisthatonWindows,thelanguagehasbecomeacompletemess.JustaskC++developershowmanydefinitionsforastringtheycanthinkof:
char*,LPTSTR,string,CString(MFCversion),CString(WTLversion),wchart*,OLECHAR*,andsoon.
Nowenter.NET一acompletelynewenvironmentthatisgoingtoinvolvenewextensionstobothlanguages.MicrosofthasgottenaroundthisbyaddingyetmoreMicrosoft-specifickeywordstoC++,andbycompletelyrevampingVisualBasicintoVisualBasic.NET,alanguagethatretainssomeofthebasicVBsyntaxbutthatissodifferentindesignthatwecanconsiderittobe,forallpracticalpurposes,anewlanguage.IfsinthiscontextthatMicrosofthasdecidedtogivedevelopersanalternative一alanguagedesignedspecificallyfor.NET,anddesignedwithacleanslate.VisualC#.NETistheresult.Officially,MicrosoftdescribesC#asa"simple,modern,object-oriented,andtype-safeprogramminglanguagederivedfrom
CandC++."Mostindependentobserverswouldprobablychangethatto"derivedfromC,C++,andJava."Suchdescriptionsaretechnicallyaccuratebutdolittletoconveythebeautyoreleganceofthelanguage.Syntactically,C#isverysimilartobothC++andJava,tosuchanextentthatmanykeywordsarethesame,andC#alsosharesthesameblockstructurewithbraces({})tomarkblocksofcode,andsemicolonstoseparatestatements.ThefirstimpressionofapieceofC#codeisthatitlooksquitelikeC++orJavacode.Behindthatinitialsimilarity,however,C#isaloteasiertolearnthanC++,andofcomparabledifficultytoJava.Itsdesignismoreintunewithmodemdevelopertoolsthanbothofthoseotherlanguages,andithasbeendesignedtogiveus,simultaneously,theeaseofuseofVisualBasic,andthehighperformance,low-levelmemoryaccessofC++ifrequired.SomeofthefeaturesofC#are:
□ Fullsupportforclassesandobject-orientedprogramming,includingbothinterfaceandimplementation
inheritance,virtualfunctions,andoperatoroverloading.
□ Aconsistentandwell-definedsetofbasictypes.
□ Built-insupportforautomaticgenerationofXMLdocumentation.
□ Automaticcleanupofdynamicallyallocatedmemory.
□ Thefacilitytomarkclassesormethodswithuser-definedattributes.Thiscanbeusefulfordocumentation
andcanhavesomeeffectsoncompilation(forexample,markingmethodstobecompiledonlyindebugbuilds).
□ Fullaccesstothe.NETbaseclasslibrary,aswellaseasyaccesstotheWindowsAPI(ifyou
reallyneedit,whichwon9tbeallthatoften).
□ Pointersanddirectmemoryaccessareavailableifrequired,butthelanguagehasbeendesigned
insuchawaythatyoucanworkwithouttheminalmostallcases.
□ SupportforpropertiesandeventsinthestyleofVisualBasic.
□ Justbychangingthecompileroptions,youcancompileeithertoanexecutableortoalibraryof
.NETcomponentsthatcanbecalledupbyothercodeinthesamewayasActiveXcontrols
(COMcomponents).
□ C#canbeusedtowriteASP.NETdynamicWebpagesandXMLWebservices.
Mostoftheabovestatements,itshouldbepointedout,doalsoapplytoVisualBasic.NETandManagedC++.ThefactthatC#isdesignedfromthestarttoworkwith.NET,however,meansthatitssupportforthefeaturesof.NETisbothmorecomplete,andofferedwithinthecontextofamoresuitablesyntaxthan
forthoseotherlanguages.WhiletheC#languageitselfisverysimilartoJava,therearesomeimprovements:
inparticular,Javaisnotdesignedtoworkwiththe.NETenvironment.
Beforeweleavethesubject,weshouldpointoutacoupleoflimitationsofC#.Theoneareathelanguageisnotdesignedforistime-criticalorextremelyhighperformancecode一thekindwhereyoureallyareworriedaboutwhetheralooptakes1,000or1,050machinecyclestorunthrough,andyouneedtocleanupyourresourcesthemillisecondtheyarenolongerneeded.C++islikelytocontinuetoreignsupremeamonglow-levellanguagesinthisarea.C#lackscertainkeyfacilitiesneededforextremelyhighperformanceapps,includingtheabilitytospecifyinlinefunctionsanddestructorsthatareguaranteedtorunatparticularpointsinthecode.However,theproportionsofapplicationsthatfallintothiscategoryareverylow.
出处:
ProfessionalC#ThirdEdition作者:
SimonRobinson
ChristianNagel
JayGlynn
MorganSkinner
KarliWatson
BillEvjen
c#
C#在某种程度上可以看作是.NET面向Windows环境的一种编程语言。
在过去的十几年里,Microsoft给Windows和WindowsAPI添加了许多功能,VB和C++也经历了许多变化。
虽然VB和C++最终已成为非常强大的语言,但这两种语言也存在问题,因为它们保留了原来的一些内容。
对于VisualBasic来说,它的主要优点是很容易理解,许多编程工作都很容易完成,基本上隐藏了WindowsAPI和COM组件结构的内涵。
其缺点是VisualBasic从来没有实现真正意义上的面向对象,所以大型应用程序很难分解和维护。
另外,因为VB的语法继承于BASIC的早期版本(BASIC主要是为了让初学者更容易理解,而不是为了编写大型商业应用程序),所以不能真正成为结构化或面向对象的编程语言。
另一方面,C++在ANSIC++语言定义中有其自己的根。
它与ANSI不完全兼容,因为Microsoft是在ANSI定义标准化之前编写C++编译器的,但已经相当接近了。
遗憾的是,这导致了两个问题。
其一,ANSIC++是在十几年前的技术条件下开发的,因此不支持现在的概念(例如Unicode字符串和生成XML文档),某些古老的语法结构是为以前的编译器设计的(例如成员函数的声明和定义是分开的)。
其二,Microsoft同时还试图把C++演变为一种用于在Windows上执行高性能任务的语言——在语言中避免添加大量Microsoft专用的关键字和各种库。
其结果是在Windows中,该语言成为了一种非常杂乱的语言。
让一个C++开发人员说说字符串有多少个定义方式就可以说明这一点:
char*、LPTSTR、string、CString(MFC版本)、CString(WTL版本)、wchar_t*和OLECHAR*等。
现在进入.NET时代——一种全新的环境,它对这两种语言都进行了新的扩展。
Microsoft给C++添加了许多Microsoft专用的关键字,并把VB演变为VB.NET,保留了一些基本的VB语法,但在设计上完全不同,从实际应用的角度来看,VB.NET是一种新语言。
在这里,Microsoft决定给开发人员另一个选择 专门用于.NET、
具有新起点的语言,即VisualC#.NEToMicrosoft在正式场合把C#描述为一种简单、现代、面向对象、类型非常安全、派生于C和C++的编程语言。
大多数独立的评论员对其说法是“派生于C、C++和Java”。
这种描述在技术上是非常准确的,但没有涉及到该语言的真正优点。
从语法上看,C#非常类似于C++和Java,许多关键字都是相同的,C#也使用类似于C++和Java的块结构,并用括号({})来标记代码块,用分号分隔各行语句。
对C#代码的第一印象是它非常类似于C++或Java代码。
但在这些表面上的类似性后面,C#学习起来要比C++容易得多,但比Java难一些。
其设计与现代开发工具的适应性要比其他语言更高,它同时具有VisualBasic的易用性、高性能以及C++的低级内存访问性。
C#包括以下一些特性:
•完全支持类和面向对象编程,包括接口和继承、虚函数和运算符重载的处理。
•定义完整、一致的基本类型集。
•对自动生成XML文档说明的内置支持。
•自动清理动态分配的内存。
•可以用用户定义的特性来标记类或方法。
这可以用于文档说明,对编译有一定的影响(例如,把方法标记为只在调试时编译)。
•对.NET基类库的完全访问权,并易于访问WindowsAPL
•可以使用指针和直接内存访问,但C#语言可以在没有它们的条件下访问内存。
•以VB的风格支持属性和事件。
•改变编译器选项,可以把程序编译为可执行文件或.NET组件
库,该组件库可以用与ActiveX控件(COM组件)相同的方式由
其他代码调用。
•C#可以用于编写ASP.NET动态Web页面和XMLWeb服务。
应该指出,对于上述大多数特性,VB.NET和ManagedC++也具备。
但C#从一开始就使用.NET,对.NET特性的支持不仅是完整的,而且提供了比其他语言更合适的语法。
C#语言本身非常类似于Java,但其中有一些改进,因为Java并不是为应用于.NET环境而设计的。
在结束这个主题前,还要指出C#的两个局限性。
其一是该语言不适用于编写时间急迫或性能非常高的代码,例如一个要运行1000或1050次的循环,并在不需要这些循环时,立即清理它们所占用的资源。
在这方面,C++可能仍是所有低级语言中的佼佼者。
其二是C#缺乏性能极高的应用程序所需要的关键功能,包括保证在代码的特定地方运行的内联函数和析构函数。
但这类应用程序非常少。
出处:
ProfessionalC#ThirdEdition作者:
SimonRobinsonChristianNagelJayGlynnMorganSkinnerKarliWatsonBillEvjen
五分钟搞定5000字毕业论文外文翻译,你想要的工具都在这里!
在科研过程中阅读翻译外文文献是一个非常重要的环节,许多领域高水平的文献都是外文文献,借鉴一些外文文献翻译的经验是非常必要的。
由于特殊原因我翻译外文文献的机会比较多,慢慢地就发现了外文文献翻译过程中的三大利器:
Google“翻译,濒道、金山词霸(完整版本)和cNKI"翻译助手"。
具体操作过程如下:
1. 先打开金山词霸自动取词功能,然后阅读文献;
2. 遇到无法理解的长句时,可以交给Google处理,处理后的结果猛一看,不堪入目,可是经过大脑的再处理后句子的意思基本就明了了;
3. 如果通过Google仍然无法理解,感觉就是不同,那肯定是对其中某个“常用单词”理解有误,因为某些单词看似很简单,但是在文献中有特殊的意思,这时就可以通过CNKI的“翻译助手”来查询相关单词的意思,由于CNKI的单词意思都是来源与大量的文献,所以它的吻合率很高。
另外,在翻译过程中最好以“段落”或者“长句”作为翻译的基本单位,这样才不会造成“只见树木,不见森林”的误导。
四大工具:
]、Google翻译:
http:
〃tools
google,众所周知,谷歌里面的英文文献和资料还算是比较详实的。
我利用它是这样的。
一方面可以用它查询英文论文,当然这方面的帖子很多,大家可以搜索,在此不赘述。
回到我自己说的翻译上来。
下面给大家举个例子来说明如何用吧
比如说“电磁感应透明效应”这个词汇你不知道他怎么翻译,首先你可以在CNKI里查中文的,根据它们的关键词中英文对照来做,一般比较准确。
在此主要是说在google里怎么知道这个翻译意思。
大家应该都有词典吧,按中国人的办法,把一个一个词分着查出来,敲到google里,你的这种翻译一般不太准,当然你需要验证是否准确了,这下看着吧,把你的那支离破碎的翻译在google里搜索,你能看到许多相关的文献或资料,大家都不是笨蛋,看看,也就能找到最精确的翻译了,纯西式的!
我就是这么用的。
2、 CNKI翻译:
CNKI翻译助手,这个网站不需要介绍太多,可能有些人也知道的。
主要说说它的有点,你进去看看就能发现:
搜索的肯定是专业词汇,而且它翻译结果下面有文章与之对应(因为它是CNKI检索提供的,它的翻译是从文献里抽出来的),很实用的一个网站。
估计别的写文章的人不是傻子吧,它们的东西我们可以直接拿来用,当然省事了。
网址告诉大家,有兴趣的进去看看,你们就会发现其乐无穷!
还是很值得用的。
3、 网路版金山词霸(不到1M):
4、 有道在线翻译:
http:
//fanyi.youdao.com/?
keyfrom=fk