Thank you guys for the input! I got it to work now! :D
Type: Posts; User: TheWhiffet
Thank you guys for the input! I got it to work now! :D
I've been tasked to do a program that separates and changes words from a string of words separated by " "(spaces) but I can't seem to make strtok work. I get errors saying: "Expected expression...
Thanks. :D
OK so I made this recursive function for getting the factorial of a number. Problem is, It only prints out the right answer for inputs up to 12. I can't get it to output the right answer for inputs...
OK so a friend of mine showed me a function which reverses a string of numbers. But I don't understand how it works for the part with the variable 'count'. If I change it to anything other than...
Done. Thank you guys for the help! I got it to work now. :D.
@laserlight; I've edited my first post to show the code I currently have. I just can't get them to call from the menu.
Also for ArunS, I was trying not to use global variables. XD
Ok, so I've separated the functions. How do I get the menu function to call them? It says the variables are undeclared. :confused:
By at the start of the menu do you mean the start of the menu function?
Err so what do I have to do? Do I have to declare them within the menu function?
I've been trying to get the menu to call the two functions using a switch function but I can't seem to get it to work properly. The codes work fine individually but when I try to put them together...
THANK YOU GUYS! :D I've got it to work now!
Thanks for answering but...
Can you please point out which part of the code is wrong? Is it the IF statement or something else? The only problem I'm aware of is the printing. It repeats the...
Err.. Well I was assigned to make a program which displays the prime and composite numbers
within the range of 1 to the designated input.
I managed to make the code print the output properly for...