+ 1
The program which consists of string characters using string header file has not compiled properly
4 Antworten
+ 1
i just forgot about 'cout' operator.
meanwhile thanks for your kind information michael
0
String header file??????? they just header files. try taking everything in the header file and putting it where you have the
#include "MyHeader.h"
if it still breaks then its something you wrote. if not, make sure you have the preprocessor directives in the header file. to avoid re-initialization.
hope this helps.
it would be beneficial to go into more detail as well :)
0
michael could u just refer the string module in c++ course the program in the string module is not getting the output
0
where it says string a = "im learning c++"; ??
that never prints because you never tell it to print. all that is doing is creating a string. to output it:
cout << a << endl; it will substitute the string value and will output it to the console.
**dont thunk that you Need the <string> Library. that just allows you to do stuff with them. as long as you have iostream and namespace std. you should be fine.