#include <iostream>

// Demonstration
//
void Demonstration()
{
        std::cout << In Demonstration Function n  ;
}

// main
// DemonstrationFunction
//
int main()
{
        std::cout << "In mainn";
        DemonstrationFunction();
        std::cout << "Back in main"n  ;
        return 0;
}


이게 교재에 써있어서 그대로 적었는데..

--------------------Configuration: 2Days5 - Win32 Debug--------------------
Compiling...
2Days5.cpp
2Days5.cpp(7) : error C2065: 'In' : undeclared identifier
2Days5.cpp(7) : error C2146: syntax error : missing ';' before identifier 'Demonstration'
2Days5.cpp(7) : error C2017: illegal escape sequence
2Days5.cpp(7) : error C2146: syntax error : missing ';' before identifier 'Function'
2Days5.cpp(7) : warning C4551: function call missing argument list
2Days5.cpp(7) : error C2065: 'Function' : undeclared identifier
2Days5.cpp(7) : error C2146: syntax error : missing ';' before identifier 'n'
2Days5.cpp(7) : error C2065: 'n' : undeclared identifier
2Days5.cpp(16) : error C2065: 'DemonstrationFunction' : undeclared identifier
2Days5.cpp(17) : error C2017: illegal escape sequence
2Days5.cpp(17) : error C2146: syntax error : missing ';' before identifier 'n'
Error executing cl.exe.

2Days5.exe - 10 error(s), 1 warning(s)

뭐 이런 오류가 납니다..T.T 데체 뭐가틀린거죠?
profile

Memento te hominem esse