Search:

Type: Posts; User: yigster

Search: Search took 0.01 seconds.

  1. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    #include #include using...

    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main()
    {
    int size1,size2,size,i,k,j;
    string *array1,*array2,*array3;
    string temp;
  2. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    copy and run the program.. it should print...

    copy and run the program.. it should print soething like this;



    array3[0]=1
    array3[0]=2
    .
    .
    .
    . and so on.. and '-' for the empty parts in array3..
  3. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main()
    {
    int size1,size2,size,i,k,j;
    int *array1,*array2,*array3;

    //int array1[size1],array2[size2],array3[size];
  4. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    So this is what I have so far.. but when I run it...

    So this is what I have so far.. but when I run it says array1.exe has stopped working =) the compiler doesnt give any errors..



    #include <iostream>

    using namespace std;

    int main()
    {
  5. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    yes I know there wont be any empty spaces thats...

    yes I know there wont be any empty spaces thats why there will be '-' in the empty slots
  6. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    negative value ? who said anything about negative...

    negative value ? who said anything about negative numbers? that "-" isnt a minus sign..
  7. Thread: Merging Arrays

    by yigster
    Replies
    15
    Views
    7,889

    Merging Arrays

    Hi,

    I am trying to merge two arrays into one while doing this I am trying to sort and remove duplicates..

    For example;



    int a,a1,b,b1,c,c1,d,d1,e,e1;
Results 1 to 7 of 7