User Profile
Collapse
-
gnuplot command
i've problem with gnuplot command. when enter gnuplot command i m getting back with command not found. anybody help me out. m not getting manual of it also. plz help me. -
#include<stdio. h>
#include<stdlib .h>
#include<math.h >
Struct node {
float pos_x;
float pos_y;
};
Struct node s[50];
int main()
{
float d;
float x = 0.5;
float y=.05;
float degree = 0.0;
int i, n;
printf(“enter the number of nodes”);
scanf(“%d”, &n);
for(i=0; i<n; i++)
{
S[i].pos_x = random(500);
S[i].pos_y... -
#include<stdio. h>
#include<stdlib .h>
#include<math.h >
Struct node {
float pos_x;
float pos_y;
};
Struct node s[50];
int main()
{
float d;
float x = 0.5;
float y=.05;
float degree = 0.0;
int i, n;
printf(“enter the number of nodes”);
scanf(“%d”, &n);
for(i=0; i<n; i++)
{
S[i].pos_x = random(500);
S[i].pos_y...Leave a comment:
-
calculate coverage degree of node
i want to calulate coverage degree for a particular node having total number of nodes say n=10, in an xy coordinate having say size of x= y=500 and initial position of node is x = y= 0.5 and it should incremented by 1. Condition is that each node is capable of covering distance say d =5. i,ve tried but given below code is not working. pleaase somebody help me out.
#include<stdio. h>
#include<stdlib .h>
#include<math.h >... -
how to write airline reservation system program in c.
A small airline has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats).
Your program should display the following menu of alternatives :
Please type 1 for "smoking"
Please type 2 for "non-smoking"
If the person types... -
errors are:-
forbids declaration of `cost' with no type
shortestpath.c: 38: error: ISO C++ forbids declaration of `mat' with no type
shortestpath.c: 51: error: expected constructor, destructor, or type conversion before "struct"
shortestpath.c: 51: error: expected `,' or `;' before "struct"
shortestpath.c: 54: error: expected unqualified-id before '{' token
shortestpath.c: 54: error: expected...Leave a comment:
-
errors in codes are
ISO C++ forbids declaration of `cost' with no type
shortestpath.c: 38: error: ISO C++ forbids declaration of `mat' with no type
shortestpath.c: 51: error: expected constructor, destructor, or type conversion before "struct"
shortestpath.c: 51: error: expected `,' or `;' before "struct"
shortestpath.c: 54: error: expected unqualified-id before '{' token
shortestpath.c: 54:...Leave a comment:
-
how to find short paths
i am a beginner, guys plizzzzzzzz help me. i am given a assignment to find short paths either using dijkstra algorithm or using binary search algorithm in linux OS.
check out what is wrong the code i tried
/program to find shortest path
Code:#include<stdio.h> #include<cstdlib> #include<cstring> #include<fstream> #include<iostream.h> #define member 1 // use to
-
shortest paths available in a graph
how write a code to find all the shortest paths available in a graph with weight corresponding to it.
i shall be to thankful to u if anyone post me as soon as possible.
No activity results to display
Show More
Leave a comment: