Search:

Type: Posts; User: bman900

Search: Search took 0.01 seconds.

  1. Thread: Union of a set

    by bman900
    Replies
    5
    Views
    2,122

    Well I took that code and implemented into the...

    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...
  2. Thread: Union of a set

    by bman900
    Replies
    5
    Views
    2,122

    WOW I GOT IT! Turns out I was overwriting the...

    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:
  3. Thread: Union of a set

    by bman900
    Replies
    5
    Views
    2,122

    Well I tried again but still not working like it...

    Well I tried again but still not working like it should:
  4. Thread: Union of a set

    by bman900
    Replies
    5
    Views
    2,122

    Union of a set

    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
  5. Replies
    1
    Views
    2,309

    Adding values to array in a for loop

    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...
  6. Replies
    4
    Views
    911

    I did, its the part in red in my first post. ...

    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.
  7. Replies
    4
    Views
    911

    Trouble Accesing Array members

    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>...
  8. Replies
    4
    Views
    6,064

    Thanks but I just realized my whole logic on this...

    Thanks but I just realized my whole logic on this was flawed. Back to the drawing board.
  9. Replies
    4
    Views
    6,064

    Basically what am doing is comparing two sets of...

    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...
  10. Replies
    4
    Views
    6,064

    Adding data end of array

    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...
  11. Replies
    3
    Views
    1,213

    thank you! it worked!

    thank you! it worked!
  12. Replies
    3
    Views
    1,213

    Scanf messing up program

    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...
Results 1 to 12 of 12