why the warining deprecated conversion from string constant to 'char*' occured in the bellow program [duplicate]
问题 This question already has answers here : Why is conversion from string constant to 'char*' valid in C but invalid in C++ (4 answers) Closed 1 year ago . I created a class called person with the public member function fill_data which takes two arguments as char array and int . I passed the arguments like this fill_data("tushar",30); but there shows a warning deprecated conversion from string constant to 'char*' but I don't understand why, if any help me to know | #include<iostream> #include