Message from C, C++ talks

June 2019

— Guys I have downloaded codeblocks but facing problem with it

— It's quite new to me

— Do you have mingw

— Well I write simplest code in it and then it says it seems your file is not built I click on yes to build file but nothing happens
Until now I used turbo

Message permanent page

— 

It is showing error this file has not been built yet
I clicked yes to build file still again
Can anybody explain this situation

— Without any error code, screenshot or something, very little we can do

— What happened here

— I have usually used turbo c++

— I changed my code
Still that happens on codeblocks
Please admin reply here

— Why void main ? ofc u need to build ur code 1st

— Then execute

— You might want to fix some "errors"
- since your file extension is .c a compiler might try to compile it as C code. Better to use .cc or .cpp file extensions for C++ code
- void main() should be int main()
- iostream (without the .h)
- Prepend std:: to cout

E.g.

#include <iostream>
int main() {
std::cout << "this is fun";
}

Then try to build it

Message permanent page

— Ye, good answer :3

— I still don't get why some people use deprecated headers. Many things are wrong with people that start their journey with Turbo C++

Message permanent page

— Unfortunately there are a lot of rather bad C++ tutorials