Search:

Type: Posts; User: twazzler

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,538

    You've lost me, sorry...

    You've lost me, sorry...
  2. Replies
    9
    Views
    3,538

    Hi Tater, Thanks for replying. Do you mean...

    Hi Tater,

    Thanks for replying. Do you mean like this?

    char mystring[MAX];

    printf("Please enter a string of characters.\nEnter quit when done.\n");

    ...
  3. Replies
    9
    Views
    3,538

    fgets() and EOF

    Hello again,

    Is there a way of turning my code below into a loop which terminates when the user types in "quit"? The usual methods don't seem to work - Pelles C keeps throwing errors about...
  4. Replies
    2
    Views
    1,692

    oh lawd...facepalm

    oh lawd...facepalm
  5. Replies
    2
    Views
    1,692

    Function definition problem with scanf()

    Hello once more,

    I suspect that I may be again overlooking something simple, but for some reason my code is outputting gibberish when it should be simply using a function to take two arguments (a...
  6. Replies
    17
    Views
    3,222

    Heh...I'm old skool, chap. I'll try your...

    Heh...I'm old skool, chap.

    I'll try your recommendation, can't be any worse than some I have tried (I found Dev-C to be the least annoying and most user-friendly and for some reason it's very hard...
  7. Replies
    17
    Views
    3,222

    That would have been a big help and saved a lot...

    That would have been a big help and saved a lot of time, yes - does Dev-C have such a setting?

    Yes, I know, I should RTFM ;-)
  8. Replies
    17
    Views
    3,222

    I've just figured it out - I hadn't to changed my...

    I've just figured it out - I hadn't to changed my ints (dub1 and dub2) to doubles - doh

    Thanks for all your help - I'll be back!
  9. Replies
    17
    Views
    3,222

    Here's my code with the ints changed to doubles...

    Here's my code with the ints changed to doubles and %d changed to %lf (or just %f)


    #include <stdio.h>

    void printfunc(double, double);

    int main(void)
    {
    int dub1, dub2;
  10. Replies
    17
    Views
    3,222

    Very simple Function using printf()

    Hello again,

    This code uses a simple function that takes two arguments and just prints them. This is easy when using two int (%d) arguments. However, I want to take two double arguments (i.e....
  11. Replies
    11
    Views
    1,432

    nonoob, you are a gentleman and a scholar

    nonoob, you are a gentleman and a scholar
  12. Replies
    11
    Views
    1,432

    Thanks again. I have also written some code...

    Thanks again.

    I have also written some code which replaces the vowels of an inputted sentence with 'Z'. If I wanted to remove the whitespaces from the outputted sentence, what would I put below if...
  13. Replies
    11
    Views
    1,432

    Thank you - so was there no way of doing what I...

    Thank you - so was there no way of doing what I wanted to do with a while loop? It would have to be for?
  14. Replies
    11
    Views
    1,432

    Did I even read my text book?! Yes I did,...

    Did I even read my text book?!

    Yes I did, until the words became a painful blur...it wasn't very helpful, hence my posting the question here.

    Very kind of you to reply, but where in the code...
  15. Replies
    11
    Views
    1,432

    n00b question regarding loop termination

    Hi,

    I'm a beginner, please be gentle!

    I have created a very simple program which reads in the dimensions of a rectangle then calculates area and volume.

    The loop will terminate if a...
Results 1 to 15 of 16