thanks for the help guys but i seem to be getting more errors now.
Code:
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Compiling...
1>assaignment1.cpp
1>.\assaignment1.cpp(13) : error C2001: newline in constant
1>.\assaignment1.cpp(25) : error C2046: illegal case
1>.\assaignment1.cpp(26) : error C2065: 'Lenght' : undeclared identifier
1>.\assaignment1.cpp(28) : error C2065: 'Period' : undeclared identifier
1>.\assaignment1.cpp(28) : error C3861: 'sqrt': identifier not found
1>.\assaignment1.cpp(29) : error C3861: 'setprecision': identifier not found
1>.\assaignment1.cpp(33) : error C2043: illegal break
1>.\assaignment1.cpp(34) : error C2046: illegal case
1>.\assaignment1.cpp(37) : error C2017: illegal escape sequence
1>.\assaignment1.cpp(37) : error C2146: syntax error : missing ';' before identifier 'n'
1>.\assaignment1.cpp(37) : error C2065: 'n' : undeclared identifier
1>.\assaignment1.cpp(39) : error C2017: illegal escape sequence
1>.\assaignment1.cpp(41) : error C2296: '^' : illegal, left operand has type 'double'
1>.\assaignment1.cpp(41) : error C2297: '^' : illegal, right operand has type 'double'
1>.\assaignment1.cpp(42) : error C3861: 'setprecision': identifier not found
1>.\assaignment1.cpp(44) : error C2043: illegal break
1>.\assaignment1.cpp(45) : error C2046: illegal case
1>.\assaignment1.cpp(49) : error C3861: 'setprecision': identifier not found
1>Build log was saved at "file://c:\Documents and Settings\Jerzy\My Documents\Visual Studio 2005\Projects\test\test\Debug\BuildLog.htm"
1>test - 18 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I must be the biggest noob out there.