Search:

Type: Posts; User: enakta13

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,316

    vector proble: pair

    #include <algorithm>
    #include <iostream>

    #include <vector>


    using namespace std;


    const int MAXN = 100;
  2. Replies
    5
    Views
    1,316

    In vector what does it mean?

    G[u].push back(v);

    here G[5] is a vector
    u,v are int
  3. Replies
    1
    Views
    905

    what does it means?

    below are the codes:

    template <class T> string toStr(const T &x){
    stringstream s; s << x; return s.str();
    }

    template <class T> int toInt(const T &x){
    stringstream s; s << x; int r; s >> r;...
  4. Replies
    2
    Views
    1,538

    Adjacency matrix, please modify my code

    Soved......... Finally

    Thanks for not helping guys...
    I learn the hard way
  5. Replies
    4
    Views
    1,264

    But where is the code to get the output?

    But where is the code to get the output?
  6. Replies
    4
    Views
    1,264

    adjacency matrix!

    input:
    1 2
    1 3

    Desired O/P:
    0 1 1
    1 0 0
    1 0 0

    Here 1 and 2 are linked thus 2 and 1 are linked too, so the value of matrix at 01 and 02 is 1
  7. Replies
    3
    Views
    2,597

    yes right!

    yes right!
  8. Replies
    3
    Views
    2,597

    how to create an adjacency matrix?

    i want to input values as

    a[0][0]=1 a[0][1]=3
    a[1][0]=2 a[1][1]=3

    1 3
    2 3

    i want an adjacency matrix from this as:
    m[0][0]=0, m[0][1]=0, m[0][2]=1
  9. Replies
    4
    Views
    1,365

    right i should have written the code as: ...

    right i should have written the code as:

    for(i=0;i<10;i+=3)
  10. Replies
    4
    Views
    1,365

    Function is not executed....

    sorry my mistake, a minor mistake..

    i think this is invalid

    for(i=0;i<10;i+3)
    {
    --- some codes---
    }
  11. Re:Function: passing 2-D array and returning a 1-D array from a function

    How can I return a 1-D array c[100]?
  12. Function: passing 2-D array and returning a 1-D array from a function

    main()
    {
    int a[10][5],j,i;
    for(j=0;j<5;j++)
    for(i=0;i<10;i++)
    scanf("%d",&a[i][j]);

    prior(a,j);
    return 0;
    }
  13. Help! How to enter values in a specific format

    I want to enter the values in this format:
    2
    7 8 9
    1 2 3
    7 8
    4
    4 5 6
    7 5 3
    4 0 9
    7 3 6
Results 1 to 13 of 13