- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
I made a simple program where a user can pick from the menu. My problem is where do i put this code properly inside the fuction of [B]funcFloat[/B] and [B]funcInteger[/B] [CODE]if (myFloat < 0) // this will output if the user entered a negative value { printf ("You entered a … |
|
Re:
I have to return a char * from a routine which has a char[] This should be simple but sometimes str1 results in garbage [code] char* foo (int ch) { char str[10]; char* str1; if (foo1(str,ch)) { str1 = str; } else { str1 ="???" } return(str1); } boolean foo1(char … |
|
Re:
[CODE]typedef struct _node node; typedef struct _node { int is_leaf; node child[THRESHOLD_ITEM_SET]; list<item_set> candidate_set; } node;[/CODE] or this: [CODE] typedef struct _node { int is_leaf; struct _node child[THRESHOLD_ITEM_SET]; list<item_set> candidate_set; } node;[/CODE] I am getting error: error: field ‘child’ has incomplete type I don't want to declare child as pointer. … |
|
Re:
Hey, I have a problem that I'm not sure if its from running on windows or not. Lets say I have the following MakeFile for compiling and creating the executable of 'target.c': [CODE] FLAGS = -Wall -g all : target target : target.o gcc ${FLAGS} -o $@ $^ target.o : … |
|
Re:
Well, i cant figure how print to the spaces before the *, this is how it is suppose to look: * *** ***** ******* EDIT: dunno how to get it to work but it should be a pascal triangle and this is what i get * *** ***** ******* heres … |
|
Re:
[CODE] int main() { hash_tree htree; htree.root.is_leaf = 1; htree.root.candidate_set.len = 0; item_set s; s.len = 1; s.items[0] = 0; add_item_set_to_hash_tree(&htree, s); s.items[0] = 1; add_item_set_to_hash_tree(&htree, s); s.items[0] = 2; add_item_set_to_hash_tree(&htree, s); s.items[0] = 3; add_item_set_to_hash_tree(&htree, s); s.items[0] = 4; add_item_set_to_hash_tree(&htree, s); s.items[0] = 5; add_item_set_to_hash_tree(&htree, s); printf("seg fault 1\n"); … |