Forum: Computer Science Dec 22nd, 2004 |
| Replies: 4 Views: 3,896 Hi
If you want the big-Oh
then the first one is O(n^2) That what i calculate
if you want me to proof it i will But first i will ask my teacher about the first loop... i'm not sure about the... |
Forum: C++ Jun 9th, 2004 |
| Replies: 6 Views: 15,337 This program is generates 100 random integers and store them in the latest Queue then start sorting |
Forum: C++ Jun 9th, 2004 |
| Replies: 6 Views: 15,337 Hello,
I have done the Radix with queue
here you are an example
But the queue is my own Queue
retrieve: return the first element
serve : delete the first element;
dequeue: insertlast
... |
Forum: C Jun 9th, 2004 |
| Replies: 3 Views: 5,836 Hello my brother
there is two way to sort a single linked list
First , swapping data but it is unsufficient (( suppose the data is very bug))
Second, swapping pointer is better but it's harder... |
Forum: C++ Jun 7th, 2004 |
| Replies: 5 Views: 3,595 Hello
Why you are using a c-style struct why you are not using a c++ class
here you are a good example |
Forum: C++ Jun 7th, 2004 |
| Replies: 5 Views: 2,963 Hello my poor c++ programmers
strcmp take two argument of type char * i.e array of character not char
i.e you can compare between
char *p = "SADDAM",l= "BOOSH";
cout << strcmp(p,l);
i hope you... |
Forum: C++ Jun 7th, 2004 |
| Replies: 6 Views: 37,345 Hello my Friend;
i edit your programe and it is working well;
but i notice that the average of this board member are very poor
you must read any book before beginnig to programming
here are you... |
Forum: C++ Jun 7th, 2004 |
| Replies: 9 Views: 4,053 Hello
you can use a most c++ powerful operator
int a;
float numq = 60.7;
a = static_cast<int> (num1);
i don't now why poeple here don't use a c++ feature the are using a c-style |
Forum: C Jun 7th, 2004 |
| Replies: 9 Views: 5,847 Hello , this was my homework in the past
i hope it will help you |
Forum: C++ Jun 6th, 2004 |
| Replies: 0 Views: 1,608 Hello ; i'm a c++ intermedite programmers from KSU CCIS colleage and i discoverded that i can't write a high quality application without GUI
and i want to move to .NET framwork but when i buy a book... |