Search:

Type: Posts; User: thamiz

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,198

    what i mean is i need it to store the distance...

    what i mean is i need it to store the distance itwice n places, so in the matrix it has to somehow store it twice.
    eg
    A B C D
    A 0 1 2 3
    B 1 0 2 3
    C 2 2 0 4
    D 3 3 4 0
    so the distance...
  2. Replies
    6
    Views
    2,198

    Adjecent matrix

    Hi
    yeah i do have an


    int matrix[50][50];

    but how can i implement it to work as an adjancent matrix; so that it can store the distance of two countries
  3. Replies
    6
    Views
    2,198

    help with adjacent matrix

    Hey guys,

    I'm new here so bear with me. I've done a bit of searching, all to no avail, so I thought I'd create a new thread.
    I have to find the MST between 2 citys, we're given a tab-delimited...
  4. Thread: Help

    by thamiz
    Replies
    11
    Views
    1,647

    would i be able to use the code above, to my my...

    would i be able to use the code above, to my my is_separator, because i need to separate the words based on the above characters...
    if i input any words with punctions the function has to split when...
  5. Thread: Help

    by thamiz
    Replies
    11
    Views
    1,647

    hey guys need some help any one willing 2 help...

    hey guys need some help any one willing 2 help me, here is my separating function, but i can't include a apostrophe in it, any one willing to help me out. cheers.


    int is_separator(char ch) {
    ...
  6. Thread: Help

    by thamiz
    Replies
    11
    Views
    1,647

    hi here is my code for scan function; how can i...

    hi
    here is my code for scan function;
    how can i make the function store the words, into my program.


    #include<stdio.h>
    #include<ctype.h>
    #define MAXWORDS 20
    #define MAXLETTERS 20
    int...
  7. Thread: Help

    by thamiz
    Replies
    11
    Views
    1,647

    Help

    i want to make a program in c :
    but am a bit stuck, so can you anyone jst guide me through it.
    Basically the program has to read in a whole paragraph, and the the program will have to find the...
  8. Replies
    25
    Views
    5,693

    how do i use malloc

    how do i use malloc
  9. Replies
    25
    Views
    5,693

    thanks again for your patience and time

    i have a question
    say if int a counter called goodrowcounter;
    when i int the array[goodrowcounter][width];
    my compiler say error: variable-sized objects may not be initialiased.
    what can i do to...
  10. Replies
    25
    Views
    5,693

    Would a counter be advisable

    Would a counter be advisable
  11. Replies
    25
    Views
    5,693

    hi there well all the files will have a variable...

    hi there
    well all the files will have a variable width of 0 to 50, and a variable height of 0 to 80. But my program can find the height and width of the file. But the problem lies when i want to...
  12. Replies
    25
    Views
    5,693

    Actuauly no i don't know. Because the width and...

    Actuauly no i don't know. Because the width and height keeps changing.
    my program will find find the width and height of the file. Bu the problem is i don't know how to specify the size of the...
  13. Replies
    25
    Views
    5,693

    Hi

    Hi there oh ok
    but there is only one problem, my code is too genearlised.
    the width and height of the array will change according to the file i open. so any idea, on how i can manipulate the width...
  14. Replies
    25
    Views
    5,693

    Hi: how to Traverse

    How would i go on about traversing the the 2d array..
    Thanks in Advance
  15. Replies
    25
    Views
    5,693

    thanks boss

    thanks boss
  16. Replies
    25
    Views
    5,693

    thank bro you got the idea i was impleamenting

    what is wrong with my code
    it is print out junk values for some reason


    #include <stdio.h>

    int main(int argc,char *argv[]){
    int row;
    int col;
    int goodrow=0;
  17. Replies
    25
    Views
    5,693

    Hi the not following about traverse, i'm just a...

    Hi the not following about traverse, i'm just a beginner so can you go though it with me...
    please.

    thanks in advance
  18. Replies
    25
    Views
    5,693

    sorry about the comments

    [/code]
    Hi well technically i can't because i don't know the size of the array i'm using.. i will jst have to open the file they give me and the program will have to do that for me.
    [code]
  19. Replies
    25
    Views
    5,693

    Help with 2d arrays

    Hi there
    i need some help manipulating a 2d array.
    For example
    say i have an 2d array


    int array[20][21]={{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //Crop this
    ...
Results 1 to 19 of 20