Search:

Type: Posts; User: xsouldeath

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    2,368

    so what should I use %f? pretty interesting site...

    so what should I use %f?
    pretty interesting site Dave_Sinkula
  2. Replies
    10
    Views
    2,368

    #include int main() { double x;...

    #include <stdio.h>

    int main()
    {
    double x;
    char s[200]="22.453";
    x=strtod(s, (char **)NULL);

    printf("&#37;lf",x);
  3. Replies
    10
    Views
    2,368

    convert string to double

    int main()
    {
    double x;
    char s[200]="22.453";
    x=atof(s);
    printf("&#37;lf",x);


    }
  4. well I'm given the function prototype like I...

    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...
  5. Replies
    9
    Views
    2,902

    too bad u have to do it with C ... well mmm.....

    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...
  6. okay, well I am not familiar with assert, so from...

    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?...
  7. Perhaps this will resolve my question once and...

    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...
  8. Yes, You print "please enter text line: "...

    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...
  9. edited to include time delay I found at ...

    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...
  10. If I stick to using strcpy to copy ... notice...

    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...
  11. modify pointer to a string/character constant.

    in c programming language.
    I have 1 question
    1)


    #include <stdio.h>
    #include <string.h>
    int main()
    {
Results 1 to 11 of 12