Skip to content
Snippets Groups Projects
Commit bfcacf43 authored by Paul Russo's avatar Paul Russo
Browse files

Fix so it compiles with gcc 4.3.1 (missing includes).

-- Paul Russo


git-svn-id: http://root.cern.ch/svn/root/trunk@24821 27541ba8-7e3a-0410-8455-c3a389f83636
parent 2c27002b
No related branches found
No related tags found
No related merge requests found
......@@ -11,26 +11,47 @@
#else
#include "t980.h"
#endif
#include <stdio.h>
int main(int,char**) {
A b ;
b = A("A part") + " of a whole";
A a = A("A part") + " of a whole";
printf("%s. %s.\n",a.val(),b.val());
f(a,"A part of a whole");
f("A part of a whole",a);
if(strcmp(a,"A part of a whole")==0) printf("true\n");
else printf("false\n");
if(strcmp(a,"a part of a whole")==0) printf("true\n");
else printf("false\n");
if(strcmp(a.val(),"A part of a whole")==0) printf("true\n");
else printf("false\n");
if(strcmp(a.val(),"a part of a whole")==0) printf("true\n");
else printf("false\n");
return 0;
#include <cstdio>
#include <cstring>
using namespace std;
int main(int, char**)
{
A b;
b = A("A part") + " of a whole";
A a = A("A part") + " of a whole";
printf("%s. %s.\n", a.val(), b.val());
f(a, "A part of a whole");
f("A part of a whole", a);
if (!strcmp(a, "A part of a whole")) {
printf("true\n");
}
else {
printf("false\n");
}
if (!strcmp(a, "a part of a whole")) {
printf("true\n");
}
else {
printf("false\n");
}
if (!strcmp(a.val(), "A part of a whole")) {
printf("true\n");
}
else {
printf("false\n");
}
if (!strcmp(a.val(), "a part of a whole")) {
printf("true\n");
}
else {
printf("false\n");
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment