I was looking for an answer and I was getting nowhere with Google. So I wrote my question, but i persisted with friend google and after some time I found what is the answer to my question.
I decided to (in a joking way) to answer my own question and leave it here so if someone else have similar request they might benefit from it :)
but thank you for your input as well :)
at some point this will be added to the website
http://cyber-dojo.org
I think your question is (if I understand correctly) about %d.%d.%d ???
correct?
I am not sure, I tried with and without.
Output from the website with this line is like this:
Newest standard supported : C++11 - 201103
gcc version: 6.2.0
and code I have added is:
1 2
|
cout << "Newest standard supported : C++11 - "<< __cplusplus << endl;
printf("gcc version: %d.%d.%d\n",__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__);
|
when I tried without %d then I am not getting correct output. as this is more i think C like I was not investigating.