I got it to work with:
char response[81] ;
scanf("%80[^\n]", response ) ;Thanks for the help, and I will rebuild if it crashes again.
Type: Posts; User: mcotter222
I got it to work with:
char response[81] ;
scanf("%80[^\n]", response ) ;Thanks for the help, and I will rebuild if it crashes again.
How do I try that?
And it works for other programs, just not that one, and when I take that part out, it works again.
Interesting... It didn't work for me. Well I will see what happens when I get to a printer (should be around tomorrow).
K, so valid question time.
If I use
fgets ( string, 50, stdin );
will other FILE* pointers interfere with that? Because that is all that I can think of that is causing my compiler to "Unexpectedly...
My code or the command prompt? Because my code didn't work for me without the thing, and I didn't get a chance to try it with the thing yet.
Sorry, just found it, disregard that last question please. Thanks.
New question about strings; How do I put info into a string without
scanf("%s"...And why does that not pick up anything after a space?
The point of adding that was that it didn't work without it. I tryed windows command prompt, and asked for help on PRINT, and it said I needed the printer location.
Sorry, here is the newest code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *flpt;
flpt = fopen("C:\\Documents and Settings\\alpha\\Desktop\\Test.txt", "w");
...
Did it work for anyone? I editted it again, and this time it removes the file aswell.
I edited the code. Change the LPT1 to the printer your port is in, then try it again.
Okay, I tried fclose, but that didn't hep. Here's what I have:
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *flpt;
flpt = fopen("C:\\Documents and...
Is that XP command 100%, because everything worked, but my printer did nothing? Why?
Okay, I'll see where this gets me and get back to you.
New problem. Everything worked, except when I got to the compile screen, it said it was printing, but it didn't. Any ideas as to why not?
K, the first one I got, but lets take these others a bit slower.
The terms raycast and parametric mean nothing to me. Vectors I get, but how would I calculate the Shoot_Vector? Other than that,...
Okay, so I henceforth conclude arguing on the basis of mutual benefit through forgiveness. Though arguing can create strong debates and lead to the passion of challenge, growth is best found when...
Oh, finally, something constructive. Thanks, bob mcgee! Okay, so now that we have gotten of the pessimistic page; if I need help, this would be a bad place to ask then? Also, I'm thinking that here...
Oh, so you are saying that I should make my own engine now? I see that as a more complicated route... I think I will do this one in blender gaming to get the hang of it.
I was going to use python so I could utilize blenders game logic things. I will have all the blends made for me by our master blender. (I have no idea how good he really is because I haven't seen...
I can make better games on my graphing calculator! It's not that I'm unappreciative, I'm very thankful for your advice, but I might have come off wrong about this, I think I found something out, and...
I want to learn the programming. I normally wouldn't be making games, but I'm the only one my organization new who can pretend to start to program. I will check out some libraries and see where that...
I am very new to game programming (new to all programming, and have done nothing with games), but I am the best my small organization has, so I am going to need to do all the programming and am going...
Thanks, but I need to assign it later on in the program.
Okay, so what would the syntax for that be?