Warning! What C and C++ standards are not!
The actual ANSI/ISO/IEC standards documents are not tutorial in nature or easy to read. They contain very dense and detailed technical information. They are not recommended as a guide for learning to program in the languages, or for beginners in general.
I know i must write sth like this in the prototype:
but i don't know what should write after the return command.I tried return *s,&s,s but all of them ware wrong.
I wanna program in standard c++ so i must know what should i do for that.
for example which headers must not have .h extension in the #include statement .
and a little part of reason is that i'm a little curios about it.
>Come on man,I considered c++ programmers smarter.
In my experience C++ programmers are just like everyone else: the majority are slightly below average, a smaller number are average or just above, there are enough retards to frighten you, and a handful are truly brilliant.
By the way, you're not that bright yourself if you think that we're mind readers.
>i don't know what should write after the return command.
You return a matching type:
>I wanna program in standard c++ so i must know what should i do for that.
Best of luck. You'll need a copy of the standard and plenty of time on your hands. Alternatively you could simply buy a book like Accelerated C++ and learn C++ correctly from the start. That will get you going on the correct path.
>which headers must not have .h extension in the #include statement
All of them. The correct headers specific to C++ have no .h extension and the correct headers inherited from C replace the .h extension with a c prefix (eg. <string.h> becomes <cstring>). You shouldn't be using the .h versions of the inherited headers. They're only supported for compatibility.