News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

iostream

Started by zdubair, December 19, 2015, 04:00:28 PM

Previous topic - Next topic

zdubair

Hello

When i run this
// my first program in C++
#include <iostream>

int main()
{
  std::cout << "Hello World!";
}

i get error

iostream  - no such file or directory

What is wrong?

Greetings zdubair.com.se

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Most of the time a wrong file-ending. Most likely just *.c instead of *.cpp .

zdubair

#3
OK  tx   :)  Works fine now....

Greetings zdubair.com.se