15,300 Posted Topics

Member Avatar for happygeek

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 …

Member Avatar for Ancient Dragon
1
473
Member Avatar for BigPaw

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.

Member Avatar for GrimJack
0
103
Member Avatar for الوليد

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

Member Avatar for Ancient Dragon
0
134
Member Avatar for guerratg

You posted your program but failed to ask a question. We aren't mind readers.

Member Avatar for BobS0327
0
186
Member Avatar for Limiter

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.

Member Avatar for nitin1
0
115
Member Avatar for vaultdweller123

What os and browser are you using at work? Is it owned by US government?

Member Avatar for Dani
0
162
Member Avatar for deepecstasy

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

Member Avatar for deepecstasy
0
406
Member Avatar for Ancient Dragon

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?

Member Avatar for Ancient Dragon
0
65
Member Avatar for php111

Did you read [this thread](http://www.daniweb.com/software-development/cpp/threads/70096/c-books)? If not, you should.

Member Avatar for mrnutty
0
603
Member Avatar for Ancient Dragon

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 …

Member Avatar for chris.stout
0
198
Member Avatar for sonum04

What, specificially, do you need help with? Post what you have done so far, even if its wrong, and ask specific question(s).

Member Avatar for np complete
0
102
Member Avatar for christinetom

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.

Member Avatar for christinetom
0
2K
Member Avatar for GenieZ

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 …

Member Avatar for GenieZ
0
103
Member Avatar for Mike Askew

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.

Member Avatar for Ancient Dragon
0
164
Member Avatar for francis.deladurantaye

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

Member Avatar for Ancient Dragon
0
135
Member Avatar for xIXZeroIXx

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 }

Member Avatar for xIXZeroIXx
0
289
Member Avatar for prathiyus

>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

Member Avatar for Ancient Dragon
0
230
Member Avatar for ritchonson101
Member Avatar for mayank.dyl

I just use google to look up the words I don't know how to spell (which is most of them)

Member Avatar for tech-ultrasonic
0
436
Member Avatar for trantran

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 …

Member Avatar for trantran
0
193
Member Avatar for rajat.sethi93

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.

Member Avatar for NathanOliver
0
189
Member Avatar for Jsplinter
Member Avatar for marcel.gybels
Member Avatar for marcel.gybels
0
664
Member Avatar for chandnigandhi

[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.

Member Avatar for Ancient Dragon
0
101
Member Avatar for ktsangop

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

Member Avatar for ktsangop
0
768
Member Avatar for Doogledude123

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 …

Member Avatar for deceptikon
1
266
Member Avatar for prathiyus

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

Member Avatar for prathiyus
0
338
Member Avatar for vipulasri.2007

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 …

Member Avatar for vipulasri.2007
0
682
Member Avatar for dancks

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

Member Avatar for dancks
0
202
Member Avatar for RadhikaR

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.

Member Avatar for Ancient Dragon
0
45
Member Avatar for samii1017

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 …

Member Avatar for Ancient Dragon
0
227
Member Avatar for karmmi

[try this](http://msdn.microsoft.com/en-us/library/system.object.tostring.aspx#Y0)

Member Avatar for Ancient Dragon
0
152
Member Avatar for s_danielsz
Member Avatar for leesin

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 …

Member Avatar for Ancient Dragon
0
152
Member Avatar for stephaniec

>(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.

Member Avatar for Ancient Dragon
0
346
Member Avatar for Magda6347

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 …

Member Avatar for Ancient Dragon
0
238
Member Avatar for Enders_Game

inline assembly is not standard, so it all depends on what compiler you are using. VC++ does not allow dw opcode.

Member Avatar for Enders_Game
0
290
Member Avatar for BigPaw
Member Avatar for pbracing33b

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

Member Avatar for Ancient Dragon
0
111
Member Avatar for ranam

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 …

Member Avatar for Ancient Dragon
0
135
Member Avatar for liphoso

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 …

Member Avatar for Ancient Dragon
0
187
Member Avatar for ThomsonGB

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.

Member Avatar for ThomsonGB
0
345
Member Avatar for Hopp3r

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

Member Avatar for triumphost
0
3K
Member Avatar for MasterHacker110

depends on how the file is written. If its a simple text file then you will most likely have to completly rewrite the file.

Member Avatar for Lucaci Andrew
0
418
Member Avatar for ranam

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.

Member Avatar for ranam
0
162
Member Avatar for darkrandomness

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 …

Member Avatar for darkrandomness
0
254
Member Avatar for bemo55

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

Member Avatar for jcmoney1010
0
9K
Member Avatar for pepsi123

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 …

Member Avatar for pepsi123
0
174
Member Avatar for berwick53

you need to allocate new memory for the array. SendBack[x] = malloc(strlen(BUFFER)+1); strcpy(SendBack[x], BUFFER);

Member Avatar for Ancient Dragon
0
135
Member Avatar for goyofoyo

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

Member Avatar for Ancient Dragon
0
97

The End.