|
|
#1 |
|
Away from Computer
|
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
__________________
|
|
|
|
|
|
#2 |
|
FFR Player
|
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.
|
|
|
|
|
|
#3 |
|
let it snow~
|
It's C++.
Meaning I got nothing =/ Googled the error? |
|
|
|
|
|
#4 |
|
FFR Player
|
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.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|