Hello All. I wanted to thank everyone that helped me with problems this weekend. I finely got the code to work. I will add it here for those interested.
#include <stdio.h>
#include...
Type: Posts; User: Ruger06
Hello All. I wanted to thank everyone that helped me with problems this weekend. I finely got the code to work. I will add it here for those interested.
#include <stdio.h>
#include...
Hello laserlight;
If you don't mind, where do you live? I live if Ft. Worth Texas.
OK. no warnings now but if you enter incorrect ID or password and have to re-enter one or both, once you get in the program doesn't recognize any of your choice selections as valid.
/* Leslie...
Changed
printf("Please input gender: ");
strcpy(temp, " ");
scanf("%s", temp[i]);
strcpy(mem[i].gender, temp[i]);
...
Stupid mistake . For got to end main with (return 0) this took care of one warning. Only 4 left. Is it possible that I left out a necessary header file?
Ok, here is new code with new warnings
/* Leslie Bauert
CSE1311 HW 8
Aug. 11, 2014
*/
Ok laserlight;
I take it that this line "Change the %s to %s, re-compile, then work on the next warning/error." was meant to say change %s to %c. Is this correct?
Hello laserlight ;
In response to your post, how do you suggest that I go about fixing the problem. I have no experience handling errors. My class never even touched on the subject. I have tried...
Here are the current warnings:
C:\Users\Leslie Bauert\Documents\Summer Programming in C\Homework8\Homework8.c||In function 'main':|
C:\Users\Leslie Bauert\Documents\Summer Programming in...
Hello All;
I have a program that is giving warnings when compiled but I do not understand why. Here is the code:
/* Leslie Bauert
CSE1311 HW 8
Aug. 11, 2014
*/
laserlight: you are correct, if the word in the array words is not in the dic array it is misspelled. The dic file holds all of the words that appear in the words array, but some of them are...
Hello again, I have used strcmp before on one dimensional arrays but not 2 dimensional arrays.
The problem is that I have one 2d array that has text with some misspelled words and I have to compare...
Thanks to all who responded. Again the main problem was the way in which the professor worded the question. What he was really asking for was to find the element in each row with the highest value,...
Hello Alpo;
First to clarify, this is a sample problem to use to prepare for the final not an actual homework problem, so my problem is that I have never seen a problem like this and therefore don't...
The middle row would be data[1][], there is no mention of how large the elements can be. If I knew that, I believe I would just multiply it by 4 to determine the max. and then use a printf statement.
Hello All;
I was given some practice problems in my programming class, to prepare for the final and I don't quite understand what this one is asking for exactly:
Write the remainder of the...
I wanted to thank everyone for their input the instructor changed the instructions at 2:00 pm today. We are now setting the size of the array to 10. I don't have any trouble with this one. I do plan...
I understand what you are saying, but can you point me in the direction of a good source for instruction on the use of malloc?
I was afraid that malloc was going to be the answer. We have not discussed malloc at all in class yet. Where would you suggest I look for the simplest explanation of how to do what you suggested?
Hello All;
I have a new problem. The instructions call for the user to define the size of the array and all I have ever done is use a predefined size for the array and then let the user fill it....
Sorry I did not get back here sooner. I did get all of the bugs out. Here is what I ended up with. And again thank you to all that gave input.
#include <stdio.h>
#include <stdlib.h>...
I still do not know how to get fix these two warnings
C:\Users\**********\Documents\Summer Programming in C\Homework4\Homework_4.2.c:52:25: warning: format '%s' expects argument of type 'char...
Never mind, I figured out what you meant by post 12.
What is this post #12 and where is it?
Do you have any suggestions on how to solve this problem?