Search:

Type: Posts; User: TheWhiffet

Search: Search took 0.00 seconds.

  1. Thank you guys for the input! I got it to work...

    Thank you guys for the input! I got it to work now! :D
  2. Strtok - Expected expression and too few arguments?

    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...
  3. Thanks. :D

    Thanks. :D
  4. Recursive function outputs the wrong value at higher numbers?!

    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...
  5. Replies
    3
    Views
    1,810

    How does this function work?

    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...
  6. Replies
    17
    Views
    2,444

    Done. Thank you guys for the help! I got it to...

    Done. Thank you guys for the help! I got it to work now. :D.
  7. Replies
    17
    Views
    2,444

    @laserlight; I've edited my first post to show...

    @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
  8. Replies
    17
    Views
    2,444

    Ok, so I've separated the functions. How do I get...

    Ok, so I've separated the functions. How do I get the menu function to call them? It says the variables are undeclared. :confused:
  9. Replies
    17
    Views
    2,444

    By at the start of the menu do you mean the start...

    By at the start of the menu do you mean the start of the menu function?
  10. Replies
    17
    Views
    2,444

    Err so what do I have to do? Do I have to declare...

    Err so what do I have to do? Do I have to declare them within the menu function?
  11. Replies
    17
    Views
    2,444

    Can't call from within switch?

    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...
  12. Replies
    5
    Views
    1,374

    THANK YOU GUYS! :D I've got it to work now!

    THANK YOU GUYS! :D I've got it to work now!
  13. Replies
    5
    Views
    1,374

    I still don't get it though. T_T

    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...
  14. Replies
    5
    Views
    1,374

    Beginner Programmer. Help please!

    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...
Results 1 to 14 of 14