|
|
1>------ Build started: Project: sten sax pase, Configuration: Debug Win32 ------ 1>Build started 10/20/2014 15:51:47. 1>InitializeBuildStatus: 1> Touching "Debug\sten sax pase.unsuccessfulbuild". 1>GenerateTargetFrameworkMonikerAttribute: 1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 1>ClCompile: 1> All outputs are up-to-date. 1> sten sax pase.cpp 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(232): error C2664: 'System::Random::Random(int)' : cannot convert parameter 1 from 'System::Random ^' to 'int' 1> No user-defined-conversion operator available, or 1> There is no context in which this conversion is possible 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(233): error C2819: type 'System::Random' does not have an overloaded member 'operator ->' 1> c:\program files (x86)\reference assemblies\microsoft\framework\.netframework\v4.0\mscorlib.dll : see declaration of 'System::Random' 1> did you intend to use '.' instead? 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(233): error C2232: '->System::Random::Next' : left operand has 'class' type, use '.' 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(275): error C2664: 'System::Random::Random(int)' : cannot convert parameter 1 from 'System::Random ^' to 'int' 1> No user-defined-conversion operator available, or 1> There is no context in which this conversion is possible 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(276): error C2819: type 'System::Random' does not have an overloaded member 'operator ->' 1> c:\program files (x86)\reference assemblies\microsoft\framework\.netframework\v4.0\mscorlib.dll : see declaration of 'System::Random' 1> did you intend to use '.' instead? 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(276): error C2232: '->System::Random::Next' : left operand has 'class' type, use '.' 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(316): error C2664: 'System::Random::Random(int)' : cannot convert parameter 1 from 'System::Random ^' to 'int' 1> No user-defined-conversion operator available, or 1> There is no context in which this conversion is possible 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(317): error C2819: type 'System::Random' does not have an overloaded member 'operator ->' 1> c:\program files (x86)\reference assemblies\microsoft\framework\.netframework\v4.0\mscorlib.dll : see declaration of 'System::Random' 1> did you intend to use '.' instead? 1>c:\users\oskar\documents\visual studio 2010\projects\sten sax pase\sten sax pase\Form1.h(317): error C2232: '->System::Random::Next' : left operand has 'class' type, use '.' 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.48 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
datornsTal
is an int
, so you don't need the single quotes around the numbers 1,2, and 3 in the switch case. The single quotes are used for char
values.