WolfPack 491 Posting Virtuoso Team Colleague

Turn the "Replace Tabs with Spaces" option in your code editor ON. BB Code tags tend to eat up Tabs.

WolfPack 491 Posting Virtuoso Team Colleague

It feels wierd. Just WolfPack will do.

WolfPack 491 Posting Virtuoso Team Colleague

Don't call me Mr. or any other title.

WolfPack 491 Posting Virtuoso Team Colleague

properly indent when you are posting bulk code. That makes reading easier, and will give you a better chance of expert help.

WolfPack 491 Posting Virtuoso Team Colleague

Now that we have a queen, I wanna be the King.

WolfPack 491 Posting Virtuoso Team Colleague

What is the problem? We don't have the time to run and debug your program. Narrow down the function that is wrong and post it. Post properly formatted code.

WolfPack 491 Posting Virtuoso Team Colleague
0 - 24      Newbie Poster
  25 - 49      Light Poster
  50 - 99      Junior Poster in Training
 100 - 199     Junior Poster
 200 - 299     Posting Whiz in Training
 300 - 399     Posting Whiz
 400 - 499     Posting Pro in Training
 500 - 599     Posting Pro
 600 - 699     Practically a Master Poster
 700 - 799     Master Poster
 800 - 899     Practically a Posting Shark
 900 - 999     Posting Shark
1000 - 1499    Nearly a Posting Virtuoso
1500 - 1999    Posting Virtuoso
2000 - 2499    Nearly a Posting Maven
2500 - 2999    Posting Maven
3000 - 3499    Nearly a Senior Poster
3500 - 3999    Senior Poster

:evil: The deviations are due to Dani's idiosyncrasies.

WolfPack 491 Posting Virtuoso Team Colleague

hi everyone,
i am facing a problem in developing a software of pc maintainence, i require a source code to detect the ports of a general purpose processor

Explain a bit more. What do you mean by ports? The I/O ports or the network ports like FTP, TelNet etc? Have you tried googling.

WolfPack 491 Posting Virtuoso Team Colleague

Explain these two lines to me.

unsigned long v0 = *((unsigned long*)(buf+n));
        unsigned long v1 = *((unsigned long*)(buf+n+4));

During the first iteration of n, ie n =0 ; the above code becomes

unsigned long v0 = *((unsigned long*)(buf));
        unsigned long v1 = *((unsigned long*)(buf+4));

Now, the length of buf is 3. So, isn't buf + 4 a location out of the data array?

WolfPack 491 Posting Virtuoso Team Colleague

hv alrdy n colg hd lik smthn tim sm1 advicd 2 mak cald u bt

What language is this? Indian? It sure is funny. Anyway just in case you didn't know, this is an English language forum.

WolfPack 491 Posting Virtuoso Team Colleague

Yes I think you are over-reacting a bit. Nobody thinks that you are an idiot, and if there is anyone who thinks that, it is (s)he who is the idiot.

Walt's advice is spot on. Summarizing, the basic idea is that this Forum is a "give and take" forum. You should be able to give something in order to get something back. When I say "give", that does not mean that you have to provide answers for other peoples questions, or that you need to donate if you want answers (although it would be nice).

"Give" means You should be considerate of the people who reads your questions and their lack of time to read a improperly formatted problem over and over again for it to make sense. The subject should be fairly descriptive of your problem (Not something like "Please help" or "Newbie needs help" ). The question should be formatted properly ( Use of capital simple letters, punctuations, correct spellings, code tags etc.). Possible error messages should be given. This is an often referred web page giving such advice.

If you can't buy a book, here is a good one for free. Download it and try to get as much as possible out of it yourself.
Good luck.

WolfPack 491 Posting Virtuoso Team Colleague

Okay I am gone. Bye guys

WolfPack 491 Posting Virtuoso Team Colleague

You wouldn't do that, would ya pal? Buddy. Chum. Overall nice guy....

No I can't. But dani....

