[ create a new paste ] login | about

Link: http://codepad.org/I8C2D9wq    [ raw code | output | fork ]

C++, pasted on Jan 23:
1
2
3
4
5
6
7
8
9
10
11
#include <cstdio>

void example(char * str)
{
    std::puts(str);
}

int main()
{
    example("Hello World!");
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 10: warning: deprecated conversion from string constant to 'char*''


Create a new paste based on this one


Comments: