pmp said:
pmp wrote, On 10/02/08 11:24: [...]
seehttp://
www.itworld2.comhere you will seeonlinetestofC++and
other articles related toC++/c
Better yet, don't. That site includes sample code "to modify the value
of Constant variable inC++/C" without saying that it will not work on a
lot of implementations for any of a vast number of reasons (it invokes
undefined behaviour, of course, but there are specific reasons for it
not "working" on specific implementations).
Some of the code fails to allow for the fact that C andC++are
generally case sensitive (header names specified in upper case), some isC++without indicating that it is not valid C, usage of "void main".
There are plenty more problems with the information on that site.
if any body haa problem in compiling the code the let me know....
Okay, let's see...
=====
"Source Code to get Local Time of System in C/ C++"
Fails with this error:
foo.c:1: Time.h: No such file or directory
=====
"How to Open Executable files from C++(Website from C++ Code)"
Fails with this error:
foo.c: In function `main':
foo.c:5: `SW_SHOWNORMAL' undeclared (first use in this function)
foo.c:5: (Each undeclared identifier is reported only once
foo.c:5: for each function it appears in.)
(Ditto when compiled as C++, since your title does say "C++".)
=====
"Source Code[program][ to know that Number is Power of 2"
Fails with this error:
foo.c:7: parse error before `isPowerOf2'
=====
"How to find the greatest number of the two numbers without using
relational operator in C++"
(Okay, I should probably skip the ones marked as "C++", but I'm on a roll.)
Fails with this error:
foo.cpp:1: IOSTREAM.H : No such file or directory
foo.cpp:2: CONIO.H : No such file or directory
foo.cpp:3: MATH.H : No such file or directory
=====
"How to Reverse the Integer (int) using recursion in C/C++"
Fails with this error:
foo.c:1: IOSTREAM.H : No such file or directory
foo.c:2: CONIO.H : No such file or directory
(Ditto in C++ mode, since you reference the mythical "C/C++" language.)
=====
Shall I go on?
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody |
www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net |
www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:
[email protected]>