15,300 Posted Topics
Re: Don't feel too bad -- most of us were in your shoes. There is a [URL="http://www.daniweb.com/forums/thread70096.html"]sticky thread [/URL]about additional c++ books you might want to read. If you have a few specific questions then just post them here. | |
Re: If USA is such a terrible country why is it that so many people try to get here? We have to make getting citizenship and green cards difficult because we don't have room to accommodate everyone on earth. We must take the [b]Me First[/b] attitude in this case. | |
Re: >>what amount of time as a software developer are we supposed to spend being with computer? 24/7 :) If you are in school and trying to work full-time too then your love like will suffer greatly. Take small vacations away from work frequently to help avoid burnout. And don't forget … | |
Re: search [url]www.codeproject.com[/url] because I've seen several articles about that. | |
Re: I think you will need to Vista update to the Windows Platform SDK. I just tried to get it but kept getting link errors, so I don't know what's going on unless the M$ site is just too busy at the moment. | |
Re: Interesting. So are you saying we need to open a bar to promote our web site :) | |
Re: [QUOTE=Sky Diploma;904328][url]http://msdn.microsoft.com/en-us/library/96ayss4b(VS.80).aspx[/url] I think the example in that page might help you out ![/QUOTE] Also pay close attention to the Note in that article -- you can not use popen() in a Windows program, it only works in console programs. And that's really unfortunate.:'( | |
Re: maybe [URL="http://www.codeproject.com/KB/system/Task_Manager_Extension.aspx"]this article [/URL]will help you | |
Re: check out [URL="http://www.codeproject.com/KB/winsdk/IMAPI2.aspx"]this article[/URL]. I'm not sure it will help you, but it almost has to contain ability to open/close the DVD door. | |
Re: VC++ 2008 Express edition does not contain a resource editor. If you want one then you will have to get one of the free ones (or buy one) that you can find on the internet. | |
Re: Interesting ... there have been at least two studies I know about on this topic. One was a few years ago by TV news show concerning the love live of successful, but not necessarily great looking, women. Most of these women were also single and lonely because most men were … | |
Re: I think you want to add your own Avatar. In the yellow bar at the top of any DaniWeb window, cluck "Contro Panel" link. In the left side of the screen you see "Edit Avatar". You can use either one of the canned DaniWeb avatars or load your own from … | |
Any way to turn off that annoying music when a new message arrives :@ I have already unchecked the items in [b]Play A Sound[/b] when new message arrives, but the music still persists. | |
Re: I'm not sure it can get much faster, have you used a backup program? They can take hours to do their job. | |
Re: [URL="http://www.microsoft.com/eXPress/download/"]VC++ 2008 [/URL]-- Express edition is free. Although C# is good too. | |
Re: or like this, when done the vector will contain the contents of both int arrays. [code] int main() { int a1[45]; int a2[45]; int x = 0; vector<int> v1( (sizeof(a1)/sizeof(a1[0])) + sizeof(a2)/sizeof(a2[0]) ); for(int i = 0; i < sizeof(a1)/sizeof(a1[0]); i++) v1[i] = a1[i]; for(int i = 0; i < … | |
Re: I have not tried them but [URL="http://www.thefreecountry.com/programming/resourceeditors.shtml"]these look promising.[/URL] | |
Re: [QUOTE=tux4life;902298]Debug -> Start Debugging Or just press F5[/QUOTE] either way works. | |
Re: >>vec_enc_data.push_back(enc_data); I think the problem is that enc_data is the same for every row in the vec_enc_data vector. What you probably need to do is allocate a new array for each row [code] uint8_t* ts_checksum; ... ts_checksum = new uint8_t[32]; getHash(sencdata,enc_data); ... vec_enc_data.push_back(enc_data); [/code] | |
Re: [QUOTE=yun;901577]I m surprised and wanna know that how the compiler understand the sequence of how data was entered. as i didnt use any space any tab not a new line, how it can point to the original value from a single line..????????? [/QUOTE] The compiler has no clue how to … | |
Re: [URL="http://www.zonetrigger.com/sound-detection/"]probably like this[/URL] | |
Re: [QUOTE=twomers;548070]In terms of education, healthcare etc I don't think anyone can really have an educated view on this unless they lived in both nations for long enough period, say about ten years..[/QUOTE] A comparison of educational institutions (universities) around the works shows USA far ahead of any other nation including … | |
Re: >>words=next_word(instring, '\0' ); The function returns char* but words is an integer. The warning should not have been ignored. Fix it instead of ignoring it. The second thing wrong with that line is that the second argument to the function is supposed to be a char**, not a single character. … | |
Re: [URL="http://www.codeproject.com/KB/threads/redir.aspx"]read this[/URL] | |
Re: post the data file. >>or could it be because of the x64 cpu? Unlikely. I'll let you know when you post the data file. | |
Re: I am currently having a lot of problems too when attempting to do mod stuff, like list all member's posts. All I get, when it finally finishes, is a blank screen with "done" in the status box at the bottom of the browser's window. Yesterday I was able to click … | |
Re: >> s1.print.heading(); That should be [icode] s1.print_heading();[/icode] | |
Re: You mean you want to pass argv[1] to thread #1, argv[2] to thread #2 etc. ? Seems pretty trivial to me. | |
Re: misspellings mostly [code] class A { public: virtual vector<int> getSomeStuff(); private: }; vector<int> A::getSomeStuff() { vector<int> ay; return ay; } int main() { } [/code] ![]() | |
Re: Read [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS328&=&q=why+goto+is+bad+in+c+programs&btnG=Google+Search&aq=f&oq="]these google links [/URL]about goto. The main reason its considered bad it because it makes the program very hard for others to read and understand. If you ever get a job writing programs then you will not be the only person reading the code you write. So you have … | |
Re: line 56: [icode]int rational::Add(rational r)[/icode] What do you expect the Add() function to be doing? line 58 creates an uninitialized variable of type rational and you are using its random contents in lines 61 and 62. The result of that calculation on line 64 will be garbage. ![]() | |
Re: Welcome to DaniWeb. I happily see that we are in the same age group, as well as at least one other DaniWeb member. Hope you stick around and enrich us all with your wealth of experience and knowledge. | |
Re: >>It's a habit of mine to always put my else statement in brackets, That is an excellent habit to get into. :) In the code you posted those brackets are necessary. The else only belongs to the last if statement. IMO it would be better to use else after each … | |
Re: >>Is there an easy way to read a line of numbers and store each number into an array? Yes -- juse use cin's >> operator to get each individual number [code] int i = 0; int array[255]; while( cin >> array[i] ) i++; [/code] you can also use stringstream class … | |
| |
Re: I just created a new Windows Forms project, and Form1.h is 66 lines, including blank lines. There is no Form1.cpp file, but there is a <project name>.cpp that contains main() with a few lines of startup code. | |
Re: [QUOTE=tux4life;898621]Why not using a [B]stringstream[/B] ? [/QUOTE] Because its overkill. A simple subtraction will do as previously posted. | |
Re: The functions in time.h are only accurate to 1 second -- so no matter how you divide it you still have only 1 second accuracy. You need to use other functions, such as clock(), or win32 api function GetTickCount(), or GetSystemTime() that provide more accuracy. | |
Re: [QUOTE=niek_e;896281]How did you create [I]this[/I] new thread ?[/QUOTE] He originally hijacked another thread, and we (Happygeek) moved his post here. | |
Re: [URL="http://www.dmccormick.org/ecommerce1.htm"]Homework[/URL] ? you might also research some of [URL="http://www.google.com/search?hl=en&q=Ethical%2C+moral+or+legal+implications+of+using+e-commerce+&btnG=Google+Search"]these[/URL] google links. | |
Re: I'm using 64-bit Vista, but wish I was using XP so that I could play my favorite game Diablo LOD. It won't play on Vista. I have a copy of 64-bit XP but had to uninstall it because of lack of device drivers at the time. I also have a … | |
Re: Just a guess, but if you are trying to read the contents of a structure perhaps there are holes in the structure, such as the packing factor is something other than 1. [code] #pragma pack(1) struct mystuff { WORD a; DWORD b; // etc }; #pragma pack() [/code] | |
Re: get yourself one of the free 32-bit compilers and call [URL="http://msdn.microsoft.com/en-us/library/ms646301(VS.85).aspx"]win32 api functions[/URL] | |
Re: you can't really delete an element from an array, about all you can do is blank it out. [code] int main() { string names[7] = { "jim", "mag", "narelle", "jim", "helga", "mag", "kim" }; int asize = sizeof(names)/sizeof(names[0]); for (int i = 0; i < asize; i++) { if( names[i] … | |
Re: Those binaries are not instealled with the operating system, so you have to get them from the compiler's installation directory. Since you are creating your own compiler/linker you too will have to install those libraries with your compiler. I don't know how compiler makers such as GNU get those libraries … | |
Re: delete lines 21-25 because that is just meaningless crap. | |
Re: IMO the easiest way is to convert both date strings into time_t integers, then just subtract the two integers. That will give you the difference in seconds. After that its just dividing up the seconds into minutes, hours, and days. The instructions say nothing about calculating the number of years … |
The End.