Wht wrong in my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
30th Jun 2017, 12:51 AM
Nishanth
Nishanth - avatar
5 Answers
+ 6
its just <string>, don't need the .h the features you are trying to use seem to be not supported by sololearns compiler
30th Jun 2017, 1:01 AM
jay
jay - avatar
+ 5
** void main is not valid c++, never has been, never will be. See creators note: http://www.stroustrup.com/bs_faq2.html#void-main
30th Jun 2017, 1:03 AM
jay
jay - avatar
+ 1
I think it is cstring and not string.h. Also, void main not int main @jay well I stand corrected, thank you :)
30th Jun 2017, 12:55 AM
Venkatesh Pitta
Venkatesh Pitta - avatar
+ 1
no some other problem
30th Jun 2017, 1:02 AM
Nishanth
Nishanth - avatar
+ 1
strrev( ) function reverses a given string in C language. Syntax for strrev( ) function is given below. char *strrev(char *string);strrev( ) function is non standard function which may not available in standard library in C.
30th Jun 2017, 5:15 AM
Julio Cesar Rosales Rodriguez
Julio Cesar Rosales Rodriguez - avatar