After I entered two topics using the case '1' , I used the case '5'. After seeing the display, the category and the term show the right user input, but the description and the value always shows the...
Type: Posts; User: cloudpuffballz
After I entered two topics using the case '1' , I used the case '5'. After seeing the display, the category and the term show the right user input, but the description and the value always shows the...
Is there any way for me to make sure that the user would at least input a single character? If there is, can you guys make a sample? :)
I see, thanks for helping.. i'll really try not to use the gets(); anymore :)
This code is weird, but it kinda worked..
Maybe the code doesn't get the input when you use gets(); for the first time?????
void addTopic(struct theTopic *info)/*This one is for adding a...
Oh yeah, sorry about editing a while ago, i had forgotten to add some stuff in the code that's why I edited it.
I run the program again, and then I pressed '1' and then entered, then it showed something like this:
Please enter the term:<---- Skipped
Enter the category:
_ <---- I can only input here
I run the program again, and then I pressed '1' and then entered, then it showed something like this:
Please enter the term:
Enter the category:
_ <---- I can only input...
I see.. is there any better way to get the user's input of more than one string?
Are there any ways to make the gets(); make the user input the string? Because my teacher said that if I wanted the user to enter more than one string, then I must use the gets(); function..
oh...
Hey there, I have this problem with the gets();. My problem is that the gets(); only gets the the "Category's", and it does not allow the user to input the "Term's". Can you guys help me with this? I...
:confused: I am still new to this programming, my goal is to be able to tell whether the variable is already used using the logical operators. And if the variable is not yet used, then there will be...
Thank you! :D
Can anyone explain to me the use of exit() ? What is the difference of exit(1) and exit(0)? I would be really grateful if someone could explain me about it.. :D
Um, can you please explain why i shouldn't call main from each functions??? Sorry im still new to this C programming..
Oh i see.. i keep getting errors: array subscript is not an integer & too few arguments to function `totalnutribought'.. umm.. how do I take 'em away???? I'm still kinda new to this..
Guys, this program is supposed to let the user choose their option in the menu..
One of the options is to let the user input stuff and then they will not be allowed to use that option...
It is supposed to run like what you run a while ago, but when I run it, I always get 1.#J as my servings.. :)
Hi guys.. This code is supposed to divide then show the output of the servings.. but this keeps on outputting as 1.#J. I'd appreciate if you guys can help me with this. :biggrin:
float...