3

Learning C++ with Programming Principles and Practice Using c++, I done this

#include "../../../std_lib_facilities.h"
using namespace std; 

int main()
{
    cout << "Hello programming!\n";
    return 0;
}

First I got warning with "PDB files not found" after debugging. Then I solved that, and getting this,

'FLTK testing.exe' (Win32): Loaded 'C:\Users\Chai\Documents\Visual Studio 2013\Projects\FLTK testing\Debug\FLTK testing.exe'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120.dll'. Symbols loaded.
'FLTK testing.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Symbols loaded.
The program '[7320] FLTK testing.exe' has exited with code 0 (0x0).

But I'm still not getting the output showing "Hello programming!". I have tried cin.get() too but no result. Any advice??

Sheng Fang
  • 21
  • 3
JJChai
  • 117
  • 1
  • 2
  • 10

1 Answers1

0

Try adding flush call:

#include "../../../std_lib_facilities.h"
using namespace std; 

int main()
{
    cout << "Hello programming!\n";
    cout.flush();
    return 0;
}
yorammi
  • 6,272
  • 1
  • 28
  • 34