this code is supposed to become a pluggin for a game, and it is supposed to be correct. so I downloaded cfree and started to compile it, but it gave an error in every line. when I asked why is it happens like this, people said: read some books. but you know it will take years if I don't understand nothing. if you are not interested to work with it, atleast explain what questions are essential for compiling this code. because I got like 30 errors and it was like about ";" , "," ":" signs in this code. I am sure that for advanced c++ programmer this code is ready and is very easy to compile
1) This is a constructor for a class named cs_aim, in which case constructors cannot have return values (bool)
2) There is a function named cs_aim in a namespace called cs_aim, in which case you cannot have a
function named the same as a namespace.
Start by fixing this problem and see what errors, if any, remain.
--------------------Configuration: mingw2.95 - LIB Debug, Builder Type: MinGW (Old)--------------------
Compiling *\Untitled1.cpp...
[Error] *\Untitled1.cpp:1: syntax error before `::'
[Error] *\Untitled1.cpp:6: syntax error before `;'
[Error] *\Untitled1.cpp:7: syntax error before `,'
[Error] *\Untitled1.cpp:9: syntax error before `.'
[Error] *\Untitled1.cpp:11: syntax error before `<='
[Error] *\Untitled1.cpp:11: syntax error before `++'
[Error] *\Untitled1.cpp:14: ANSI C++ forbids declaration `vecEnd' with no type
[Error] *\Untitled1.cpp:14: `gClient' was not declared in this scope
[Error] *\Untitled1.cpp:14: `vForward' was not declared in this scope
[Error] *\Untitled1.cpp:15: ANSI C++ forbids declaration `vecEnd' with no type
[Error] *\Untitled1.cpp:15: conflicting types for `int vecEnd[2]'
[Error] *\Untitled1.cpp:14: previous declaration as `int vecEnd[1]'
[Error] *\Untitled1.cpp:15: `gClient' was not declared in this scope
[Error] *\Untitled1.cpp:15: `vForward' was not declared in this scope
[Error] *\Untitled1.cpp:17: syntax error before `.'
[Error] *\Untitled1.cpp:18: syntax error before `.'
[Error] *\Untitled1.cpp:20: ANSI C++ forbids declaration `iEntity' with no type
[Error] *\Untitled1.cpp:20: redefinition of `int iEntity'
[Error] *\Untitled1.cpp:5: `int iEntity' previously declared here
[Error] *\Untitled1.cpp:20: `gEngfuncs' was not declared in this scope
[Error] *\Untitled1.cpp:20: `gVis' was not declared in this scope
[Error] *\Untitled1.cpp:22: ANSI C++ forbids declaration `ent' with no type
[Error] *\Untitled1.cpp:22: `gEngfuncs' was not declared in this scope
[Error] *\Untitled1.cpp:24: parse error before `if'
[Error] *\Untitled1.cpp:53: syntax error before `+='
Complete Compile *\Untitled1.cpp: 25 error(s), 0 warning(s)
that is what happens if you put the code in cfree and compile