WolfPack 491 Posting Virtuoso Team Colleague

What a way to get banned.

WolfPack 491 Posting Virtuoso Team Colleague

A sure way would be Aishwarya Rai.

WolfPack 491 Posting Virtuoso Team Colleague

he he he . Nice try. But No you can't. :cheesy:

WolfPack 491 Posting Virtuoso Team Colleague
WolfPack 491 Posting Virtuoso Team Colleague

Where you headed, Wolfie?

Hokkaido. It is sweltering back here in Nagano.

WolfPack 491 Posting Virtuoso Team Colleague

You are in luck. I am about to be airborne in 3 hours. So better stay put.

WolfPack 491 Posting Virtuoso Team Colleague

They fly too high. Otherwise I'd have considered.

WolfPack 491 Posting Virtuoso Team Colleague

No seriously i didnt intend anything like that trust me. (Hope u trust me)

I just wanted to know how much time it has taken people with loads of reputation like Dani to kickstart their own. And i basically got this idea from the thread "reputation" so thought it would really be fun when all the gurus came and told their tales but u have i think dampened the spirit *sad sad sad*. Now no one would post in this thread.

YOu might as well close it.
Anyways thanks for letting me know i have made it there.

Yeah yeah. man. I must stop my dry jokes a bit. :cry:. But you are correct, it dampens things a bit, so I edited it.

psst. ... Just for your information, all the rep dani got was from herself. Don't tell anyone.

WolfPack 491 Posting Virtuoso Team Colleague

Congratulations.:cheesy:

~s.o.s~ commented: Just to let you know that this is not about reputaion, i come again to an unknown quantity +1
WolfPack 491 Posting Virtuoso Team Colleague

Err... Welcome.

WolfPack 491 Posting Virtuoso Team Colleague

that takes time and money the ony thing i didnt understand was words...

period and semicolon

If you are not ready to spend time and money to educate yourself, why should we spend ours trying to educate you?

-.- I Cant Help A Habbit I Have

When you are adviced for your own good, be humble and try to correct it. Excuses and arrogance will not help you here. Arrogance will be tolerated once you start contributing to the community, but until that you are a newbie, so start acting like one.

Judging from your previous two posts, I see that you are way out of line and your attitude will be harmful to this community. Let this serve as a first warning.

WolfPack 491 Posting Virtuoso Team Colleague

naaah. I don't bite. I just bark. :cheesy:

WolfPack 491 Posting Virtuoso Team Colleague

Duh. :mad:You people are so thick. I meant that was Holly's 400th or 401 st post.

WolfPack 491 Posting Virtuoso Team Colleague

10000 Maniacs

WolfPack 491 Posting Virtuoso Team Colleague

Eurythmics

WolfPack 491 Posting Virtuoso Team Colleague

Explain a bit more. How is the program outputting the data now? Is it a console applitcation or a GUI application.

If the output is currently displayed in the console, the easiest method is to redirect the output to a text file.

If it is a GUI application, you will have to "read some file handling" in C tutorials.

Rather than outputting directly to an excel worksheet, it is easiest to output the data into a Comma Seperated Value formatted file ( CSV File ), and read the data using MS Excel or Open Office Excel into a worksheet.

WolfPack 491 Posting Virtuoso Team Colleague
WolfPack 491 Posting Virtuoso Team Colleague

Read this well .

WolfPack 491 Posting Virtuoso Team Colleague

great. surely that would have won you some points. congrats.

WolfPack 491 Posting Virtuoso Team Colleague

he heeeeee. Hope you aren't planning on using this thread as a résumé.

WolfPack 491 Posting Virtuoso Team Colleague

Something can appear complex until it is explained after which it becomes less complex. Ultimate familiarity finally renders the complex subject simple.

Reminds me of Clarke's 3rd law

Any sufficiently advanced technology is indistinguishable from magic.

WolfPack 491 Posting Virtuoso Team Colleague

BTW wat you mean by your above statement.

