15,300 Posted Topics
Re: Very very difficult, but they can be read easily in C# and VB.NET due to the .NET functions that are not available to standard c++. In C++ it's a lot easier to create a CSV text file and let Word import it. Or use [Office Automation](http://msdn.microsoft.com/en-us/library/ms173024(v=vs.90).aspx) software. | |
Re: The arrays are declared as two-dimensional arrays and line 26 is trying to treat them as one-dimensional arrays. Why are they two-dimensional instead of one dimensional arrays? | |
Re: Why do you need to do that? Just have an array of max possible size, then have a variable, such as arrsz, that contains the size you want (either SIZE_10 or SIZE_20). It won't matter if you have extra elements in the array that aren't used. >extern unsigned char marray[arrsz]; … | |
Re: I would do it by using an array of 255 ints, each element in the array represents one of the characters in standard ascii character set. So, if you enter 'A', then all you have to do is increment array['A']++. When done, all the non-zero elements are what you want. … | |
Re: >The basic difference between int( keyword of integer) and char(keyword of character) is the first is integer that is includes numbers(without float values),whereas character includes (a to z and A to Z and sometimes 0 t0 9,some special chars like .,+-!?,...),char may be string also that is group of chars. … | |
Re: why not ask that on [their forums](http://sourceforge.net/p/dtorrent/discussion/)? | |
Re: It can get even more complicated than that -- for a complete discussion see [this article](http://en.wikipedia.org/wiki/Newline). At one time the MAC used CR as line terminator, don't know if that' changed in recent years or not. | |
Re: My guess -- define RainfallListNode before RainfallList because RainfallList uses RainfallListNode which has not been declared yet. | |
Re: >how to creat recovery softwear? Study c or c++ for a couple years and you might be ready to answer that question yourself. | |
Re: what kind of images -- gui or text? If gui then you would be better off using a library suited for that such as OpenGL -- all the hard work is already done. | |
Re: Then go to court and have his name changed, his parents weren't funny giving him that name. | |
Re: We can all help you and it will be for free. But Dani would sure appreciate any donation you want to give her. If the class is too high for you then maybe you should think about dropping it and enrolling in a lower level class. | |
![]() | Re: That's a new feature of c++11 iso standards. Some compilers such as Visual Studio have not implemented it yet, while others such as g++ may need special flags. For compiles that don't support that, just change line 81 to this: `string* boardWithPieces = new string[rowLength*columnLenght];` As for the freezing problem … ![]() |
Re: delete line 26 because it destroyed the seed generated by line 25. | |
Re: [Tchaikovsky - violin concerto](http://www.youtube.com/watch?v=ATK_pj2iMqg) | |
Re: >am wondering why would one need to swapp the numbers in real life? One very good reason is sorting numbers in either ascending or descending sequence. | |
Re: Most likely the problem is compiler mangling names. c++ compilers change function names so that they can be overriden, while c compilers do not because c does not support overiding functions. The most common way to prevent name mangling is like this #ifdef __cplusplus extern c { #endif #include "widget.h" … | |
Re: What did you burn? If it was pirated then that may be the reason the dvd won't play. | |
Re: Here you go, but don't be supprised if you get an F because your teacher will know at first sight you didn't write it #include "stdafx.h" #include <iostream> #include <cliext/map> using namespace System; using namespace std; void sort(int nums [], int numitems) { for (int i = 0; i < … | |
Re: >Is it possible that I could get it back? Probably not -- you auto lose the badge when the period of your donation expires. For example if you donate $3 for one month and don't renew it the badge will only appear for the month of the donation. It's not … | |
Re: look up strstr() function. Another way is to call [strncmp(](http://www.cplusplus.com/reference/cstring/strncmp/)) | |
Re: What compiler are you using? Try commenting out large sections of the code so that you can narrow down the location of the error. | |
Re: The difference is that eof() doesn't recognize end-of-file until an actual read is performed. When at end-of-file line 31 doesn't know it yet until line 33 is executed. But line 34 is executed whether at eof or not. That's a common mistake that new programmers do -- IMO eof() is … | |
Re: Have you read [this](http://technet.microsoft.com/en-us/library/ff405671.aspx) article? | |
Re: My suggestion is to start by playing the game on a real board so that you see how it works. | |
Re: line 26: what happens when found+1 > str.length()? There is nothing in the loop to stop the loop at the end of the str. Replace lines 19-31 with this loop found = str.find_first_of('a'); while( found != string::npos && (found+1) < str.length()) { str[found]='X'; found = find_next_of(str, found + 1); } | |
Re: What is the error? Most likely vb6 programs are just too old to run on windows 8, but that is just my guess. | |
Re: What have you done so far? Do you know how to read a file? If not, then you need to read tutorials on ifstream (input file stream) and ofstream (output file stream). | |
Re: >c++ is completely object oriented programming language. No it isn't. | |
Re: Looks like it is sending char\* (line 15) and receiving wchar_t\* (line 40)? Is that right? I don't think that will work. Suggest you change OnClickedBsend() to convert the string from char\* to wchar_t\* before sending it. | |
Re: Why would you want to compile a windows program on \*nix? Why not just compile on Windows? | |
Re: what compiler? what operating system? what GUI library? | |
Re: The header file will do you no good without the libraries. If you want to code Windows program on \*nix then you need a cross compiler. [Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/475665/compile-windows-source-codec-under-linux#post2077386) is a related article you should read. | |
Re: There is no standard C or C++ function/class that will do what you want. So you can resort to non-standard functions, for example the functions in conio.h if your compiler supports that header file and library. Have youy searched google for password code? like [this link](http://www.daniweb.com/software-development/cpp/threads/32798/password-function-c)? Another example [here](http://www.cplusplus.com/articles/E6vU7k9E/#WIN-e1) | |
Re: void\* is just a generic term for a pointer of any type. For example, malloc() returns void\*. If you really want a pointer of type char\* then, in c++, you have to typecast the return value of malloc(). `char* p = (char*)malloc(15);` In the above, malloc will allocate memory for … | |
Re: ifstream and ofstream cannot be members of a class like you have them. It's probably better to just have inData() and outData() declare ifstream/ofstrem, open the file, then read/write. void Billionaire::outData() { ofstream outFile("filename.txt"); //The output data is formatted accordingly outFile << setw(12) << "Name: " << getName() << endl … | |
Re: Why don't you just bind the DataGridView with the sql? | |
Re: iterators are pointers and need the -> operator not the dot operator cout << left << setw(0) << "--d" << diskQueue.size() << left << setw(4) << " " << left << setw(14) << g->getFilename() << left << setw(14) << g->getMemoryStart() << left << setw(14) << g->getFileLength() << g->getRW() << endl; | |
Re: line 240: Suggestion: Save yourself a lot of grief by shortening that path down. In Visual Studio you can move the projects to another folder. I always put projects in a folder directly off c:, such as `c:\dvlp` That makes it a lot easier to specify specific project paths. line … | |
Re: >// t-1 = second last and t-2 = secound first What?? The second last is t-2, the second first is 1. Why do you need loops to find the second last and second first numbers? | |
Re: What is your question? Nobody here is going to do your homework for you. First you will have to know what "four bar linkage by ..." is. If you don't, then that's the first place to start. I assume your instructor has already explained that in class, providing you attended … | |
Re: what is ID? what is rnd(ID)? Is that generating a random number seeded with ID? Or something else? What SQL database is this for? | |
Re: If you wrote that code then you should know what command-line arguments it needs. Looks like it takes 11 integers on the command line. | |
Re: You have to rewrite the entire file in order to edit one of the lines. It is not possible to just expand a line like you would in memory. If there are lots of edits then first read the entire file into memory (such as into a vector of strings), … | |
Re: If on Windows then call [PlaySound()](http://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx). I don't know the \*nix equivalent, or even if there is one. | |
Re: I doubt that is the exact assignment -- it's completely incomprehensible. | |
Re: Do you mean win32 api functions? They are very old and mostly obsolete now, better to use .NET functions using c++/CLR, C# and/or VB.NET. If you still want to learn win32 api, it's too extensive a subject to be in one book. [Microsoft Press](https://www.google.com/#q=microsoft+press+windows+programming) has probably 10 or more books … |
The End.