Forum: Legacy and Other Languages Sep 22nd, 2009 |
| Replies: 0 Views: 528 Hi,
I am trying to complete an example from the book SQL for Microsoft Access. I have typed it into Access just as it appears in the book. When I run it, however, I get an error message telling me... |
Forum: C Jan 15th, 2009 |
| Replies: 10 Views: 769 You guys keep telling me to look in the docs. Well, if I understood the docs, then I wouldn't be here. |
Forum: C Jan 14th, 2009 |
| Replies: 10 Views: 769 If I put in fgets instead, then I get this error message:
line 20: error C2660: 'fgets' : function does not take 1 arguments |
Forum: C Jan 14th, 2009 |
| Replies: 10 Views: 769 Hi,
I am working on a program that opens a file, reads the text, converts the text to uppercase, and then displays it on the screen. If I write the program to just type in a string and convert it,... |
Forum: C Jan 9th, 2009 |
| Replies: 15 Views: 942 That is how I had already decided to set it up since asking for the day by name wasn't working. |
Forum: C Jan 8th, 2009 |
| Replies: 3 Views: 368 Thanks for taking a look at it. I eagerly await your response. Sorry about the code tags. I clicked the button to place them, but I must have accidently pasted over them. Yes, that should be a 7. I... |
Forum: C Jan 8th, 2009 |
| Replies: 3 Views: 368 Okay, so I have a menu and a linked list, but I have three problems. First of, if you select option one and enter a name it keeps prompting you to enter another and another. It won't accept any other... |
Forum: C Jan 7th, 2009 |
| Replies: 15 Views: 942 I want to ask them with a prompt, "What day is it?
I then want them to enter Sunday, Monday, etc.
I used %c because I was trying to reading the name of the day, which would be a set of... |
Forum: C Jan 5th, 2009 |
| Replies: 4 Views: 1,162 I managed to fix the first one, so now I just need help with the second program. |
Forum: C Jan 5th, 2009 |
| Replies: 4 Views: 1,162 There are specifically two of them that are giving me this problem. The error appears as a pop-up. The debug tool, however, doesn't show an error.
#include <stdio.h>
#include <string.h>
#include... |
Forum: C Jan 5th, 2009 |
| Replies: 4 Views: 1,162 I was working on some programs and now, no matter which one I run, I get an error like this: Unhandled exception at 0x00411be0 in program.exe: 0xC0000005: Access violation writing location... |
Forum: C Jan 4th, 2009 |
| Replies: 15 Views: 942 I did that and it printed Hooray, it's the weekend! The thing is, however, that I need it to assign the day based on what the person enters. I thought that the scanf would do that. |
Forum: C Jan 4th, 2009 |
| Replies: 15 Views: 942 Like this?
#include <stdio.h>
int main()
{
enum week { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } today;
today = Sunday;
printf("What day is today? "); |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 I don't insist upon using scanf. If you have a better suggest, then I am perfectly happy to hear it.
Trying you suggestion did cause each line to display. I was able to enter a number, a... |
Forum: C Jan 4th, 2009 |
| Replies: 11 Views: 1,357 If I try that instead it results in this error message: fatal error C1903: unable to recover from previous error(s); stopping compilation |
Forum: C Jan 4th, 2009 |
| Replies: 15 Views: 942 Okay, but I get the else even when I type in Monday or Tuesday. When I do that isn't it giving today the value of those days, which should result in: Hooray, it's the weekend! Only it doesn't. |
Forum: C Jan 4th, 2009 |
| Replies: 11 Views: 1,357 Okay, well that is how I have it now, so why isn't it displaying on one line? |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 *Sigh* Okay, but could we please get back to trying to work this out. I'm at a total lose. I really appreciate the help that has been given and I just need to ask you all to show me a bit more... |
Forum: C Jan 4th, 2009 |
| Replies: 7 Views: 724 Yeah, I've read the book and I've read explanations online. The book has some sample programs for you to mess about with, but nothing like the the one that I described. I just really need a good... |
Forum: C Jan 4th, 2009 |
| Replies: 15 Views: 942 I'm creating a program that is supposed to have enumerated constants that contain days of the week. I am also supposed to have a variable called today that is of type week. Okay, I think I have done... |
Forum: C Jan 4th, 2009 |
| Replies: 11 Views: 1,357 I had %s before, but you implied that I should change it so I went with %c. Anyway, I put it back now and that made some progress. The text is displaying almost right. Here is what I have now:
This... |
Forum: C Jan 4th, 2009 |
| Replies: 7 Views: 724 No, my point wasn't that I wanted the answer. My point was that I wanted examples and tutorials because I can't find anything helpful and the book isn't helping me to figure this out.
I never said... |
Forum: C Jan 4th, 2009 |
| Replies: 11 Views: 1,357 Okay, here is what I've got now. I'm not sure which folder the exe is in, so I went with some really overkill here and put a copy of the document.txt file in every folder. Now it is doing something... |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 If I knew what I was doing, then I wouldn't be asking for help. In answer to your question, no I don't have a manual. All I have is the help file and it isn't really any help at all.
I don't... |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 Well, you were right. It finally ran, but it still didn't work properly. It displayed the line, "Please enter an integer:", so I did. I pressed enter and then it displayed both of the next two lines,... |
Forum: C Jan 4th, 2009 |
| Replies: 11 Views: 1,357 Hi,
Okay, so what I am actually trying to do is open a file, convert any lowercase text to uppercase, and then print it on screen. I thought it best to first just begin by trying to open a file... |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 Here is what I have now with assemble outside of main. I am still getting the same errors that I mentioned in my last post.
#include <stdio.h>
#include <string.h>
#include "string.h"
void... |
Forum: C Jan 4th, 2009 |
| Replies: 7 Views: 724 Hi,
I need to create a menu of items that the user can select from. These choices will either create a linked list, add an item to the linked list, modify a current entry in the list, delete an... |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 I tried your suggestions and now I get these errors:
error C2440: '=' : cannot convert from 'int' to 'char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast... |
Forum: C Jan 4th, 2009 |
| Replies: 13 Views: 779 Hi,
I am trying to run this program, but I am getting two error messages that prevent it from running. I don't really understand what the problem is or how to fix it. Could someone please help?... |
Forum: C Dec 29th, 2008 |
| Replies: 9 Views: 510 Well, since I am the original poster, I can say that my question was answered. I was just about to ask if there was a way to mark this as solved when I looked up and saw it right above this box.... |
Forum: C Dec 28th, 2008 |
| Replies: 9 Views: 510 Thanks! < or equal did just what I wanted. |
Forum: C Dec 28th, 2008 |
| Replies: 9 Views: 510 I tried this and now I have the opposite problem. The last number doesn't print. Suggestions? |
Forum: C Dec 28th, 2008 |
| Replies: 9 Views: 510 Hi,
I am trying to change the address in an array using *nums++. When I run the program, however, the first number in the array is skipped. What am I missing? How do I get the first number to... |
Forum: C Dec 20th, 2008 |
| Replies: 11 Views: 883 Yes, that is what I was referring to when I mentioned your suggestion and I have also found that it skips row 0. Is there any way that the rows could be labeled starting with row 1 that wouldn't be a... |
Forum: C Dec 20th, 2008 |
| Replies: 11 Views: 883 Okay, I tried it the way that you suggested and it still starts with row 0. It also causes other problems with the program. |
Forum: C Dec 20th, 2008 |
| Replies: 11 Views: 883 Okay, I take that back. I previously tried to set rowNum = 0 to 1 and that was when the addition didn't work. |
Forum: C Dec 20th, 2008 |
| Replies: 11 Views: 883 Hmm, mine doesn't display the Sum of all elements. Weird. Other than that, it works fine once I discovered the problem that I mentioned above. Anyway, I thought of replacing the 0 with a 1, but that... |
Forum: C Dec 19th, 2008 |
| Replies: 11 Views: 883 Okay, I managed to figure out that I had my % in the wrong place, so that is why the ds were printing. I have now, however, just noticed that the line Sum of all elements = %d\n is not displaying.... |
Forum: C Dec 19th, 2008 |
| Replies: 11 Views: 883 Hi,
I am trying to get an example program to run, but it isn't working. I've probably typed something incorrectly, but I have checked three times and I just don't see it. Anyway, it's a sample... |