+ 1

The program which consists of string characters using string header file has not compiled properly

19th Feb 2017, 2:57 PM
VIJAY BABU P
VIJAY BABU P - avatar
4 Respuestas
+ 1
i just forgot about 'cout' operator. meanwhile thanks for your kind information michael
19th Feb 2017, 4:16 PM
VIJAY BABU P
VIJAY BABU P - avatar
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 :)
19th Feb 2017, 4:01 PM
Michael Szczepanski
Michael Szczepanski - avatar
0
michael could u just refer the string module in c++ course the program in the string module is not getting the output
19th Feb 2017, 4:05 PM
VIJAY BABU P
VIJAY BABU P - avatar
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.
19th Feb 2017, 4:13 PM
Michael Szczepanski
Michael Szczepanski - avatar