|
Dear friends,
There are two object oriented languages. C++ and java.
which object oriented language is best and why. give me a
reply.
Regards
kedar
|
|
|
|
|
C++ Rules!!!
You can do anything and everything in C++.
This may not be the reply you are looking for, but consider this:
They took C++, cut off its arms and legs, put it into a wheelchair, put it on illegal drugs, and called it J**a.
A program written in J**a takes half a day to load, and takes another day to add two integers.
A typical software written in J**a (hypothetical):
IntegerSoft(R). Adds two integers, and outputs the result as integer.
Description: you can now add two integers without using a calculator. This great software uses state of the art (crappy) user-interface.
this is this.
|
|
|
|
|
don't be so rude with java !!! for many management programs, it's enough... all depends on what you need.
moreover, yes, they took some good things to C++, such as C++ took to C for the language syntax, to Algol, Simula, and several much languages...
and you know, .NET took to java quite its totality !!! so java certainly have some good points dude !
"A program written in J**a takes half a day to load, and takes another day to add two integers."
this is totaly wrong, i a wonder if you ever used Java one time in your life...!
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
-- modified at 6:13 Friday 9th December, 2005
|
|
|
|
|
Agreed.
They knew everybody cannot program in C++, that is why J**a was invented, which is easier, etc etc.
I love J**a, but only for drinking purposes.
this is this.
|
|
|
|
|
i love C++ (which is my predilection language), but i cannot let you say these.
C++ is getting old man, and moreover, is not a totaly OO language (because of its C inheritence)...
Java is, and have some more features.
of, course, C++ still have multiple inheritance, templates, operator overloads, inlines, assembly keyword, etc, etc... but you cannot spit like this on Java.
One last thing : the day you'll design your own language, i will respect you as i do with Mr Stroustrup...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
hi man,
you know, C++ and Java are not the only object oriented languages. nowadays, all .NET languages are, and some languages from the dark side of IT are OO too.
all depends on what you want to do, as i already answered to khan++.
C++ have the capability to allow you programming directly in native language, avoiding the use of a particuliar framework. in such a case, C++ would be a bit faster that Java. but here again, performance worthes only if you have to do very fast/heavy treatments...
Java have advantages on its side... automatic memory management (with its garbage collector) is one of the most famous !
point out what you have to do before choosing a language, not because it's best, but because it better deserves your problem...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
vcforums wrote: There are two object oriented languages. C++ and java.
Both Langauge are best at there place.....
C++ is best when you are creating system based application
and
Java is one of best when you creating webbased application..... ( one of best because we have c# too)...
also one more point c++ is not purly OOPS oriented language it is object based language whereas java is object oriented langauge
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: c++ is not purly OOPS oriented language
True. It is a multi-paradigm language.
ThatsAlok wrote: it is object based language
False - an "object based language" (as defined by Lippman) does not have inheritance - C++ does.
ThatsAlok wrote: java is object oriented langauge
Java is an OO language, but not a "pure" OO language. Smalltalk is "pure OO language".
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Try C#! Tons of samples here. And here.[^] I'd say the library is extensive.
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
I have no intention of spawning an argument. Each language serves its purpose - and by the way, there are more than just these two languages that are 'object oriented'.
C++ good points
---------------
You can do anything - literally. C/C++ was designed and intended to be a systems programming language. It just sort of became a de facto standard for general application developemnt. As such, it gives you the most power and compiles directly into native machine code.
C++ bad points
--------------
With great power comes great responsibility. You have to clean up your own messes usually. There is no magic bullet to free memory you allocated in some function and forgot to free up explicitly. That fact alone makes many a lazy programmer shy away from C++.
A program written for one platform won't work on another.
Java good points
----------------
Platform independence. A program written in Java will (in theory) run the same on any tpye of machine that supports java at all - this includes Windows, Sun OS, Linux, etc. The 'look and feel' may vary a bit, but the code functionally equivalent.
Java Bad Points
---------------
Its a young language relatively speaking. Compiler implementations tend to be buggy and not well supported. Also, a java 'compiler' that produces machine code sort of defeats the whole point of java, so instead java 'compilers' produce intermediate byte code which is compiled/interpreted by a "java virtual machine" at run-time. This causes slow execution speed. But this is only really noticable on time critical operations.
Jeremy Wilson
mitselplik@cox.net
|
|
|
|
|
Hi How can i reboot my System , if an event generates
Thanku..
Usha
|
|
|
|
|
BOOL ExitWindowsEx(
UINT uFlags, // shutdown operation
DWORD dwReserved // reserved
);
Parameters
uFlags
Specifies the type of shutdown. This parameter must include one of the following values: Value Meaning
EWX_LOGOFF Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.
EWX_POWEROFF Shuts down the system and turns off the power. The system must support the power-off feature.
Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
EWX_REBOOT Shuts down the system and then restarts the system.
Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
EWX_SHUTDOWN Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.
Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
This parameter can optionally include the following values: Value Meaning
EWX_FORCE Forces processes to terminate. When this flag is set, the system does not send the WM_QUERYENDSESSION and WM_ENDSESSION messages. This can cause the applications to lose data. Therefore, you should only use this flag in an emergency.
EWX_FORCEIFHUNG Windows NT 5.0 and later: Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message. This flag is ignored if EWX_FORCE is used.
dwReserved
Reserved; this parameter is ignored.
|
|
|
|
|
|
|
usha_dolly wrote: ForumVisual C++
Subject:Re: how to reboot the sys
Sender:usha_dolly
Date:4:02 9 Dec '05
Hi How can i reboot my System , if an event generates
try InitiateSystemShutdown(..)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
do anyone know a good site were i can get
the class to access the bitmap data .
I also want to convert a 16bit bitmap
to monocorome .
thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
|
I wanted to handle the real bitmap file
basicaly the data from the file ,
everthing including its header also
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Sorry. I didn't realize what you wanted to do.
I have no answer at this point.
Kakan
|
|
|
|
|
|
at the beging og the bmp file u need encounter "BMP"
followed by 2 structurs *BITMAPFILEHEADER & *BITMAPINFOHEADER
these 2 structures contains informatin regrading file & bitmapdata
u can file these struct members in msdn
open the file as usual and read these 2 structures
then
then followed by actuall image data, it is byte array of
read byte by byte
(ie ,,unsigned char)
a[0]=R
a[1]=G
a[2]=B or may be in reverse order not sure (first pixel information)
a[3]=R
a[4]=G
a[5]=B (2 nd pixel information)
.............and so on
that sh*t
now u can play with the image data
(each pixel has 3 componet RGB)
**another import thing is the image data will be stored in reverse order
Bottom right pixel date (first 3 bytes) will be stored first
and Top right pixel data will be the last 3 byte in the array
All the best
kattavictor
|
|
|
|
|
convertion u can get by doing left/right shift
i dont remember ,, u can find over net,, its easy
u need to apply the thing for entire array
that all
hope its clear
kattavictor
|
|
|
|
|
who have 3 files:iphlpapi.dll,iphlpapi.lib,iphlpapi.h
|
|
|
|
|
|
I can't download the full Platform SDK,Can you give me those 3 files?Thank you,my email address: sun_shb@sohu.com
|
|
|
|
|