Search:

Type: Posts; User: PaulS

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Modules

    by PaulS
    Replies
    9
    Views
    1,100

    I have the concept down - I guess I don't see an...

    I have the concept down - I guess I don't see an advantage to using it. Thanks for increasing my knowledge.
  2. Thread: Modules

    by PaulS
    Replies
    9
    Views
    1,100

    OK, I see that- I guess I am not advanced enough...

    OK, I see that- I guess I am not advanced enough to understand why or if it would affect the remaining code.
  3. Thread: Modules

    by PaulS
    Replies
    9
    Views
    1,100

    In post # 3, look at line 9 - it has a semicolon...

    In post # 3, look at line 9 - it has a semicolon - what is the reason for it?
  4. Replies
    4
    Views
    1,778

    As I understand it ANSI C is very limited in its...

    As I understand it ANSI C is very limited in its graphics capability. You could conceivably make a snake travel down the screen and with a lot of work get it to travel right and left but the snake...
  5. Replies
    2
    Views
    728

    bagiins34, No one here will write your code for...

    bagiins34,
    No one here will write your code for you.
    The rules say you have to submit your code for comments. (and assumes you can handle the comments that it draws)
  6. Replies
    13
    Views
    1,692

    Let me see if I understand; Hit a key, remember...

    Let me see if I understand;
    Hit a key, remember the value, display a '*'.
    Do that four times to get a four digit number, displaying '****'.
    Allow three cycles before sounding an alarm but interupt...
  7. What would be wrong with opening a file to append...

    What would be wrong with opening a file to append and follow each printf() statement with an fprintf() statement?
    Since the code is all inline within main() it would seem an easy method.
  8. Replies
    10
    Views
    5,640

    "C" is a structured programming language. "C"...

    "C" is a structured programming language. "C" programming is the art and sience of using that language to force a computer to perform the tasks you wish it to perform.

    "C" programming is an...
  9. Replies
    3
    Views
    1,141

    To write a rectangle you have to print each line...

    To write a rectangle you have to print each line of the rectangle from top to bottom.
    How would you use a loop to draw:

    "********"

    then how would you use a loop to draw:
    "* *"
    You see...
  10. Replies
    2
    Views
    555

    Without knowing what operating system you are...

    Without knowing what operating system you are using and the platform it is installed on It is hard to answer the quesation BUT

    just to make sure I am clear in what you are asking...

    is it...
  11. Replies
    16
    Views
    3,619

    While I can see your point, at 64 years old, one...

    While I can see your point, at 64 years old, one new language is more than enough to keep me busy right now ;)
    I know nothing about POSIX. Is there a stable standard for it as there is in C? Is it...
  12. Replies
    16
    Views
    3,619

    Is there a way to mark the thread as solved?

    Is there a way to mark the thread as solved?
  13. Replies
    16
    Views
    3,619

    Well, I thank you all for your time and thoughts...

    Well, I thank you all for your time and thoughts on this issue. It seems that this is just another of C99 limitations that I will have to find a work-around for. At the very least I might be able to...
  14. Thread: Heapsort

    by PaulS
    Replies
    7
    Views
    2,641

    look just at the line with your main function...

    look just at the line with your main function declaration.
    once you fix that line compare the braces in the rest of the code
  15. Replies
    16
    Views
    3,619

    'mkdir()' is another system call. I am keeping...

    'mkdir()' is another system call. I am keeping this software C99 compliant.
    This is how I checked for existing files before I save an unformated file:


    int savefile(void)
    {
    FILE *fptr;
    ...
  16. Replies
    16
    Views
    3,619

    Tim, If the path exists but the file doesn't I...

    Tim,
    If the path exists but the file doesn't I get the same value as if the path doesn't exist. Since I am appending a non-existant file (hopefully) how would I go about separating the existance of...
  17. Replies
    16
    Views
    3,619

    Is stat C99 compliant? As I understand it stat is...

    Is stat C99 compliant? As I understand it stat is a system call and therefore not C99 compliant. Am I wrong/
  18. Replies
    16
    Views
    3,619

    check path validity in C99?

    I need to check to see if a path exists before saving a file to it.
    My function has a "filespec" variable which contains the path and file name. Is there a way to check if the path exists?

    Here...
  19. I may be confused but can't you just: int...

    I may be confused but can't you just:

    int bigint1;
    int bigint2;
    int sum =0;
    print"enter first big int"
    get bigint1
    print"enter second big int"
    get bigint2
    sum = bigint1 + bigint2
  20. Salem, I worked over the function and found that...

    Salem,
    I worked over the function and found that as long as the pointer "fptr" wasn't NULL I could close it without any errors.
    I use "fclose" in both segments of the switch statement. That is, if...
  21. Thread: testing math.h

    by PaulS
    Replies
    6
    Views
    2,074

    Grumpy, So how do I add the math library to the...

    Grumpy,
    So how do I add the math library to the compile line when using Geany in Ubuntu 14.04.1?
  22. Salem, if fptr = null then it doesn't need to be...

    Salem,
    if fptr = null then it doesn't need to be closed. The new call places a new value to fptr that is not void and the file is opened for writing.
    It does seem to work as tested and it...
  23. Thread: testing math.h

    by PaulS
    Replies
    6
    Views
    2,074

    jimblumberg, I am using an IDE - I don't...

    jimblumberg,

    I am using an IDE - I don't understand how I am supposed to add the math library to the compile line.
    I don't add any of the other libraries - it is supposed to be done by the...
  24. Thread: testing math.h

    by PaulS
    Replies
    6
    Views
    2,074

    testing math.h

    I wrote this snippet to try some simple math but it appears I am the simple one:


    // Test for math.h
    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>

    int main(void)
  25. I found the problem.... using GDB! It was a...

    I found the problem.... using GDB!

    It was a stray newline character from the "getchar" that receives the choice for Rename or Overwrite.

    It seems I haven't gotten used to not controlling the...
Results 1 to 25 of 65
Page 1 of 3 1 2 3