#include <stdio.h> using namespace System; ref class trainee {}; int main() { trainee ^Trainee = gcnew trainee; printf("***************"); return 0; }
Standard input is empty
prog.cpp:5:17: error: 'System' is not a namespace-name
using namespace System;
^
prog.cpp:5:23: error: expected namespace-name before ';' token
using namespace System;
^
prog.cpp:8:1: error: 'ref' does not name a type
ref class trainee {};
^
prog.cpp: In function 'int main()':
prog.cpp:13:2: error: 'trainee' was not declared in this scope
trainee ^Trainee = gcnew trainee;
^
prog.cpp:13:11: error: 'Trainee' was not declared in this scope
trainee ^Trainee = gcnew trainee;
^
prog.cpp:13:21: error: 'gcnew' was not declared in this scope
trainee ^Trainee = gcnew trainee;
^
Standard output is empty