473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

why cannot run...mention there are fatal errors cannot open file "Debug

1 New Member
Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2.  
  3. #include <math.h>
  4.  
  5. void main()
  6.  
  7. {
  8.     float p,r,n,a;
  9.     double x;
  10.     int i;
  11.  
  12.     printf("Please enter your deposit in your account : ");
  13.     scanf("%f",&p);
  14.     printf("Please enter your annual interest rate : ");
  15.     scanf("%f",&r);
  16.     printf("Please enter your year :");
  17.     scanf("%f",&n);
  18.  
  19.  
  20.     for (i=1;i<=n;i++)//sum from 1 to the n
  21.  
  22.     {
  23.         x= p*(1+ r);
  24.         a= pow (x,i);
  25.         printf("Your amount of saving account in %d year is %f \n",i,a);
  26.  
  27.  
  28.     }
  29.  
  30. }
Nov 25 '13 #1
3 1267
johny10151981
1,059 Top Contributor
What is the name of missing file? what compiler are you using? what os?
Nov 25 '13 #2
Banfa
9,065 Recognized Expert Moderator Expert
This is nothing to do with the source code, so the probable cause is the set-up of your compiler, platform or IDE.
Nov 25 '13 #3
weaknessforcats
9,208 Recognized Expert Moderator Expert
The most obvious reason for not being able to open the debug version of your program is that the file is already open->from your previous debug session.

Be sure all of your debug sessions are closed and then rebuild.
Nov 29 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gary | last post by:
Downloaded the packages from sunfreeware.com and did pkgadd When I try to run safe_mysqld I get fatal: libz.so: open failed: No such file or directory This library is indeed missing ...
1
by: mariox | last post by:
Hi everybody, compiling a program I receive this message: Fatal: Unable to open file 'WS2_32.OBJ' Object file "programName.OBJ" is created, but I can't link it. Anyone can help me, please?...
1
by: Amrit Kohli | last post by:
Hello. I am trying to run the VS C++ compiler from the command line. I enter the following: cl -GX prog1.cpp It compiles the file fine, but then when it goes to link the object file, I...
2
by: danip | last post by:
Hi, I have a C# project that have a C++ .net DLL as a reference. Everything is working okay, except when I try to rebuild only the C++ DLL I receive the error: fatal error LNK1104: cannot open...
1
by: Durga | last post by:
HI, I am converting VC++ 6.0 to .NET 2003. But I am getting linker error. Error: MyApplication fatal error LNK1104: cannot open file 'libci.lib'. MyApplication has OpenSSL, MFC and win 32...
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
4
by: =?Utf-8?B?R3JhbmRtYSBDYXJvbA==?= | last post by:
Can anyone tell me what the following message mean? "cannot initialize application, unable to open file {15034:1:8] I am getting this message when I try to open a video software from my desktop....
3
by: curious2007 | last post by:
#include "chartdir.h" int main(int argc, char *argv) { // The data for the bar chart double data = {85, 156, 179.5, 211, 123}; // The labels for the bar chart const char...
5
by: ramrooney | last post by:
hi, i am trying to port my project from vc 6.0 to visual studio 2005 i getting the error fatal error LNK1104: cannot open file 'mfc42d.lib' can anyone tell me how to rectify this error..???
1
by: kavi1 | last post by:
Iam getting the following error while i build my project "LINK : fatal error LNK1104: cannot open file ..." While i try to build individual projects it builds fine,but when i build my main project...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.