Hello,
I have this code:
#include <iostream>
#include <string>
void main()
{
std::string a = "Sample";
printf("%s", a);
std::cin.get();
}
and it prints some I think random letters. Where i made mistake? And how should i change the code to write "Sample"?
Thanks for answers and sorry for my english