Anybody know why this (source files acting odd) happens?

I was going to come here for help on a typical C++-related problem (here's a hint: it was about recursion), which I'll post later tonight. Guess I've got another problem now. Apologies if this isn't a 'real' C++ problem, but I've run into it enough, I've just about had it.

When I "Save Project As" in Dev-C++, I at times get a Source file (.cpp) looking like this:
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[Project]
FileName=C:\Users\Owner\Desktop\CPlusPlus\recustionstuff.dev
Name=Project1
UnitCount=1
Type=1
Ver=1
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
OverrideOutput=0
OverrideOutputName=
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=

[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0

[Unit1]
FileName=C:\Users\Owner\Desktop\CPlusPlus\starput2.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=


This is the actual code for starput2.cpp. How/Why/Wherefore does this happen?
closed account (S6k9GNh0)
Erdrigard: The fix is to not use Dev-C++. Instead use wxDev-C++ or another alternative such as Code::Blocks or Eclipse.
Last edited on
Thanks. I had an idea it might simply be a Dev-C++ problem.
Topic archived. No new replies allowed.