you need a function to take the string entered and copy it to an array. Then have another function call the array and look to see if the LETTERS in the stored array match the ones in a predetermined...
Type: Posts; User: zach48191
you need a function to take the string entered and copy it to an array. Then have another function call the array and look to see if the LETTERS in the stored array match the ones in a predetermined...
I would not recommend that as you might want to use it for another function. Rather in the main function set it to
double base = 20.00;
This way basic will always be 20.
Now all you have...
after your
#include "lab10.h"
you need to call your functions below like
#include "lab10.h"
Also you should just set the basic cost at a certain variable and then just reference it to the others so you can always add the basic cost to your other selections.
Thanks for clearing that up makes perfect sense now... I cant believe it still worked even with them. It works great now and I added continue in the IF loop so that it will keep going. I took out the...
what do you mean by 0 to 9 and not '0' to '9'?? I thought that ' ' around a character defines it?
It just made it go to invalid number first and every number after that it would not take and the output was 0 0 0 0 0 = 0
I can get it to work correctly without the else statement, but I want my...
I had a quick question about this part of the code
for (i=0; i < MAXLEN && i!= EOF; i++)
{
printf("Enter numbers between 0-9 \n"); /* Asks the users for a number 0-9 */
...
Do you think I should put a different number for the character if it is not have a - in front of it? Also can you explain more on the insert the expanded list of characters?? I'm confused by what you...
well im trying to do for my input a-f, I thought i got through it by looping the string with either a 1 or 0 as processed or not, it will run through the entire string until it has processed all the...
So after a week of redoing this program im so close but I still am having trouble with my expand function I can get it to process the char, but still wont expand it maybe I have it wrong idk can...
So here today I am writing this code that will expand on the test string I have created ie. a-f which will write out abcdef. I have most of my logic hopefully correct but the debugger hates my expand...
I fixed my code just wanted to post the correct code only took me another 4 hours of debugging and checking -_-;; Cheers to the next lucky guy who needs it! >.<
#include <stdio.h>
int...
Now it says with the int taken out of the shellsort call " warning: passing argument 1 of âshellsortâ makes pointer from integer without a cast" so confused also I tried this code and it debugs fine,...
I am suppose to
"Create a program to read an array of characters from the keyboard terminated by EOF. Count the number of characters that are entered. The characters should be stored into an...