Orwell Dev-C++

Feb 7, 2012 at 6:08pm
I just download the portable application Orwell Dev-C++ from http://sourceforge.net/projects/orwelldevcpp/ and need some help.

I usually use Borland c++ 4.5, which is installed on the computers at my college's computer lab. I needed a c++ compiler which would work at home (win 64-bit).

I copied the code I made in borland into the Orwell Dev-c++ but it didn't work. What do I need to do?

Here is the code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//hangman
//Dylan Metz

#include <iostream.h>
#include <string.h>
#include <fstream.h>

int main()
{
char name[20];
char q[1]; //The User's Guess


ifstream myfile;
myfile.open ("hangman.txt");

myfile >> name;

cout << name;


if ( q<=0)
{
cout<<"Game Over"<<endl;
cout<<"The word was "<<name<<endl;
}
else
{
cout<<"You have more guesses"<<endl;
}



return 0;
}
Feb 7, 2012 at 6:09pm
Feb 7, 2012 at 7:01pm
Code::Blocks is just as easy an interface and works with many different compiler backends.
Feb 7, 2012 at 7:35pm
@L B

http://orwellengine.blogspot.com/ :
Changes - Version 5.1.0.0 - 27 December 2011
- ...
- Updated MinGW32 to GCC 4.6.2. Added TDM-GCC 4.6.1 x64.
- ...


Maybe we witness a real resurrection here...
Feb 7, 2012 at 8:13pm
Until the Orwell production becomes official, I'm not going to change my article. When it does, of course, I will make sure to indicate that this was an article deprecating Dev-C++ 4.9.9.2. :)

Now then. Technicalities aside...

@OP
You may want to remove the .h suffix from your header names. It should compile fine then, although I would also get rid of the C-style strings on lines 10 and 11 and replace them with std::strings. :)

-Albatross
Last edited on Feb 7, 2012 at 8:18pm
Topic archived. No new replies allowed.