15,300 Posted Topics
Re: IMHO Windows 8 for PC is a load of shit, a complet failure worse than Vista. I installed it, then all hell broke loose and I lost everything. I tried to repair the file system but it was too far gone. Today I removed Windows 8 and replace it with … | |
Re: Everyone, everywhere, can help by donating whatever they can afford to the American Red Cross at at [this link.](http://www.redcross.org/charitable-donations). Be aware that other organizations may not be legitimate and may be scams. You should check out other organizations thoroughly before donating to them. | |
Re: >pleassse i want the answer after one week because the last date after one week. I'll be glad to do your homework for you. Just deposit $1,000.00 USD into my PayPal account for each program you want written. No guarentees of course. | |
Re: You posted your program but failed to ask a question. We aren't mind readers. | |
Re: you will have to recompile the program. Whether it will compile depends on your compiler. You will have a better chance at that if you use Code::Blocks with MinGW compiler, which is a port of the same compiler on \*nix. | |
Re: What os and browser are you using at work? Is it owned by US government? | |
Re: In the read function, the loop should look like below. If that doesn't fix the problem then I suspect the problem is in the BOOK class constructor. You need to post it. while( file>>ID>>bookName>>author>>book_type>>copies>>price>>status) { } | |
I put a shortcut on my desktop to DaniWeb.com, but it shows some default icon. Do you have one that I can repalace it with? | |
Re: Did you read [this thread](http://www.daniweb.com/software-development/cpp/threads/70096/c-books)? If not, you should. | |
I just got Windows 8 Pro installed on my touch-screen PC, pretty nice so far. Bought it today at Best Buy for only $65.95 USD, which is about 1/2 normal price. Everything went smoothly with no problems at all, took, about 1 1/2 hours. I installed it as an upgrade … | |
Re: What, specificially, do you need help with? Post what you have done so far, even if its wrong, and ask specific question(s). | |
Re: If you use relative path then your project may not work because some \*.cpp files are in different folders so the relative locations will change depending on the location of the \*.cpp files. Use full paths and it should be ok. | |
Re: Remove the & before input.operation and input.value because they are already passed as pointers. It is not necessary to use & before character arrays unless you want to pass a pointer to somewhere other than at the first character in the array. If you want to use & then do … | |
Re: Esc doesn't close the window, at least it doesn't work in IE9. Maybe you should put a Cancel button on the code window. | |
Re: One of the "problems" with floating point is that many numbers can not be represented exactly as you have found out. It's due to the way floats/doubles are represented in memory. A full explanation is given [here](http://en.wikipedia.org/wiki/Floating_point). | |
Re: When you declare variables within a switch statement you have to enclose the case statement in { and }, something like this: case 7: { FILE* fp; // rest of case 7 code goes here } | |
Re: >arr[4]= 1 >1 < 4 is true so it has to print right,but its printing wrong Yes, but that isn't what is being compared. arr[1] is 4 | |
Re: where is the array cellphone used in lines 34-40 declared? | |
Re: I just use google to look up the words I don't know how to spell (which is most of them) | |
Re: have you looked at boost file system fuctions? Boost may have already solved your problem for you. >Microsoft has not released the official exFAT file system specification, and a restrictive license from Microsoft is required in order to make and distribute exFAT implementations. Microsoft also asserts patents on exFAT which … | |
Re: what is the error? line 66: what if I enter a value of 500? Your program will blow up with that. You need to put a check in there to make sure its a value between 0 and 50. | |
Re: There probably is a statistical lib somewhere, just google for it. | |
Re: where is TManagerProc defined? It has to be defined before it can be used. | |
Re: [Here](http://techcure.wordpress.com/2012/07/22/run-turbo-cc-in-a-32-and-64-bit-windows-system-in-full-screen-mode-using-dosbox/) is what you are looking for. Easily found using google. | |
Re: > it does not have a Timer function as CWnd::OnTimer Not to worry, SetTimer() is a global win32 api function, so just call that in CWinThread. >Is there any way i can implement a timer based function inside a CWinThread, being also able of course to accept messages coming from … | |
Re: Yes, I like it, with the exception that Microsoft dropped support for Windows Forms in their CLR/C++ templates. Not sure if the compiler will compile it or not if you have a WF program started by an earlier version of the compiler/IDE. Unfortunately I think it's a little slow starting … | |
Re: >Why isn't the smallest value in the remaining section only looked up and then swapped with index i at the end? Because that's a different sorting algorithm. For small amounts of data or data that is already nearly sorted insertion sort is as good and fast as most others, maybe … | |
Re: Help you do what exactly? Start your program that just opens a file then reads it one line at a time. Once you get that compiler without errors and working, you can do the rest of the assignment. Do the assignment one small step at a time and you will … | |
Re: The error(s) reported by vc++ is because the compiler is compiling the source files as c++ instead of C. In C the return value of void\* functions such as malloc() do not need to be typecast, but in c++ they do. This is a requirement of the C and C++ … | |
Re: you need to use a graphics library, such as win32 api for MS-Windows. There are cross-platform libraries, such as wxWidgets and QT (a compiler). So the answer to your question will depend on the operating system you are using and the compiler. | |
Re: You don't actually add new elements -- just keep track of the next unused element then increment the counter once that element has been filled. Static arrays can not be expanded or contracted, so declare an array of integers of size 5000 elements, then declare an int counter which keeps … | |
Re: [try this](http://msdn.microsoft.com/en-us/library/system.object.tostring.aspx#Y0) | |
Re: line 34: where is function monthlyInterest() prototyped? | |
Re: what compiler and operating system are you using? If you are getting the error that the file is not found then the file is not where you think it is or the program isn't running in the same folder as the file. Put the full path to the file on … | |
Re: >(I am struggling in a class that I really shouldn't have taken Then drop the course and take something else. Post what you do know how to write then we can go from there to help you. No one here is going to write all of it for you. | |
Re: Any reason you are trying to use CLR/C++ instead of just c++? Create a c++ (or c) win32 console program, then call cout to display each asterisk and space. No need to store them in a std::string variable. Because of the markup language used in this editor it's impossible to … | |
Re: inline assembly is not standard, so it all depends on what compiler you are using. VC++ does not allow dw opcode. | |
Re: line 70 is attempting to store a value that is less than zero into an integer, which can not hold such values. If you are not allowed to use doubles than multiply the result of the division by 100 and assign that to the integer. Example: (1/2) \* 100 = … | |
Re: If you are using the program in your other thread it won't be easy to do what you are asking. It might be easier to use a different grid, one in which you can get the source code (free). One such grid is at codeproject.com, just go there and search … | |
Re: Each node in a linked list is actually a pointer to a node object, in your case a node is a structure that contains words and a pointer to another node. So to create an array of pointers to the nodes, create the array of pointers, then use a loop … | |
Re: Have you tried using a more modern version of visual studio compiler? Like VC++ 2010 Express (free) or just-released VC++ 2012 Express (also free)? Neither of those versions of vc++ need or use the windows SDK. | |
Re: You mean something like this? Of course it will all depend on how the file was written -- what are its exact contents. istream& readFile(istream& in, double& dbVal, char& charVal, int& intVal) { in >> dbVal >> charVal >> intVal; return in; } int main() { double dbVal; int intVal; … | |
Re: depends on how the file is written. If its a simple text file then you will most likely have to completly rewrite the file. | |
Re: your attachment is unreadable. what compiler, operating system, and gui library are you using? But it should be a simple thing to place a button wherever you want it and add the text "up" or "down", but maybe a checkbox would be better suited for that. | |
Re: what parts of the program do you need help with? No, I'm not going to finish it for you. Just complete the instructions one at a time. Look at the 1st instruction, does the program you posted do all that? Answer: No. So the first thing you need to do … | |
Re: what you need is an array of strings so that the program can keep all the strings until ready to print them all out [code] const int MAXSTRINGS = 10; // hold max of 10 strings const int MAXLENGTH = 25; // maximum of 40 characters per string char firstname[MAXSTRINGS][MAXLENGTH]; … | |
![]() | Re: line 31: deposit is declared as bool, so it can't contain the value shown on line 31. The test will alays be false because it can only be 1 or 0. I compiled it on MS-Windows and didn't get any of the errors you reported. The only probledm was what … ![]() |
Re: you need to allocate new memory for the array. SendBack[x] = malloc(strlen(BUFFER)+1); strcpy(SendBack[x], BUFFER); | |
Re: I assume you want to use pointers for mask_array[i]? Assuming mask_array is an array of integers int* mask_ptr = mask_array; for(int i = 0; i < 16; i++, mask_ptr++) bit_a = ((*mask_ptr & a)?1:0); Another option bit_a = ((\*(mask_array+i) & a)?1:0); |
The End.