寻找C ++& java编程的想法 [英] Finding C++ & java idea for programming
问题描述
大家好。
我是c#programmer(windows窗体)。我开始任何java&几周前的c ++练习。
我觉得可以理解c ++& java因为我知道c#。
但我的主要问题是用c ++或java编程的想法。
例如我自己说如果我想创建windows表单,我可以通过c#来做到这一点为什么我使用java或c ++。
我的问题是我可以通过c ++和java做什么类型的项目?游戏编程?桌面编程?物联网? Web开发?我不知道我应该在c ++或java中使用哪种类型来开始或者使用。
我希望能理解我的意思。
UPDATE ::::::
hi all.
i am c# programmer (windows forms). and i started any java & c++ exercises any weeks ago.
i feel can understand both c++ & java because i know c#.
but my main problem is idea for programming in c++ or java.
for example i say with myself that "if i want to create windows form,i can do it by c# so why i use java or c++".
my problem is what kind type of projects i can do by c++ and java? Game prgramming ? desktop programming? IOT? Web Development? i don't know which type i should start or toturial in c++ or java.
i wish to can understand my mean.
UPDATE::::::
this is not solution . it is continue. really i want to write cross paltform application and great applications. and c# not supported it of course if we not see .net core.
but i like to create great good applications without any limit. and i want to work with c++ & java.
but i don't know that how can i find idea for starting that.
i think i can begin a project by c++ & java and i am not a beginner. because i understand c++ , java syntax and it's principles (according to my studies in this weeks).
and i think can understand more those by write a good project.
totally (I do not know what kind of branch to choose) IOT? WEB? DESKTOP? which today tech?
我尝试过:
我正在寻找我的问题,但找不到任何好处...
What I have tried:
i'm looking for my problem but can not find any good thing...
推荐答案
基本上,你可以用C#创建的任何东西,你可以用C ++或Java创建(特别是现在Xamarin是Visual Studio的一部分)。
唯一的区别是C ++可用于更广泛的目标处理器和系统池(几乎每个处理器都存在C ++交叉编译器(甚至八位 - 至少有一个Z80 C ++)编译器)其中C#仅适用于.NET(或equivelant:Mono for Linux,Xamarin for Android / iOS)将运行。
并且Java也可以在C#不能使用的地方使用 - 只要Java虚拟机在那里运行,所以cn Java代码(包括智能卡: Java(软件平台) - 维基百科 [ ^ ])
有些地方可以使用C#,你不能使用Java或C ++ - 例如网站的服务器端代码 - 但在大多数情况下你可以在任何地方使用它们。
只是不要假设我觉得可以理解c ++和java,因为我知道c#:theay是非常不同的语言共享一些常见的语法,如果你尝试在C ++中做C#方式的事情,你可能会做一个非常讨厌的应用程序。特别是如果您尝试在本机应用程序中执行此操作:没有CLR,C ++不提供垃圾回收,因此内存释放由程序员决定。
我们不能说对这些项目使用C#,而对那些项目使用Java / C ++因为没有明确的界限:它们可以在整个项目中互换(但可能不在项目中,如果你不能很好地工作尝试同时使用C#和Java!)
Basically, pretty much anything you can create in C#, you can create in C++ or Java (especially now Xamarin is part of Visual Studio).
The only difference is that C++ can be used across a wider pool of "target" processors and systems (C++ cross compilers exist for pretty much every processor (even eight bit - there is at least one Z80 C++ compiler) where C# is only available where .NET (or equivelant: Mono for Linux, Xamarin for Android / iOS) will run.
And Java can also be used where C# can't - as long as the Java Virtual Machine runs there, so cn Java code (this includes smartcards: Java (software platform) - Wikipedia[^])
There are places you can use C# that you can't use Java or C++ - the server side code for a website for example - but in most cases you could use any of them anywhere.
Just don't assume "i feel can understand both c++ & java because i know c#": theay are very different languages that share some common syntax, and if you try to do things "the C# way" in C++, you will probably make a very nasty app. Particularly if you try to do it in a native app: without the CLR, C++ does not provide garbage collection, so memory deallocation is up to you the programmer for example.
We can't say "use C# for these projects, but Java / C++ for those" because there is no clear line: they are interchangeable for whole projects (but probably not within a project, it's not going to work too well if you try to use both C# and Java together!)
我觉得可以理解c ++和amp ; java因为我知道c#
i feel can understand both c++ & java because i know c#
强制引用: Abstruse Goose |如何自学编程 [ ^ ]。
经验法则:
- 几乎所有事情都使用
C#
。 - 在嵌入式系统上使用
C / C ++
或非常专业,性能密集的任务(但是你必须掌握它)。 - 使用
Java
放松编码或故意放慢你的申请速度。 - Use
C#
for almost everything. - Use
C/C++
on embedded systems or very specialized, performance intensive, tasks (however you have to master it). - Use
Java
to relax from coding or deliberately slow down your application.
Obligatory citation: Abstruse Goose | How to Teach Yourself Programming[^].
Rules of thumb:
这篇关于寻找C ++& java编程的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!