c++ stderr code example
Example 1: c++ print to standard error
#include<iostream>
int main(){
std::cerr << "this is a message for stdandard error" << std::endl;
return 0;
}
Example 2: strcmp c++
#include<stdio.h>
#include<string.h>
int main()
{
char char1[] = "coucou";
char char2[] = "coucou";
if( strcmp(char1, char2) == 0 )
printf("Strings are the same");
else
prinf("Strings are differentes");
return 0;
}