The Dev-C++ IDE / compier /runtime

I have downloaded DevC++
It installed alright
I entered some test code
It was compiled alright (no errors)
When I run it nothing happens
Please advise


Does it show a black screen for a split second? Or is it absolutely nothing?
If the former, probably addressed by the sticky: http://www.cplusplus.com/forum/beginner/1988/
Paddy de Ridder wrote:
Please advise

Show your code.
Re show your code:
When I press Run absolutely nothing happens.



1
2
3
4
5
6
7
8
9
#include<stdio.h>


int main()
{
    puts("Hello World");
    getchar();
    return 0;
}
Last edited on
Have you followed Ganado’s advice?
What happens if you execute this code:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <limits>


int main()
{
    std::cout << "Hello word.\n";
    std::cout << "Press ENTER to exit...\n";
    std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}

Paddy de Ridder wrote:
When I press Run absolutely nothing happens.


Press any character, then [enter]. It's probably buffering the output. Alternatively, just remove line 7.

Then cut and paste @Enoizat's code and run that.
I deleted the newly download version, cleared up all the rubbish, and downloaded the new version again, with the same no good results. So I reinstated the old version of which I still had the install-file. Now all is well again.

Thank you for responding to my query.

Patrick.
Topic archived. No new replies allowed.