wow...okay I see what you are talking about. Thanks, now is head still dynamically declared? even though I set it equal to NULL after i malloced it?
Type: Posts; User: Clayton Cuteri
wow...okay I see what you are talking about. Thanks, now is head still dynamically declared? even though I set it equal to NULL after i malloced it?
Alright, I changed the currWord line, that makes sense but the first part doesnt matter, I assign a word to it when i run
head = insert(currWord, head); if head == NULL
This is the first time I have encountered a "no stack." error giving me a seg fault. Anyhow, I am scanning words into a binary search tree and it is giving me a seg fault. I cannot figure out which...
ya i caught that problem today, however, its now giving me the same problem with a different line
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef...
changed those 4 lines to
freeLinkedList(head);
still getting the same error :(
cant believe i over looked that...THANK YOU!
Theres a lot of code here sorry but idt you need to look at it all.
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct BigInt{
here is my output
(gdb) r
Starting program: /Users/claytoncuteri/Desktop/bigint
Reading symbols for shared libraries +............................. done
Program received signal...
thanks i need to look into it a bit more but this reply has been helpful
it is actually occurring in line 9, sorry
I am receiving a Segmentation Fault on line 11. There might be something wrong with the way i am compiling it because this is the first time that i have used terminal. At any rate, the segfault is in...
i have narrowed it down to it having something to do with str[first] and str[second] being assigned. i have never been more confused about simpler code
in the new code i posted above i got k to increase, however flip is not wanting to flip the letters, trying to figure it out but no luck so far
no i was trying to get all permutations of cat...
i fixed it by changing
recursive(str, k++):
to
k++;
recursive(str, k);
char* flip(char* str, int first, int second){
char temp = str[first];
str[first] = str[second];
str[second] = temp;
return str;
}
void recursive(char* str, int k){
int...
and the last one doesnt work either, crashes
the const code doesnt even compile
this is the code i have and it crashes, cant figure out why, please help
char * flip(char* str, int first, int second){
char temp = str[first];
str[first] = str[second];
...
okay i fixed it and now it is just crashing, any reason known?
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
struct integer{
the lines appear to be off, sorry for this
I am getting this error in lines that involve "ch[_]" in lines 27, 28, 29, 33, 42, 43, 44, and 48, heres the code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>...
my input reads "12345" and i want to get it to be "54321" (for multiplication reasons). i changed the code to what it looks like in line 11, except for the
(int) however this did not help...
struct integer looks like this:
struct integer{
int* digits;
int size;
};
I am writing code to multiply two int arrays and in my one function i am trying to convert the char array into an int array. I have tested many parts however i can not find the problem. any help or...