15,300 Posted Topics
Re: >>Another number also considers people who are stuck in a low paying or a partime job. They are NOT unemployed! How can you possibly be considered unployed if you have a job and get a paycheck? There are many unemployed people who are not counted in the unemployment rate. The … | |
| |
Re: line 19: missing closing } character to close out that if statement line 49: incrementing that pointer just destroyed the memory that was allocated on line 42. You must never change an allocated pointer. If you want to use pointer arithmetic (increment and decrement) then use a different pointer. I … | |
Re: Are you sure about that 2,000/day? I have been here almost 4 years, and at that rate there should have been nearly 3,000,000 new members! On the otherhand it probably hasn't been 4 years since you started doing that. | |
Re: >>so English experts we want to listen from your expertise. That will not be me, but I will give you my opinion anyway :) There are hundreds of English language dialects, even in the USA there are quite a few. Fortunately, most of them can be understood by most people, … | |
Re: >>I also don't know why every place there is a colon and capital D I am getting an emoticon. Yea -- click the Advanced button, scroll down to the checkbox Disable Smilies In Text. I fixed it for you. I think there were lots of changes between 2003 and 2005/8. … | |
Re: >> // not sure what goes here Neither do we since you didn't post enough of the class to know what is supposed to be returned. Its supposed to return a reference to something, but we have no idea what. | |
Re: [QUOTE=rm_daniweb;845354] 2. lack of "()" in sizeof(line) your code: while ( fgets ( line, sizeof line, file ) != NULL ) /* read a line */ should be --> while ( fgets ( line, sizeof(line), file ) != NULL ) /* read a line */[/QUOTE] What? sizeof doesn't always require … | |
Re: [QUOTE=Sturm;840190]I think happygeek should change his name to happysuit. And dani should be happyhoe.[/QUOTE] In USA a [b]hoe[/b] i[URL="http://www.youtube.com/watch?v=QoMspJqqVcA&NR=1"]s a slang word for whore[/URL]. So are you calling Dani that? | |
Re: >>str[i++] &= 0xDF; //reset bit 5 Programming is not about trying to be cute, but about writing code that you and everyone else in the world can easily comprehend. [icode]str[i] = toupper(str[i]); ++i;[/icode] | |
I came across [URL="http://www.daniweb.com/forums/thread15640.html"]this thread[/URL] from a few years ago. I was thinking I would like to put a small image in my signature, tried it but it didn't work. Is the policy (no gifs in sigs) still valid? Or did I do it wrong? Honestly I haven't see anyone … | |
Re: [QUOTE=ahihihi...;844478]human race won't die as long as there are males[/QUOTE] what about nuclear war??? Or an huge asteroid hitting Earth ?? Or little green monsters from Mars ??? | |
Re: [URL="http://lmgtfy.com/?q=c%2B%2B+to+read+xls+files"]Here you go[/URL] | |
Re: [QUOTE=jwenting;597930]End result: glassy-eyed supermarket cashiers who can't even add up.[/QUOTE] LOL: Not where I work -- we have to pass a first grade level math test before we can be hired as a cashier :) Yes, I remember hearing about those experimental schools -- they didn't last long. | |
Re: in main.cpp, delete line 2 `#include "hello.cpp"`. NEVER EVER include a `*.c` or `*.cpp` file in another one like that. If main.cpp needs to know about that function, then just use extern keyword, like this: #include <iostream> using namespace std; extern int funny_words(); // blabla Also, funny_words() is declared to … | |
Re: Which line are you getting that error on? | |
Re: why bother using strncat() just to concantinate a single character? Seems such a waste of time. And in that loop [icode]K[k][0] = '\0'; [/icode] is always deleting the previous entry in the array. A much easier, and IMO, better approach to the problem is just keep another counter where the … | |
I'm using FF version 3.0.2 on 64-bit Vista. Every once in awhile it will just simply crash. I can restart and it will take me back to where it was when it crashed. Anyone know why it does that? | |
Re: Welcome to DaniWeb. Sorry, but this is not the place to post encryped messages or c++ code. | |
Re: >>can u help me Yes, but you have to explain a little more what you want and how we can help. For example, what is "final database ER" ? | |
Re: For MS-Windows you will [URL="http://www.microsoft.com/whdc/Devtools/wdk/default.mspx"]need this[/URL]. But you don't need to write a driver to do what you want -- there are win32 api functions that let your program monitor the file system. [URL="http://lmgtfy.com/?q=how+to+monitor+windows+file+system"]Here is a start how to do that[/URL]. | |
Re: How is that array declared in the class? Array's can't be initialized like that after they have been declared. After the array has been declared that is has to be initialized the hard way, like below. [code] TravelVoucher::exchItems[0]="Dinner for TWO at BestFood Restaurant"; TravelVoucher::exchItems[1]= "Buffet for TWO at EatTillDrop"; TravelVoucher::exchItems[2]= … | |
Re: scanf() with "%s" (see line 16 of your program), like its cousin gets(), should never ever in this lifetime be used for any purpose Its an evil function that will cripple your program and possibly crash the os. Instead, use fgets() which limits imput to the size of the input … | |
Re: >>#include <afxres.h> That header file is only useful in Microsoft MFC programs. For Dev-C++ you might as well delete it. | |
Re: There's nothing to it [icode]MessageBox(NULL, "Hello This is a message box", "Help", MB_OK);[/icode] | |
"Hail to the Chief" sounds forth as the President of the United States arrives at any formal occasion Thought you might enjoy this version. :) [url]http://video.google.com/videoplay?docid=6185603495801760929[/url] | |
Re: That's pretty much it in a nutshell. If you want to know exact details than I suppose you need to go to amazon.com and buy a book. | |
Re: use the functions in time.h to get a struct tm, then use sprintf() to format the filename [code] char filename[255]; struct tm* tm; time_t now; now = time(0); // get current time tm = localtime(&now); // get structure sprintf(filename, "file_%02d%02d%04d", tm->tm_mon+1, tm->tm_day, tm->tm_year+1900); [/code] | |
Re: I'm not sure I understand the format of the *.txt file. Will you post an example file? And the keyword file. What does it look like -- post sample lines from that file. | |
Re: >>if(str1==str2) Can not compare two strings like that. use strcmp() [icode]if( strcmp(str1,str2) == 0)[/icode] | |
Re: Create 5 integers that will accumulate the counts for each vowel. [code] print prompt to enter string accept keyboard input into std::string or character array variable loop through each character in the string beginning of loop test for vowel if 'a' then increment a-counter else if 'e' then increment e-counter … | |
Re: What I have done is create a structure with all the information I want exchanged between the two windows. When the 2nd window is created pass a pointer to the structure to the 2nd Window so that it can fill in the information. Once Window 1 regains control it will … | |
Re: >>I need to copy the name, addr, telephone, carinfo, payment array to the output array. How would I go about doing that use strcat() to concantinate c-style character arrays. You just need to make sure the destination string is big enough to hold all the strings you want to put … | |
Re: Its probably the DLLs. What version of os did you compile it on, and is it different than the one you tried to run it on? In the compiler's install directory you will see a folder named "redist", which contains the DLLs you may have to install with your program. … | |
Re: I think that is beyond the scope of VC. Get an installation program, something like InstallShield should do it. | |
Re: [quote]Dirty IT job No. 5: Ability to withstand a variety of environments and personality types; concealed-weapons permit a plus. Individuals with anger management issues need not apply.[/quote] Try installing the computer and your program in a flour factory where the employees have to wear a mask because the air is … | |
Re: use "%-4d" to left-justify the number in the field. Probably what you are seeing is the number right-justified. | |
Re: >> fgets (mystring, 100, &file); That's wrong -- remove the & symbol [code] int main(int argc, char* argv[]) { char line[255]; FILE* fp; if( argc == 1) fp = fopen(argv[1], "r"); else fp = fopen ("myfile.txt", "r"); while( fgets( line, sizeof(line), fp) != NULL) { printf("%s", line); } fclose(fp); } … | |
Re: you need to use CString's Format() method. It works exactly like printf(). [code] CString txt; txt.Format("%d", m_AMC.get_FramesDrawn())); MessageBox(txt, MB_OK); [/code] | |
Re: >>Does my second header have to be a pointer too or can it be static? No, it does not need to be a pointer. what you have on line 14 of class example2 looks ok to me. | |
Re: what operating system? Dynamic C -- never heard of it. | |
Re: you did't include "F:\SDL-1.2.13\include\SDL.h in that zip file. FiltroPNM::ApplyPixMap() has a lot of conversion problems -- converting int to float. [code] media = ( F_img_pix[i].rgb[0] + F_img_pix[i].rgb[1] + F_img_pix[i].rgb[2]) * 0.33333; F_img_pix[i].rgb[0] = media;//transform red F_img_pix[i].rgb[1] = media;//transform green F_img_pix[i].rgb[2] = media;//transform blue [/code] All those lines produce warnings which … | |
Re: If you have variables a, b and c it would be not too difficult with some if statements. But the more variables you have the greater difficulty to sort them without an array or linked list. | |
Re: line 56: initialize variable [b]i[/b] to 0. line 75: fgets() adds the '\n' to the end of each line when '\n' appears in the data file. I don't know off-hand it that will cause problems for getaddrinfo() or not. You might add code between lines 57 and 58 to strip … | |
Re: [QUOTE=clutchkiller;788555]I hope all of you Obama fanboys are proud that you finally elected your closet terrorist into office so that he could shut down Gauntanamo Bay and release all his muslim friends, and while he was at it he shut down all over seas prisons linked through the CIA so … | |
Re: >>How do I get another browser on my computer? Go to the web site and download it ??? | |
Re: You need to use function prototypes [code] void run(); // this is a function prototype void command( const char* cmd); // another function prototype int main() { run(); } void run() { "code" } [/code] | |
I have a bunch of old attachments I want to delete. Some of them have selections squares on the right side of the list while many do not. How do I delete those that can not be selected ? |
The End.