I have
function(const char * data) { //how to print the data which is inside the data }
When I debug, I only see the address. If I print (* data) nothing is printed.
Any idea?
#include <iostream> void function(const char * data) { std::cout << data; }
printf("%s\n", data) works for me.
printf("%s\n", data)
std::cout << std::string(data);
Source: https://habr.com/ru/post/1334494/More articles:How to pass part of url id to view_callable? - pythonhow to change the size of the original image in android - androidUsing the Google Analytics Export API to Trend Web Sites - google-analyticsWhat encoding is used in iPhone SMS? - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1334493/git-updating-website-when-pushing-to-remote-repository&usg=ALkJrhgprN8Ryw653MT3ILAcT-EF5w2WuwCheck date and time entered by user on UNIX - unixSQL Server 2008, how much space does this lesson take? - sqlC ++ Builder 2010 - c ++error when receiving mail through a proxy server - javaAutomatically generate email addresses and receive email using C #? - c #All Articles