Programs written for TC++ follow an outdated format. TC++ was released in 1994 or something. And, unfortunately, CBSE prescribes the same old rubbish syllabus.
There are couple of syntax differences if you write for Dev C++ or g++( in Linux). 1. #include and not #include 2. You have to add this statement before int main()
using namespace std; 3 You write int main () { main body return 0; } instead of
void main() {}
There are many things. You should not use Dev c++ for school purposes. Dev c++ should be used after you pass school and enter college coz then you start doing serious stuff.