HELP PLEASE!!

Wrote three parts of my code and was just about done. Which took about five hours which I dont have a again. When I opend it up it looks like this now! Please tell me there is a way to fix it..Please....

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
60
61
62
  [Project]
FileName=Assign 4.cpp
Name=Assign 4
Type=1
Ver=2
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
LogOutput=
LogOutputEnabled=0
OverrideOutput=0
OverrideOutputName=
HostApplication=
UseCustomMakefile=0
CustomMakefile=
CommandLine=
Folders=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000000000000
UnitCount=1

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

[Unit1]
FileName=Assign 4.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=


It does run and do what it's suppose to but I dont know why, and I dont know how to get the code back.
Well, if it does run, then I suggest that you look somewhere on your computer for a file called
Assign 4.cpp
Then it brings up with is weird code^
Last edited on
DevC++ uses a project file, ending with a .dev suffix, which controls the settings for the project.
A simple one might start like this:
1
2
3
[Project]
FileName=Hello.dev
Name=Hello


and then further down it could have:
1
2
[Unit1]
FileName=main.cpp


Unfortunately it looks as though you might have accidentally over-written your cpp file (with your precious code) with the project file (which is automatically generated). If so, then your work may have been lost.

Some editors and IDEs keep automatic backups, but I don't think devc++ does, so you may be unlucky. (I hope not).
Unforntently the code was forever lost. Had to re-write it, thank you for trying to help. Always taking a picture of my code just in case from now on
Topic archived. No new replies allowed.