i have 10 threads 5 for girls and 5 for boys, i have to use pthread library.how can give priority?girls have higher priority?
Type: Posts; User: condorx
i have 10 threads 5 for girls and 5 for boys, i have to use pthread library.how can give priority?girls have higher priority?
how can i find the source code of minibase buffermanager
i know it doesnt return anything i mean it prints zero for the length between two edges
it doesnt work and i cant solve this
it should give the minimum length of edges but it returns always 0
void prim(long W[n][n]){
int i ,vnear,min,t;
int nearest[5];
int distance[5];
for(i = 0;i <= 5;i++)
{
nearest[i] = 1;
pls help me what is it can u write the algotihm of this
does anybody know where can i find the source code for prim algorithm.or can u help me with the code
i know how floyd's algorithm works
void floyd2(int n, long W[5][5], long D[5][5], long...
i have a integer value int zone;
and i have a string ch[5] includes the numbers
how can i check whether they are equal or not?
hi;
for example i have a file includes x lines
how can i read all lines in a for loop?
[code]
for (..i..)
{
ptr.getline(buffer[i],100);
}
ZONEID ZONEDESC PRICE
------ -------------------- -------
1 Toronto 5.00
2 North York 7.00
3 Mississauga 8.00
4 ...
how can i read a line form a file in c is there any function like readline() or anything else
for example
a = 5
b = b+5
how can i read each line and save it in different strings
hi
how can i find interpreter source codes on the net do you know any web site ?
i dont know dev c++ has this function but in turbo c u can use kbhit() function.this function checks for current keystrokes
thx for ur answer:):D
but why do we use **p rather than *p
for example
createnode(mynodetype **p)
{
*p = (mynodetype * )malloc(sizeof(mynodetype));
*p
...
i have an assigment i should read the integers from the file and create an object for each line to store the integer(each line has 3 integers)
#include <iostream.h>
#include <fstream.h>
...
can you tell me the usage of hashing what is hashing
is there any function in c++ which is the same as strtok() function in c,if there is can u give a simple example
i have a file data.txt
and i want to read the data form the file and write them to screen
file data is :
1 2 3 ;
int i,j=0,dat[256];
it is a type of structure but it has some levels like public: private and protected used for information hading and inheritence
i have an string : (3+5) * (20/4)
i have to convert this string to 3 5 + 20 4 / * (to postfix form)
i cant do this can you tell me how can i do this
Concentrator Location Problem using Add Algorithm
does anybody know what is this.this is my project for data structures course?i cant find related web sites
i have a very big problem with my read function it has to get constant and exponent values from the user and creates a linked list but this linked list should be sorted the problem occurs when i sort...
how can i write a bubble sort function for a linked list can u give me an example??