so what should I use %f?
pretty interesting site Dave_Sinkula
Type: Posts; User: xsouldeath
so what should I use %f?
pretty interesting site Dave_Sinkula
#include <stdio.h>
int main()
{
double x;
char s[200]="22.453";
x=strtod(s, (char **)NULL);
printf("%lf",x);
int main()
{
double x;
char s[200]="22.453";
x=atof(s);
printf("%lf",x);
}
well I'm given the function prototype like I said... any ideas on how to solve this ...
to have a
void foo(char *s) that changes a string in the main program...
It works when I use strcpy...
too bad u have to do it with C ... well
mmm.. javascript:alert(document.links[0]) ... if you could get access this links array from C I think it would be good..
would be amusingly easier in...
okay, well I am not familiar with assert, so from a Google search, it looks like it gives errors if allocation fails.. anyways in
foo()
1)what exactly does str=temp; do?...
Perhaps this will resolve my question once and for all!...
I need to pass x to foo(char *s) and change it to "House".
If possible I would like to keep the main program intact, and change only...
Yes,
You print "please enter text line: "
before looping and then you only want it to say enter a new text line when they enter the "\n" newline (i.e. PRESS ENTER KEY) character. I hope that...
edited to include time delay I found at http://www.newton.dep.anl.gov/askasci/comp99/CS042.htm
Unfortunately a value of < 10 ..makes it pause for like 45 seconds from what I see.
<5 goes for...
If I stick to using strcpy to copy ... notice how here I can't and even strncpy can't work
instead I would need concatenation of this new character to the rest of the string.
I also tried char...
in c programming language.
I have 1 question
1)
#include <stdio.h>
#include <string.h>
int main()
{