15,300 Posted Topics
Re: [URL="http://www.tutorialized.com/tutorials/C-and-Cpp/Graphics/1"]Here are some starter tutorials[/URL] for MS-Windows operating system. | |
Re: [quote]can some one make this before 19 march 2008. it is my homework [/quote] Absolutely NOT! Do your own homework. | |
Re: [QUOTE=crisjoyce;564446]Need to be informed on how to code and also how my coding should follow.If possible need to be shown with an example of how to code.Ihave never done this so please assist me.[/QUOTE] If you have never done a program then what makes you think you can code something … | |
Re: The computer that gets that error is missing one or more DLLs that are needed by the program. Make sure the program has been compiled for release mode instead of debug mode. | |
Re: Looks like you need to add code that will read/write employee information to/from a file (database). You need a menu in the main() function something like [code] 1. Read an employee record 2. Create a new employee record 3. Write the employee record 4. List all employee names 5. Quit … | |
Re: Don't expect to get very accurate timeings in the threads because XP (or any other version of MS-Windows or *.nix) is not a real-time operating system. So if you expect an event to happen in exactly X milliseconds it probably won't happen. Probably the best you can hope for is … | |
Re: what exactly do you mean by that? what operating system? what kind of printer ? what font? any graphics? any lines? If you search [url]www.codeproject.com[/url] you will find a few c++ classes for laser printers that do all sorts of fancy things in MS-Windows. | |
Re: Welcome to DaniWeb. >>I am a retired chef so I am not a complete idiot Since you posted this in the wrong place that statement is debatable :) (from a retired SMSgt). | |
Re: [URL="http://www.google.com/search?hl=en&q=fstream"]here are some google links [/URL]that will help you. Learn to use google because it will frequently find answers to your questions. | |
Re: Read you text book to see how to create a class. [URL="http://www.google.com/search?hl=en&q=c%2B%2B+linked+list+class"]Then you can use google[/URL] to find examples of a linked list class. The Person class should be straight forward -- just follow the example in your text book of in any of the hundreds of tutorials you can … | |
Re: Since you already know how many numbers are on a line [code] while( inFile >> num1 >> num2 >> num3 >> num4) { // do something with the data } [/code] | |
Re: Welcome to DaniWeb. Please feel free to post questions and comments in the appropriate boards. | |
Re: Welcome to DaniWeb. Hope to see you around a lot :) | |
Re: [QUOTE=chts12345;563406]Hi I didn't get you. This is not the answer of my problem.Please be clear.[/QUOTE] I think it was meant as a joke :) | |
Re: post some of the error messages. Also post the rest of the program -- what's above line 1??? | |
Re: Look at the function prototypes on lines 13-17 then look at the actual functions. The function arguments must be identical in each case. For example displayInfo() on line 14 does not have any parameters, yet on 59 it does -- in c++ they are not the same functions. >>but at … | |
Re: >>mbstowcs(CHAT," ",strlen(" ")-1 ); That's the same as this: [icode]mbstowcs(CHAT," ",0);[/icode]. In otherwords, it does nothing. >>What shows up is "123defg" You aren't clearing the CHAT beffer before copying the contents of szRecvBuffer. Zero it out first. The second problem is that you are subtracting 1 from the length of … | |
Re: Is this a test question? How many browney points do I get for answering it :) | |
Re: First you need to decide on what the file is going to look like -- design the file format. My suggestion is to put everything about one account on a single like with commas separating the individual fields. For example [code] 12000,John Smith,1000000.00,999.99 [/code] Now with that you can easily … | |
Re: what does [b][URL="http://depts.washington.edu/fasdpn/htmls/fasd-fas.htm"]Fetal Alcohol Spectrum Disorders (FASD)[/URL][/b] have to do with anything ? | |
Re: try this: [code] void Perfect (int number) { int sum = 0; vector<int> ay; for (int i = 1; i < number; i++) { if (number % i == 0) { sum = sum + i; ay.push_back(i); } } if (sum == number) { size_t i = 0; cout << … | |
Re: [QUOTE=wonder_laptop;545553]intresting :) and what are names of the files that correspond to that library?[/QUOTE] depends on your compiler because there is no standard naming convention. *nix it's normally in libm.a as Duoas reported. MS-Windows Microsoft compilers the math functions are in one of the [URL="http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx"]c runtime libraries[/URL]. | |
Re: There are millions of topics -- can you narrow it down just a tad ? Such as what is the problem and what parts are you confused about? | |
Re: template and inerentence at two completly different animals. You would use one instead of the other at any time. I'm not great on templates but I think templates can experience inherentence just as normal classes can. | |
Re: You have come across a common problem that is inherent in the way floats and doubles are represented in memory. There are many numbers that can't be represented exactly. One way around your problem is to use only long integers with implied decimal point. For example instead of 1.23 in … | |
Re: I guess you need a [URL="http://www.w3schools.com/sql/default.asp"]tutorial[/URL] to learn the SQL language. [URL="http://www.google.com/search?hl=en&q=sql+tutorial"]Here are several others [/URL]if that one isn't so good. What you want to do is in the join clause. We have to know the schema of each table before we can say exactly how to do it but … | |
Re: >>help me to do operator overloading n class Does that mean you want us to write that class for you? If not then you need to post the class that you have written. If it does mean that then sorry but you're out of luck here because we don't do … | |
Re: >>while(i<50 && in_stream.getline(temp, 50) && temp>0) Under what conditions would temp ever be 0 ? My guess is that it can't every be 0 because it is allocated pointer or a character array. So checking for temp > 0 is superflous. >>if(isdigit(temp)) That is only checking if the first character … | |
Re: Add the encrypt *.cpp file to your MFC project then compile and link just as you have the rest of the program. In the OnClick() event handler for the button just call your emcrypt function as you would any other function. Not able to unzip the attachment with WinZip. | |
Re: >>I'm trying to do section off functions by themselves first Excellent appropach to the problem. Do it just a little bit at a time and you won't have so many problems. Line 8: remove the semicolon at the end of the line. That is a very very common error that … | |
Re: just put a space between each one [icode]cout << The average of: " << a << " " << b << " " << c << d << " " << e << " "<<" = " [/icode] | |
Re: Not sure right now if this will work, but create a third array with 1000 rows that will contain the difference between the value in the array and the search value. Example: [code] array[0][0] = 2.00 array[0][1] = -200.00 delta = (4.056 - 2.00) + abs(-200.375) - abs(-200.0)) = 2.431 … | |
Re: [QUOTE=SpectateSwamp;349527]I have a couple more tips to add to my Nature and Digital Video tips list. Check the following clips out first. [url]http://video.google.ca/videoplay?docid=-2712850167775261588[/url] [url]http://video.google.ca/videoplay?docid=-2491448387537557028[/url] You can download the originals and take a more serious look if you have video editing software. Somebody out there should be able to explain this … | |
Re: line 3 -- delete it because the program does not use anything in that header file. move the close brace on line 20 down to the end of the function on line 25 (after the return). Then remove the open brace on line 13 because it is redundent. remove the … | |
Re: there is stricmp() C function, but there is no c++ equivalent. convert the string to all upper or lower case then search it. [code] string stringToFind = "number["; string stringToSearch = "something Number[1]"; transform(stringToSearch.begin(),stringToSearch.end(),tolower); stringToSearch.find(stringToFind); [/code] | |
Re: you need a loop and the macro toupper(). For example of how to convert a single character to upper case please read the related thread that appeared immediately next to the one you created. | |
Bill Gates ?? think again because he lost that title in January this year when he tried a hostile takeover of Yahoo. Microsoft stock fell 15% and put poor Bill in the #3 spot behind Warren Buffett (now #1) and Carlos Slim Helú from Mexico. Full article [URL="http://articles.moneycentral.msn.com/News/GatesDethronedBuffettIsRichest.aspx?GT1=33009"]here[/URL]. | |
Re: line 12: Since temp is an uninitialized pointer this line will most certainly crash your program. You have to allocate memory using malloc() before starting the loop on line 10. Line 8 should read: [icode]char *tmp = malloc(strlen(string)+1);[/icode]. line 7: You don't need to save the pointer [b]string[/b], you need … | |
Re: line 23: you are attempting to give each of the variables two names -- delete a, b, c and d then leave all the rest. | |
Re: Perform a complete antivirus scan and see if it will fix them. | |
Re: remove the brackets from the last parameter -- it should not be an array [icode]int searchList(string array[], int numElems, string value);[/icode] | |
Re: what do you need help doing ? >># include <string.h> That is the wrong header file which contains C functions for manipulating character arrays. What you want is [icode]#include <string>;[/icode], without the .h file extension Do you know how to write a constructor ? You will find them explained in … | |
Re: see line 10: it has the wrong prototype. Compare it with line 25 which is correct. | |
Re: [QUOTE=Sh13;561932] I'm totally stuck!![/QUOTE] Get out the lard and grease up to that you can get unstuck :) | |
Re: Its pretty easy to extract the number between the square brackets, but why? put the number in a std::string ? std::string has a replace() method that you can use to replace one substring with another. | |
Re: The only way to get the exact row count of the number of rows returned by a query is to count them as they are retrieved. Before starting to retrieve rows the db server knows whether or not there are more than zero rows, but doesn't know exactly how many … | |
Re: You forgot to tell us what is the problem -- sorry but I'm not a mind reader. | |
Re: >>but still i dont know how to fix the warning Should be obvious -- put a return value at the end of the function. Once the loop ends the function is supposed to return something, but you forgot that instance. I think you can delete lines 65-68 and just return … | |
Re: If you upgrade to Vista there are a lot of programs that ran on XP that will not run on Vista. If you like to play a lot of games on XP then check with the manufacturer(s) of your favorites before upgrading. I have to duel-boot back to XP in … |
The End.