Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-15-2006, 08:53 PM   #1
chickendude
Away from Computer
FFR Simfile AuthorFFR Veteran
 
chickendude's Avatar
 
Join Date: Sep 2003
Location: Massachusetts
Age: 35
Posts: 1,901
Send a message via AIM to chickendude
Default Help with an error I can't figure out

Here's my code:


#define MAX 50
#define POWERS 7
main()
{
char input[MAX];
Term values[POWERS+1], temp;
int loc=0, i=0, j, k, best;
FILE* fp;

printf("test before");
scanf("%s",input);
printf("test after");
...


The program compiles, but I get a segmentation fault error on runtime
the test print before the input scan appears before the error, but the one after doesn't

it doesn't appear to be the syntax
__________________
chickendude is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution