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...
Type: Posts; User: thamiz
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...
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
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...
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...
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) {
...
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...
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...
how do i use malloc
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...
Would a counter be advisable
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...
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...
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...
How would i go on about traversing the the 2d array..
Thanks in Advance
thanks boss
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;
Hi the not following about traverse, i'm just a beginner so can you go though it with me...
please.
thanks in advance
[/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]
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
...