Search:

Type: Posts; User: GuitGentlyWeeps

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    19,127

    Salem, I like it. Read it in as a string,...

    Salem,

    I like it. Read it in as a string, parse and now you have the exact representation to flog as you wish.

    Thanks for the reply.

    Bob
  2. Replies
    11
    Views
    19,127

    Thanks all of you. Double isn't even good...

    Thanks all of you.

    Double isn't even good enough due to the large multiplicative factor that is used.

    This is crazy. My problem is that I must prompt the user to enter in units which make it...
  3. Replies
    11
    Views
    19,127

    sscanf and float

    Hello,

    I have:

    char string[32];
    float theFloat;

    sprintf(string,"%f",.525);

    sscanf(string,"%f",&theFloat);
  4. Replies
    2
    Views
    1,514

    It depends what type of operating system...

    It depends what type of operating system environment that your program is running on.

    If you are using windows then look for microsoft doc on the WIN32 comm API. A better method would be to buy a...
  5. Replies
    2
    Views
    8,929

    Thanks, Yes you are so right. The thing that...

    Thanks,

    Yes you are so right. The thing that kept getting me was that I could declare other types as extern such as:

    extern int a;
    extern char b;

    The difference is that the compiler can...
  6. Replies
    2
    Views
    819

    If you initialize like so: int i = 5; Then,...

    If you initialize like so:

    int i = 5;

    Then, anywhere that the integer i is in scope, you can change its value:

    i = 2;
    i=0;

    But if you declare the integer as constant:
  7. Replies
    2
    Views
    8,929

    extern keyword and structures

    Hi folks,

    I understand the use of extern for different type objects, but I'm having trouble using extern on a global structure from one file in another file.

    file1.c declares and defines:
    ...
Results 1 to 7 of 7