I have the concept down - I guess I don't see an advantage to using it. Thanks for increasing my knowledge.
Type: Posts; User: PaulS
I have the concept down - I guess I don't see an advantage to using it. Thanks for increasing my knowledge.
OK, I see that- I guess I am not advanced enough to understand why or if it would affect the remaining code.
In post # 3, look at line 9 - it has a semicolon - what is the reason for it?
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...
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)
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...
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.
"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...
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...
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...
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...
Is there a way to mark the thread as solved?
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...
look just at the line with your main function declaration.
once you fix that line compare the braces in the rest of the code
'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;
...
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...
Is stat C99 compliant? As I understand it stat is a system call and therefore not C99 compliant. Am I wrong/
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...
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
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...
Grumpy,
So how do I add the math library to the compile line when using Geany in Ubuntu 14.04.1?
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...
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...
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)
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...