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

Reply
 
Thread Tools Display Modes
Old 12-15-2006, 09:53 PM   #1
chickendude
Away from Computer
FFR Simfile AuthorFFR Veteran
 
chickendude's Avatar
 
Join Date: Sep 2003
Location: Massachusetts
Age: 30
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
Old 12-18-2006, 10:46 AM   #2
Vests
FFR Player
 
Vests's Avatar
 
Join Date: Jun 2006
Location: Stillwater, OK
Age: 30
Posts: 56
Send a message via AIM to Vests Send a message via MSN to Vests Send a message via Yahoo to Vests Send a message via Skype™ to Vests
Default Re: Help with an error I can't figure out

What language is it in? I'm only self taught, in ASM, Auto It, Basic, and Java =\.
__________________
In due time once all modern architecture is gone it will be called ancient. Because no matter how hard we work to perfect something, as time will progresses we shall dwell upon how imperfect it really was.

Intelligence is only a value if you harness it.

Vests is offline   Reply With Quote
Old 12-18-2006, 11:04 AM   #3
Squeek
let it snow~
FFR Veteran
 
Squeek's Avatar
 
Join Date: Jan 2004
Age: 34
Posts: 14,457
Send a message via AIM to Squeek
Default Re: Help with an error I can't figure out

It's C++.

Meaning I got nothing =/

Googled the error?
Squeek is offline   Reply With Quote
Old 12-20-2006, 10:51 AM   #4
Vests
FFR Player
 
Vests's Avatar
 
Join Date: Jun 2006
Location: Stillwater, OK
Age: 30
Posts: 56
Send a message via AIM to Vests Send a message via MSN to Vests Send a message via Yahoo to Vests Send a message via Skype™ to Vests
Default Re: Help with an error I can't figure out

So if it isn't the syntax... what compiler are you using?
__________________
In due time once all modern architecture is gone it will be called ancient. Because no matter how hard we work to perfect something, as time will progresses we shall dwell upon how imperfect it really was.

Intelligence is only a value if you harness it.

Vests is offline   Reply With Quote
Reply


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 11:22 PM.


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