Why do even C/C++ posts have the #webdevelopment tag(?) when retweeted? What is going on?
WWW.DANIWEB.COM - #webdevelopment : Getting argv[] command line arguments.: Hello, Simple question this time, I ho... http://bit.ly/grklp6 #harshgandhitk
Why do even C/C++ posts have the #webdevelopment tag(?) when retweeted? What is going on?
WWW.DANIWEB.COM - #webdevelopment : Getting argv[] command line arguments.: Hello, Simple question this time, I ho... http://bit.ly/grklp6 #harshgandhitk
You code? Really?
Read the documentation. Much of programming is basically figuring out how to use the building blocks given in a library to build what you want. Nobody can do the thinking for you.
AXIMP seems to be related to VB6 Active X controls. Give details of the project.
I haven't personally come along these type of errors in my work, but maybe someone else who are doing the same kind of projects may have and will be able to help.
Do you want the above function to be called when button "Hello" is clicked?
are there any solutions?
Without knowing what you want to do, we can't give any.
Learn to properly format the question.
preview
functionality and see if the code looks good before posting, or use the edit functionality to edit it if it doesn't look good after posting. I would recommend using 4 SPACES instead of the TAB character to indent.WM_CREATE
is handled multiple times. So only the one at the top is called and the code that handles the WM_CREATE
s below it, which are the ones supposed to create the other 2 buttons, are not called. Why do you handle the same message in various parts of the code? I can't judge if it is by mistake or not because you haven't said WHEN you want the buttons to be displayed. If you want to make the buttons appear at …Can't you just use fileOut << linea <<"</br>" <<endl;
in line 34?
Also delete
the memory allocated for ImageData
after you've finished.
What makes you think that we have it?
Change void displayPayment (double, double&);
to void displayPayment (double);
Looks like a setup issue of the OpenCV Library.
Can you run a basic program that just loads an image and displays it?
If not, I would suggest going through the installation instructions back from the beginning.
Also, give us information about your compiler and operating system next time.
/bin/sh: g++: not found
means just that. Eclipse IDE can't find the compiler. Read the setup instructions carefully.
What if I were to wear a wig and a dress, would that help? :)
Even a kilt would do. :D
Doing fine. Thanks. Trying to get back to my regular posting habits. :D
Ah yeah. Recognized you. Lost you the first time while scanning for good looking chicks who are into programming. ;)
Had a look at the photos. Fab. event. Congrats to Dani and the party organizing team.
I'll try to come next time. Didn't recognize anybody except Her Majesty in the photos though.
No it doesn't remove all the duplicate elements in the list if the list is not sorted.
Look at the output of the example. There are two 10s in the resulting list.
The initial list is c1 = -10 10 10 20 20 -10
After removing successive duplicate elements, c2 = -10 10 20 -10
As for a non-recursive algorithm, this is linear. Correct any mistakes.
delete_count = 0;
Current = List_Top_Element ;
while( Current != Null ){
if( Current->Next == Null ){
break;
}
If( Current == Current->Next ){
Delete Current->Next ;
delete_count = delete_count + 1;
}
else{
Current = Current->Next ;
}
}
return delete_count;
If you are using the MFC or Win32 APIs, any of the OnClose
, DestroyWindow
functions, or the WM_CLOSE
event can be used.
Read the documentation to find the best one for your needs.
Even if you are using some other development environment with custom APIs, they usually have functions with similar names.
You can try and see if there the source code is given to you with the compiler CDs.
Or maybe in the src
directory of the installation.
However, I highly doubt it is necessary for you to look in to the source code.
Just knowing how to use the functions will be enough.
The whole purpose of these libraries is to make your development process faster and reliable. It is not usually expected from you to know how they are built or to make them efficient.
I don't know about efficiency, but you can save a lot of code by using the list::unique method.
The number of items deleted is the item count difference between the previous and current list. example
Edit:
However you have to use the std::list. Can't be used for your custom list object.
Well, Visual C++ 2008 is not a bad idea. Provided you know what you are doing.
What learning material are you using in the first place?
And where did you get the code for that program?
This link makes it clear that it is not an entry level program.
The reason your program won't compile, is because it is not a normal console application.
Best thing for you would be to find an entry level tutorial for VC2008 and start from there. Or use this tutorial. You will have to replace VC2008 with Code::blocks.
The reason is the code for changing the picture runs at wm_paint. Wm_paint is passed when the windows needs redrawing which happens everytime you minimize, maximize, drag some other application above your app etc.
If you want to select your picture only during once startup, do it at the wm_create event.
Or you could use a roundabout way by using a static integer and increment it when the above code runs once. If the value is above 0, dont run the code again.
case WM_PAINT:
static int counter;
If (counter == 0 ){
// your code for selecting the random number here.
counter++;
}
It is a fairly basic programming exercise on loops.
If you Google you could easily find the answer.
Post the work you have done so far for this assignment.
Someone will help you with the places you are stuck.
You could modify the examples given in one of the links below, and some basic C++ String matching.
1. http://stackoverflow.com/questions/143174/c-c-how-to-obtain-the-full-path-of-current-directory
2. http://msdn.microsoft.com/en-us/library/aa364934%28VS.85%29.aspx
How would I write a program that can tell what directory it is in?
For example, how would I write a program that can tell if it is in C:\Windows or C:\Users or something like that.
Um, I am a bit lost in this.
1. Offshore Outsourcing.
2. Giving More Money to Those Who've Wasted it Already.
3. Providing Tax Breaks to Those Who Aren't Paying Taxes.
4. Rewarding Greed.
How come only the open source industry do not fall suspect under the above conditions? You aren't suggesting that companies who create proprietary software have been wasting money, haven't been paying taxes, and are greedy? Are you? They may be outsourcing, but even the open source industry have developers from all over the world, so any "jobs" created by the open source industry will end up going abroad right? Or are you suggesting that the Open Source Industry pay only volunteers in the USA, but not the volunteers in Japan, India, China...?
Of course, companies will save money using open source software, but I don't see how saving money will create jobs, or encourage entrepreneurship. Saving money will not stimulate the economy, all companies around the world are trying to save money by shutting down generators, air conditioners, cutting off overtime etc. But still we don't see us getting out of this mess. Only spending will stimulate the economy. By spending I don't mean wasting money, but investing. By all means invest in the open source industry too, but there are people who hold jobs in the "evil corporations", and the open source industry can't create jobs for all of them. Profit isn't actually greed you know.
Gallienus, what are you using? DOS? Or Vista on a computer meant for DOS? Don't say Vista or XP. If the hardware specs are met, they never crash. At least they have not crashed on me. And not for anyone who I know use Vista on machines with suitable specs. Makes me think that all those horror stories about Vista crashing are just marketing tricks created just out of spite.
Gallieneus, what are you using? DOS? Or Vista on a computer meant for DOS? Don't say Vista or XP. If the hardware specs are met, they never crash. At least they have not crashed on me. And not for anyone who I know use Vista on machines with suitable specs. Makes me think that all those horror stories about Vista crashing are just marketing tricks created just out of spite.
I called a few friends, and since they didn't experience it, for a moment, I thought my computer was compromised.
So, disconnected from the internet, did a virus scan and installed a firewall and another virus guard just in case. Only when I saw the BBC headline about the Google error in a while did I breathe a bit.
What is so special of having an open version of Windows? Isn't the already available versions of Linux enough? I mean everyone says that OpenOffice is superior to Word, Firefox to IE, Ubuntu to Vista.. and so on, so why would people need the source of a inferior product when there are superior products already available? Or is it the cash that Windows is making that you are after?
With a massively publicized almost childish attempt to claim the record for the most downloaded software ever, I don't think that all these downloads are unique. I tried using the upgrade facility of the browser, but the connection timed out from the server for 3 attempts, but when I tried downloading manually, the server had no problem handling my download request, which made me suspicious if the distributors were trying to discourage people using the upgrade facility in order to increase the download count.
My opinion would be to see how many would be actually upgrading for future releases in order to get a more accurate measure of the number of unique users (or rather computers) that have installed and are using Firefox. I don't think we will have to wait for too long until the next patch because according to the DV Labs Advisory Bulletin, there is a critical flaw in FF3 that was discovered just hours after it's release.
My line is LOL. Or is that only one line? I am too drunk to tell. Just yesterday I was thinking of changing back to IE, but decided against because then I would lose the use of Rikai Chan which I am using to translate Japanese to English and Vice Versa. I have been using FF 2 and FF3 beta for some time, but apart of the above mentioned plugin, I have never found a case where FF can be usefull more than IE7.
There may be limitations in the technology at first, but I think that touch screen PCs is the way to go. I read in another blog in Daniweb, that the author does not see the touch screen replacing the Keyboard, and I agree. But I think that this will certainly replace the Touchpad and after some time, the mouse. I have never been comfortable with the laptop touchpad and especially the IBM trackpoint, and use the old fashioned mouse whenever possible. I have been dreaming of the day of closing a window or selecting the cell of an excel sheet by the touch of the screen. Looks like the day is finally here. Hope it's price tag won't be too prohibitive.
What you say about the stock prices rising is certainly true. And Yahoo WAS not under any pressure to sell. But from the shareholders point of view, the stock prices that could have been higher are lower, and Yahoo still has some serious catching up to do with Google. So something must be done by Yang to convince the shareholders that he has something up his sleeve for Yahoo's future. Unless he can do that, his days in the driving seat will be over very soon. Let's wait and see. :)
I have no particular liking on Ballmer either. He is not a programmer and I do not believe in non-programmers having the technological vision on running software companies successfully. Bill Gates, Steve Jobs, Eric Schmidt, and to some extent Jerry Yang do, but not Ballmer. But in a business point of view, I do not see any face lost on Microsoft or Ballmer because of this failed acquisition bid. Going ahead on the hostile takeover would have.
In my opinion, it is Yang who will be feeling the heat. Ballmer has said in his letter to Yang that he will not go ahead with the hostile takeover threat. Stocks of Yahoo rose in anticipation of a takeover from Microsoft. Now that Microsoft has walked away, it will be interesting how the shareholders of Yahoo will react after the stock value falls.
Jaberwacky > Who wrote one of your favorite books?
Me > Hemingway.
Jaberwacky >Nope. Tolkien wrote the Lord of the Rings.
Me> So?
Jaberwacky> Olut.
Me > :eek:
Although the 5GB limit applies to users in the UK, Canada and US ^^; , the service looks good to me. The storage, notes and calender features are awesome.
This blog entry is regarding a registry hack for Windows XP. Be advised that twiddling with the registry requires care, and use the information here at your own risk. Backing up the registry before proceeding is adviced.
This is a based on the Add Command Prompt Here tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory.
This modification was created so that I could run a root console from any directory or drive even when I was logged in as a restricted user. This can come in handy because then you can run many programs in restricted mode without re-login in as Administrator. Of course there is the Runas menu for executables, but you don't get it for Folders and directories.
What you have to do is simple. Copy and paste the following code in to notepad and save the resulting file in any name of ".reg" extension. E.g. RootConsole.reg
Then do a one time login as Administrator and double click the newly created .reg file. If all goes well, you should see a Shortcut called "Open Root Console Here" when you right click a Directory or Drive. When selected it will open a Command Promt , ask you for the administrator password, and open up a Admin Console for you …
Post a screenshot of the control.
You have missed a semicolon at the end of this line.
double gettestscores
You can't get your program to run should mean compiler errors or link errors. Next time post the error or warning messages by the compiler if any.
4) could you improve the moderation process by making it so that can go into a menu in our CP, and see all unanswered reported posts in forums which we are in charge of. that would be really handy rather than having to comb through the reported posts board
***
I would love this too. Remember suggesting something like this when emails were disabled for reported post notifications. Right now, I use the hover tooltips as an alternative to find out if a reported post is under my jurisdiction. But because of the time difference between USA and Japan, most of the reported posts are solved when I wakeup or go home after work, so I don't find it much of a problem in my end.
These are what i find annoying.
Small quick reply box (and it having no code tag button )
Tab indents for code are too big
People don't use code tags
How do you change this behaviour for firefox and I.E? Anybody know?
Not me. Can see it just fine. However another site I frequent gives the same message. Wonder what/who this godaddy is...
I know that if I use the option to replace tabs with 4 spaces (which I already do in Visual Studio), this problem would be over for my code. But we do not have control of the other user's editors. When they post codes with the tab character used for indenting, even code with a level 4 nesting can wrap unnecessarily. Sometimes I copy and paste the code to my own editor and replace tabs with 4 spaces to make the code readable, and was wondering if there was a quick fix. But if as Dani says that nothing can be done about it, well I guess we should grin and bear.
What is the tab width (number of spaces indented for a tab) within code tags? Is it 8? Is it possible to change it to 4? Since the code is wrapped for lines with length less than 80 characters, I think that it is a waste of space.
Change Deck *dk; = new Deck;
in the main()
function
To Deck *dk = new Deck;
Either you didn't know that you should use braces, or you forgot.
for (int i=0;i<rollsize;i++)
{
switch (rolls[i])
{ // Forgot this
case 3:allresults[0] = allresults [0]+1; break;
case 4:allresults[1] = allresults [1]+1; break;
/* ......... */
case 17:allresults[14] = allresults [14]+1; break;
case 18:allresults[15] = allresults [15]+1; break;
} // And this
}