Author Topic: iostream  (Read 2471 times)

Offline zdubair

  • Multiple posting newcomer
  • *
  • Posts: 13
iostream
« on: December 19, 2015, 04:00:28 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7607
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: iostream
« Reply #2 on: December 19, 2015, 07:46:47 pm »
Most of the time a wrong file-ending. Most likely just *.c instead of *.cpp .

Offline zdubair

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: iostream
« Reply #3 on: December 19, 2015, 09:06:21 pm »
OK  tx   :)  Works fine now....

Greetings zdubair.com.se
« Last Edit: December 19, 2015, 09:10:41 pm by zdubair »