安康学院电子与信息工程系实验报告
1.实验目的:
1.掌握一维数组和二维数组的定义,赋值和输入输出方法。
2.掌握字符数组和字符串函数的使用。
3.掌握与数组有关的算法(特别是算法排序)
2.实验内容及方案:
1.0
Configuration: 1 - Win32 Debug--------------------
Compiling...
1.cpp
j.cpp
C:\Windows\System32\j.cpp(25) : error C2146: syntax error : missing ';' before identifier 'printf' C:\Windows\System32\j.cpp(27) : error C2143: syntax error : missing ';' before '}'
执行cl.exe 时出错.
Compiling...
3'0.cpp
C:\Users\Administrator\Desktop\3'0.cpp(8) : error C2065: 'get' : undeclared identifier
C:\Users\Administrator\Desktop\3'0.cpp(16) : error C2137: empty character constant
C:\Users\Administrator\Desktop\3'0.cpp(26) : warning C4129: 'o' : unrecognized character escape sequence
执行cl.exe 时出错.
3'0.exe - 1 error(s), 0 warning(s)
Compiling...
3'0.cpp
C:\Users\Administrator\Desktop\3'0.cpp(8) : error C2065: 'get' : undeclared identifier
C:\Users\Administrator\Desktop\3'0.cpp(16) : error C2137: empty character constant
C:\Users\Administrator\Desktop\3'0.cpp(26) : warning C4129: 'o' : unrecognized character escape sequence
执行cl.exe 时出错.
3'0.exe - 1 error(s), 0 warning(s)
ompiling...
4.cpp
C:\Users\Administrator\Desktop\4.cpp(7) : error C2001: newline in constant
C:\Users\Administrator\Desktop\4.cpp(8) : error C2143: syntax error : missing ')' before 'for'
C:\Users\Administrator\Desktop\4.cpp(8) : warning C4552: '<' : operator has no effect; expected operator with side-effect
C:\Users\Administrator\Desktop\4.cpp(8) : error C2143: syntax error : missing ';' before ')'
C:\Users\Administrator\Desktop\4.cpp(9) : warning C4552: '<' : operator has no effect; expected operator with side-effect
C:\Users\Administrator\Desktop\4.cpp(9) : error C2143: syntax error : missing ';' before ')'
C:\Users\Administrator\Desktop\4.cpp(30) : error C2065: 'pintf' : undeclared identifier
执行cl.exe 出错
4.实验结果:
5.实验总结:对于本次的实验我有点无从下手,好多都是按照答案来参考的,感觉相当有难度。
6.主观得分:(教师批阅)。