15,300 Posted Topics
Re: You need to fix all the compiler errors before you attempt to run the program. the two variables declared on line 9 are too small if you expect to enter two characters on line 21. cin will add a string null terminating character, so increase the size of the two … | |
Re: line 26 has two problems: position should not be decremented on line 26, decrement it after line 29. the loop should continue while position > 0 instead of > 1. | |
Re: SetParents() does not need a reference to a pointer -- just the pointer `_clients->at(FreeIdx).GetPlayer()->SetParents(this, __clients->at(FreeIdx));` When passing a poitner by reference the & operator is not used in the actional function call, only in the function prototype and function header. The & in the actual function call makes it a … | |
Re: readfile() expect the first parameter to be a pointer to a pointer -- you only provided the pointer on line 29. Here is how the first parameter should look like. All the other parameters have the same problem. `readFile(&itemNumbers, itemPrices, itemQuantities, arraySize);` Since itemNumbers has two stars in order to … | |
Re: it crashes because the second parameter to itoa() must be a characte array, not just a pointer. See the example [here](http://www.cplusplus.com/reference/cstdlib/itoa/). | |
Re: mahroza: how will including stdio.h resolve the problem??? | |
Re: Which line contains the error? What compiler are you using? I compiled with Visual Studio 2013 and did not get any errors. | |
Re: You both should ditch that compiler and use Code::Blocks with MinGW instead because they are newer and still actively supported. Dev-C++ has not been updated in quite a few years and uses an older version of gcc/g++ compilers. | |
Re: >I cannot get things to work on my Windows 7 PC. What kinds of problems are you having? As I recll from 25 years ago dBase ran under MS-DOS version 6.X and earlier. Under Windows 7 you may have to install DOSBox and run it in that environment.[Click Here](http://sourceforge.net/projects/dosbox/) | |
Re: If all you want to display is the files in the folder then call [Directory.GetFiles()](http://www.) method. You don't need a tree to do that, unless what you really want is a list of folders that you can select then display the files within the selected folder, like FileExplorer does. | |
Re: As I recall it was a Unix computer that beat the world chess champion about 10-15 years ago. Pretty impressive feat, I doubt MS-Windows could have done that. | |
Re: sounds like you didn't create a console project so that Dev-C++ could generat the makefile. | |
Re: Everyone can earn reputation points by making good helpful posts in any of the forums except in Community Center. No one, even the admins, get rep in the community center. If other members feel your comment are helpful then they will give you an upvote with comment. Upvote without comment … | |
Re: What operating system? What compiler? I would't do that -- it would take years to duplicate what other teams of programmers have already done, especially if you want cross platform. QT is probably one of the best free cross-platform GUI compilers, actually I think it's just an IDE and works … | |
Re: header files are not to be compiled, they are just included in other \*.c and \*.cpp files. // some \*.cpp file #include <iostream> #include "SalesP.h" // rest of cpp code goes here | |
Re: If all you want to do is access a database on another computer then you don't need client/server software. In the connection string put in the IP address of the computer that hosts the database. "Data Source=xxx.xxx.xxx" replacing the xs with the actual ip address. [Here ](http://delphi.about.com/library/weekly/aa101805a.htm)is a link for … | |
Re: >i have managed to bypass that a couple of times. Figures :) | |
Re: you can't put executable statements before variable declarations in C language. | |
Re: There's generally two layers of software -- os kernel which has direct access to all hardware, and application programs which are protected from direct hardware access. What you are asking is how to write os device drivers, which run at the kernel level. For MS-Windows you will need [these tools.](http://msdn.microsoft.com/en-us/windows/hardware/gg454513.aspx) … | |
Re: I try not to criticize people who don't know English, they most likely write in their own language then use a translator to translate into English. Those translators aren't very good sometimes. I don't know a second language but if I had to write a question in French for example … | |
Re: are you allowed to use another char array to save the reversed string? If you are, then start at the end of the original string and work backwards towards the first character, in the loop store each character in the second array from front to last. For example, if the … | |
Re: Install the 32-bit version of the device driver if you compile vb.net for 32-bit program, which is I think the default. Are you using Visual Studio 2010 **PRO** because the Express version only compiles 32-bit programs. I had a similar problem then found out that I had installed the 64-bit … | |
Re: The only way I know to do that is to move the cursor on the array name then an + will appear, select the + and it will show all array elements. You can even do that for linked lists, but only one node at a time. It doesn't work … | |
![]() | Re: Depends on the operating system and compiler. C language does not specify anything about GUI functions, entirely os and compiler dependent. |
Re: not going to happen. Post the code you have already done. | |
Re: Do you already know how to query the database? What database? Is it a simple text file, and SQL database, or something else? | |
Re: what does that have to do with vc++???? > OpenMP support requires compilation with GCC 4.2 (or later), or use of any C compiler supporting at least the OpenMP 2.0 specification. It may not work with VC++. I don't know if VC++ meets the requirement. But it probably works with … | |
Re: class of girls with their ages and phone numbers (a little black book). | |
Re: Or use std::set, which doesn't allow duplicates to be entered. | |
Re: Sounds like normal behavior -- your computer is going into sleep mode. Turn it off ([click this](https://www.google.com/#q=windows+7+how+to+turn+off+sleep)) | |
Re: Are you at work or at home when that happens? If you're at home why not just use Thunderbird? I'm guessing you don't have that option at work. | |
Re: lines 10, 14 and 18 are incorrect. What you did was pass a pointer to a non-existant byte in the string. This is how it should have been coded: `scanf("%s",name);` Notice it does not need the & address operator because arrays are always passed by address. That passes the address … | |
Re: Lines 23 and 43 write text files, not binary files. If you want binary file then. You can't write binary then expect to read it as text, or vice versa. `os.write((void*)&os, sizeof(os));` and `os.read((void*)&os, sizeof(os));` On MS_Windows it's dangerous to attempt to write both text and binary into the same … | |
Re: Rather than attempting to swap link pointers it is a lot easier to swap the data and leave all the pointers alone. | |
Re: what thread are you talking about? You need to post a link to it. >Where is the start menu in Windows 7? Are you kidding??? The Start menu is in the left most side of the toolbar. You can't miss it unless you're blind. | |
Re: If you are talking about MS-DOS 6.X and earlier, you don't "creat it". You get it from Microoft, assuming they still have it. There's also Dr DOS, which is MS-DOS like. But neither are supported any more because they're too old and nobody uses them. [Here is a link ](http://en.wikipedia.org/wiki/Comparison_of_DOS_operating_systems)that … | |
Re: Why is the vector of Student classes contained within the Student class? The vector should be declared in main(), not in the class itself Then I'd take set_students() out of the class and make it a simple global function. void set_students(vector<Student>& students); int main() { vector<Student> students; set_students(students); } what … | |
Re: > I think it may be because there's a pointer inthe struct declaration, Nope, it has nothing to do with that pointer, unless there is no memory allocated to the pointer. The problem looks like Teams is not an array but a single instance of the structure. If you want … | |
Re: Sometimes I click a menu and nothing happens for a long time. Other times I double post because I didn't think anything happened when I clicked the Submit button. | |
Re: >I agree with you on the price, it is expensive but it makes up for it in productivity in a work environment. It sure doesn't worth buying Office to track your monthly expenses or your milage. I have both, OpenOffice and Microsoft Office 365. I rarely use OpenOffice because M$ … | |
Re: Do universities teach that any more? I thought writing programs in machine code went out in the early 1960s, before punch cards were invented. | |
Re: Please post the code you have written. | |
Re: what's the problem? How is **array** declared? | |
Re: Where's the coded you have done? We are not going to write it for you. | |
RIP -- she died recently at young age of 85. Those in my age group will remember her as the sweeet little curley haired girl in movies. She made a couple movies during here teenage years, but her movie career ended after that. After adulthood she became American Czechoslovakia. You … | |
Re: What is so magical about the digit 9, except turn it upside down and it becomes 6? | |
Re: Go to Project --> <Project name> Properties (last menu item) --> Configuration Properties --> Linker --> Input. Then in the right pane, add the lib name in the first item **Additional Dependencies**. Under Linker --> General, add the complete path to the lib in **Additional Library Directories**. An alternative to … |
The End.