You've lost me, sorry...
Type: Posts; User: twazzler
You've lost me, sorry...
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");
...
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...
oh lawd...facepalm
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...
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...
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 ;-)
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!
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;
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....
nonoob, you are a gentleman and a scholar
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...
Thank you - so was there no way of doing what I wanted to do with a while loop? It would have to be for?
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...
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...