*hint* Post Count */hint*

WolfPack 491 Posting Virtuoso Team Colleague

Thats someone who administers smtp servers, or works for Royal Mail

I should have mentioned "pun intended" :-|

WolfPack 491 Posting Virtuoso Team Colleague

What about Post Master?

WolfPack 491 Posting Virtuoso Team Colleague

Clearly unemployed

ha ha ha .

WolfPack 491 Posting Virtuoso Team Colleague

he heeeeeeee. I voted I voted.

WolfPack 491 Posting Virtuoso Team Colleague

Bloody Teetotallers.

WolfPack 491 Posting Virtuoso Team Colleague
do
  {
     flag=arrange(array,num);
  }while( flag==-1);

This is the only place where flag is being used. So isn't it simple? flag is used to store the result of arrange and arrange is called while the flag is -1.

Now go to the arrange function. It returns -1 when two elements in the array is swapped. That means the original array didnt have it's data in sorted order. Now from that knowledge what can you say? If the original array was not in sorted order, arrange returns -1. So the above loop means

do
     arrange( array )
until ( the original array was sorted )

Rather inefficient, but a common sorting algorithm. Hope you understand.

WolfPack 491 Posting Virtuoso Team Colleague

Hello zsix. Welcome to Daniweb. You are absolutely right. This is a very good place to learn C/C++. Check out the C/++ forum if you ever need to. There is a very good team of knowledgable posters who know every nook and corner of C and C++ ready to help you. And good luck with your new job.

WolfPack 491 Posting Virtuoso Team Colleague

This explanation was very much usefull.Thank Wolf ..... Can you provide me the link to C++ standards.

The C++ and C Standards are not free. The electronic version costs about 20$ and the hard copy cost 10 times more. You can download a draft copy which is free to download. It is not the same as the real thing, but will make do for the time being.

WolfPack 491 Posting Virtuoso Team Colleague

Hi Guys,

I still didn't get answer for my question.

By reference to pointer I mean this

int * & x;

Here x is a refernce to a pointer

This code is illegal because a reference has to be initialized not assigned. There are exceptions but in this case it has to be initialized.

In the same way pointer to a reference is not allowed in C++.

int & * x;

. This will throw an error saying "pointer to reference is illegal".

Now what my doubt is, if reference is just an alias to an object pointed to by it. Then what is the problem in creating a pointer to it ???

The Standard does not specify whether references need storage or not. So if there can't be storage for a reference, there is no meaning for pointers to a reference.

It is unspecified whether or not a reference requires storage

There shall be no references to references, no arrays of references, and no pointers to references. The declaration of a reference shall contain an initializer (dcl.init.ref) except when the declaration contains an explicit extern specifier (dcl.stc), is a class member (class.mem) declaration within a class declaration, or is the declaration of a parameter or a return type (dcl.fct);

Dave Sinkula commented: Very nice! +7
WolfPack 491 Posting Virtuoso Team Colleague

I have more important things to be concerned with for a start (namely a house move and an adoption)

Cool. Good luck with your home. But who would want to adopt you? :confused:

WolfPack 491 Posting Virtuoso Team Colleague

Whassamatta...? Someone threatened you? :cheesy:

WolfPack 491 Posting Virtuoso Team Colleague

If you want to build from scratch, read the HTTP Specification and implement it in C.
If you want a C API library, check curl.

WolfPack 491 Posting Virtuoso Team Colleague

I posted a link a bit later in my earlier solution. Check it out and see if the error can be corrected.

WolfPack 491 Posting Virtuoso Team Colleague

ok i have a problem with visual c++ whenever i try to create a project it says "automation server cannot create object".anybody know what that means?

No. What type of project are you trying to create?

Edit:
Googling gave me this.

WolfPack 491 Posting Virtuoso Team Colleague

Use string::c_str(). It gives a constant C style character string. Use this when a datatype of LPCTSTR is needed.

Now your second question does not need an answer.