Well I took that code and implemented into the project it was suppose to go into where the intersection and the union of sets are calculated. Now I did clean this code up as well and complied fine...
Type: Posts; User: bman900
Well I took that code and implemented into the project it was suppose to go into where the intersection and the union of sets are calculated. Now I did clean this code up as well and complied fine...
WOW I GOT IT! Turns out I was overwriting the compare set instead of adding to it, with a few adjustments I got it! And here is the code if u want to check for any mistakes:
Well I tried again but still not working like it should:
I got the intersection of a set finally working but I can not make the Union of a set work. Basicly I need to get the union of 7 sets. For example:
1234
456
789
1456
812
367
13467
Am very close to working out all the kinks and need help with one last thing. This code is a simplified version of what am going to do.
int main()
{
char string1[] = "abc";
char...
I did, its the part in red in my first post.
thanks man! That worked but now am wondering how come it worked up top without the %c. Right under the call to the compare function.
Sorry for the many questions but am about to go nuts here. This worked in another project of mine but now it just keeps crashing my program.
Here is the troubled code:
#include <stdio.h>...
Thanks but I just realized my whole logic on this was flawed. Back to the drawing board.
Basically what am doing is comparing two sets of numbers. I compare the two sets of numbers first and if 2 numbers match I go into another loop where I bring in the array that am talking about. First...
I know how you define an array and how you put data into them but how do I add data to the end of the array. What I have is this:
//declared in main
int newsetArray[10];
int...
thank you! it worked!
Well I had to create a program to sort a bunch of string. And the user gets to choose how many strings we get to sort. Now the program works when I hard code the n, the number of strings but when I...