473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Program that does nothing

suzee_q00
I have what I hope will be a simple question but then again I hope it's not simple so I don't have to feel like an idiot.
I built this program and it used to work but I added on to it and it stopped working. Does absolutely nothing. I started deleting lines of code and it still doesn't work. Any help would be greatly appreciated.
Expand|Select|Wrap|Line Numbers
  1.       int option; /*. . .and other variable declarations were here*/
  2.  
  3.  
  4.       do{
  5.          printf("1  -  Add a new car to inventory.\n");
  6.       printf("2  -  Remove a sold car from inventory.\n");
  7.       printf("3  -  Display info on car. (inv # needed)\n");
  8.       printf("4  -  Display cars of specific year.\n");
  9.       printf("5  -  Display cars within a price range.\n");
  10.       printf("6  -  Display cars of specified color.\n");
  11.       printf("7  -  Display all Cars in inventory.\n");
  12.       printf("8  -  Quit. (exit inventory tracking system)\n");
  13.       scanf("%d", &option);
  14.       scanf("%c", &enter_key);
  15.  
  16.       switch (option)
  17.       {
  18.              case 1: /*add a car to inventory*/
  19.                   printf("Enter the 4 digit year (ex. 1975):\n\t");
  20.                   scanf("%[^\n]s", &new_car.year);
  21.                   scanf("%c", &enter_key);
  22.                   printf("Enter the car's make (ex. Ford, Chevy, Honda . . .:\n\t");
  23.                   scanf("%[^\n]s", &new_car.make);
  24.                   scanf("%c", &enter_key);
  25.                   printf("Enter the car's model:\n\t");
  26.                   scanf("%[^\n]s", &new_car.model);
  27.                   scanf("%c", &enter_key);
  28.  
  29.                   /* . . .bunch of other printfs and scanfs, you get the picture*/
  30.  
Mar 9 '08 #1
1 1814
As it turns out the problem above was simple and yes I am an idiot. I had a # include in one of my files that was in lower case but my file name was in upper case. Once I changed the include the program runs. Still not error free but at least I can run it and track down the errors.

Not to worry, y'al haven't heard the last of me.

Thanks so much for being here
Mar 9 '08 #2

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

Similar topics

4
by: muser | last post by:
Can anyone run this program through their compiler or if they can see a logical error please point it out. I have my tutor working on it at the moment but I would rather a less ambigious response...
22
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
40
by: findmadhav | last post by:
I need a program in C (something like a TSR) which will automatically press the function key F6, say about every 5 seconds. Can anyone provide me with an exe of such a program? Thanks in advance.
1
by: Pål Johansen | last post by:
I made a program that does screen scraping from a website, but when running this progran on a Win 2003 server the httpwebrequest works fine for a while but suddenly never returns from the request...
55
by: Dev | last post by:
Hello Folks, I had faced this objective in one of my aptitude exams, that "What could be the smallest "C" program? And, as we know, smallest program means, it should execute single statement,...
6
by: Alexander Widera | last post by:
hello, if i start a program (an exe-file) with Process.Start(...) I don't have the required permissions that the programm needs (i could start the programm but the program needs special rights)....
23
by: JoeC | last post by:
I am a self taught programmer and I have figured out most syntax but desigining my programs is a challenge. I realize that there are many ways to design a program but what are some good rules to...
20
by: Francine.Neary | last post by:
I am learning C, having fun with strings & pointers at the moment! The following program is my solution to an exercise to take an input, strip the first word, and output the rest. It works fine...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.