Data Structures-A pseudocode Approach with c
but there is no code inside, just algorithm
And all i want to do is trying to make an 2d-array and store
the elements into the row'th (bucket) and...
Type: Posts; User: Supra
Data Structures-A pseudocode Approach with c
but there is no code inside, just algorithm
And all i want to do is trying to make an 2d-array and store
the elements into the row'th (bucket) and...
thanx Quzah, but can you give me an example of passing by reference ? And I put my whole code maybe you can figure out whats wwrong with it
thanx in advance!
#include <ctype.h>
#include...
well i wrote a insert hashing function by using array, but it doesn't work
can anyone tell me whats wrong with it?
Data type and define:
#define SLOT 3
#define TableSize 256
Can anyone tell me where I can find the sample insert code
for Bucket hashing? I cna't find in my book, and i'm so mess up with hashing. thanx a lot
thanx you all very much, but i still have questions about masking
number
I wrote a small program:
#include <stdlib.h>
int main(void)
{
unsigned char i='a';
unsigned char b='c';
really big thanks to you all!!
my last two questions are
1. how can i "and" or "or" those binary in c#?
ex:
1100110
(and) 0011100
big thanx for you guys!!
now another question is how can I mask those binary #
for ex:
111000101
if i want shift right to 3, it will become
101111000,
just like what shr does in assembly...
How can I convert a word such as 'A' to the number represented in ASCII ? Another question is how can i convert a decimal number to binary number? Is any function in c allows us to do that?
Thanx...
hi all, i'm so mess up w/ this pro.
suppose a data file File.dat:
a b c d e
f g
how can i stop read those character when matching the newline?
note: # of words must be counted
my code:
Hi all, i got trouble reading array file
sample file to be read:
---------------------------------
START 3
. 000 2 100 . 000 . 000
0 100 1 050 . 000 . 000
. 000 . 000 . 000 . 000
. 000 ....
Thanx a lot novacain!!
I'm kinda get that
but i still confuse about what you said:
>>fgets(word, 5, infile);
and then try to read 4/5 characters into the array that will only hold 2.
...
I try to make a string array with 5 element to access data file, but I'm so mess up!! So can somebody take a look at my code and help me out? thanx for any help.
sample data file:a.dat
aa bb...
Well, I have trouble with reading data file by using binary search tree. I can't read file! Can some body help me out plz!!
sample data file:
XYZ
3
John Go
Supra YA
but how can i find the repeat decimals?
Well, it is a contest problem...
oringinal problem set is here:
http://isaac.lsu.edu/class/udv/v2/202.html
Hope someone can help me, thanks!
hi all,how can I repeat decimal numbers to print out?
for example:
1/6=0.1666.. repeating cycle is 6 and cycle length is 1
5/7=0.71428571428571...repeating cycle is 714285 and cycle length is 6...
Thank you very much Salem. And my last question is how to add a song to a cd list?
Hey Salem, I really appreciate for you help and I can read data now. But I have another pro w/ print those data. I got some error when match song's number. I got segmentation fault when the number is...
Anyone help plz?
Hey thank you very much, Salem, but I still confused abiut how to
fill and traverse data. I write my code below and hope you ca help me out!!
Thanx and Thanx again!
void ReadData(ARTISTPTR *P)...
Ok the correct format should be look like below:
artist1 cdname1
3
1:00 song1_1
2:00 song1_2
3:00 song1_3
artist2 cdname2
4
1:30 song2_1