Don't write, it is already written, google for 'cpp'.
int main (void) { puts ("charminar"); return 0; }
what is the pure algorithm instead of cpp program?
Such a program is called a Quine. http://en.wikipedia.org/wiki/Quine_(computing)
The .cpp extension is merely conventional; it is not required by the C++ standard. You can actually use any file extension you wish.
Don't write, it is already written, google for 'cpp'.
int main (void) { puts ("charminar"); return 0; }
what is the pure algorithm instead of cpp program?
Yes because a program can run without a CPP extension, especially if program extension is .exe
In order to use extern you have to have at least two files. In first one, let's call it file1.cpp, you will define a variable using extern (in this case belongs to int):...extern int myVar = 0;...Then in file2.cpp file where you have main() you need to write following:extern int myVar;Do not initialize the variable in file2.cpp, or you code will not compile.
Go to the link. You will got use of "this" keywork with simple explanation and example. http://cpp.codenewbie.com/articles/cpp/1527/Keyword_this-Page_5.html
Such a program is called a Quine. http://en.wikipedia.org/wiki/Quine_(computing)
The .cpp extension is merely conventional; it is not required by the C++ standard. You can actually use any file extension you wish.
The extension of a file containing a C program can be any extension, so long as the compiler or platform can infer the proper rules to build it. Commonly, for C programs, the extension is .c, so myfile.c would be a C program. The term cpp is not a designation for C++. It means C Program Precompiler, and it is the normal way to build one or more C programs into an executable. Over the years, cpp has evolved into being able to handle all sorts of languages. C++ is one of them. Typical extensions for C++ programs are .cc, .cpp, and .cxx.
That is possible. Try it.
CPP
#include<iostream> unsigned fib (unsigned term, unsigned a=0, unsigned b=1) { if (term<1) return a; return fib (--term, a+b, a); } int main() { std::cout << "Fibonacci (1000th term): " << fib (1000) << std::endl; }