15,300 Posted Topics

Member Avatar for Ezekiel_1

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 …

Member Avatar for Ezekiel_1
0
9K
Member Avatar for Emma_3

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.

Member Avatar for vmanes
0
1K
Member Avatar for Webbsta

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 …

Member Avatar for Webbsta
0
235
Member Avatar for brandon66

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 …

Member Avatar for Ancient Dragon
0
157
Member Avatar for mixelplik

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/).

Member Avatar for mixelplik
0
320
Member Avatar for SivaKing
Member Avatar for rubberman
0
311
Member Avatar for Isabella Angeliese

Which line contains the error? What compiler are you using? I compiled with Visual Studio 2013 and did not get any errors.

Member Avatar for Ancient Dragon
0
814
Member Avatar for sykopwinx
Member Avatar for Ancient Dragon
0
105
Member Avatar for niyasc

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.

Member Avatar for Ancient Dragon
0
339
Member Avatar for man.chester.581
Member Avatar for laaus001

>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/)

Member Avatar for Ancient Dragon
0
135
Member Avatar for CoolAtt

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.

Member Avatar for Ancient Dragon
0
119
Member Avatar for RikTelner

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.

Member Avatar for RikTelner
0
272
Member Avatar for Kevin_7

sounds like you didn't create a console project so that Dev-C++ could generat the makefile.

Member Avatar for Ancient Dragon
0
222
Member Avatar for Mike_danvers

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 …

Member Avatar for Mike_danvers
0
278
Member Avatar for tharindu123
Member Avatar for man.chester.581

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 …

Member Avatar for glenwill101
0
300
Member Avatar for xidike

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

Member Avatar for xidike
0
195
Member Avatar for deyb.dizon

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 …

Member Avatar for deyb.dizon
0
255
Member Avatar for Dani
Member Avatar for rocky2008
Member Avatar for Ancient Dragon
0
935
Member Avatar for Curious Gorge

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) …

Member Avatar for Curious Gorge
0
250
Member Avatar for gabrielcastillo

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 …

Member Avatar for Reverend Jim
0
235
Member Avatar for ashishkadam0220

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 …

Member Avatar for Ancient Dragon
0
310
Member Avatar for virupax

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 …

Member Avatar for deceptikon
0
449
Member Avatar for DavidB

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 …

Member Avatar for DavidB
0
1K
Member Avatar for ahmedsalem

Depends on the operating system and compiler. C language does not specify anything about GUI functions, entirely os and compiler dependent.

Member Avatar for Ancient Dragon
0
58
Member Avatar for aaron.richards.9404
Member Avatar for ram_7

Do you already know how to query the database? What database? Is it a simple text file, and SQL database, or something else?

Member Avatar for Ancient Dragon
0
101
Member Avatar for ganesh.naphade

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 …

Member Avatar for Ancient Dragon
0
155
Member Avatar for PulsarScript

class of girls with their ages and phone numbers (a little black book).

Member Avatar for rubberman
0
111
Member Avatar for StarBreezed
Member Avatar for ryan.jay.ong

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))

Member Avatar for Gabriel_4
0
129
Member Avatar for Reverend Jim

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.

Member Avatar for Reverend Jim
0
308
Member Avatar for V3N0M

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 …

Member Avatar for Ancient Dragon
0
180
Member Avatar for Elixir42

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 …

Member Avatar for vijayan121
0
4K
Member Avatar for malik.epperson

Rather than attempting to swap link pointers it is a lot easier to swap the data and leave all the pointers alone.

Member Avatar for malik.epperson
0
1K
Member Avatar for AtLeastI'mTryin

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.

Member Avatar for AtLeastI'mTryin
0
153
Member Avatar for RikTelner

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 …

Member Avatar for RikTelner
0
717
Member Avatar for Damian_2

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 …

Member Avatar for rubberman
0
436
Member Avatar for mixelplik

> 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 …

Member Avatar for rubberman
0
180
Member Avatar for pritaeas

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.

Member Avatar for Dani
3
381
Member Avatar for serkan sendur

>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$ …

Member Avatar for Reverend Jim
0
333
Member Avatar for ang19

Do universities teach that any more? I thought writing programs in machine code went out in the early 1960s, before punch cards were invented.

Member Avatar for David_34
0
1K
Member Avatar for cadam940
Member Avatar for chubbyy.putto
Member Avatar for Ericus7
Member Avatar for Ancient Dragon
0
113
Member Avatar for Ancient Dragon

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 …

Member Avatar for Reverend Jim
2
118
Member Avatar for Prashant_3

What is so magical about the digit 9, except turn it upside down and it becomes 6?

Member Avatar for android9000
0
110
Member Avatar for nikkoderic.aranas

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 …

Member Avatar for Ancient Dragon
0
735

The End.