15,300 Posted Topics
Re: The second parameter is incorrect -- do not specify the dimensions `storeProportions(output, dropsOf, totals, numFailed); //located in main` | |
Re: If all you want is the first column from each line why are you using a loop to iterate through all the columns of the row? Just call getline once, process the token, then read the next row, ignoring all other columns in the row just read. I don't see … | |
Re: Replace with NULL to indicate it has no value, assuming the field is allowed to have NULL values. | |
Re: you can only get the source code from whoever write the dll in the first place. There is no way to derive source code from the dll file itself. The best you can do is get the assembly code using a disassembler. | |
Re: what do you mean by that? vb6 programs are not web applications -- they only run on a local computer wjuch as the one you use at home or work. I don't know if vb.net can be used with a web server or not, my guess is not. There are … | |
Re: if _getch() returns either 0 or 224 then a special key such as Function keys, arrow keys, KeyUp,KeyDown, etc was hit. In tha case call _getch() again to find out what key was hit. [Here](http://msdn.microsoft.com/en-us/library/aa299374(VS.60).aspx) is a complete list of codes. Because Function keys, arrow keys, etc return the same … | |
Re: why are you using an array of reco objects? The array is not needed, just re-use the same instance of reco. The loop on line 19 is wrong -- arrays are always numbered starting with 0, not 1. In your program valid array numbers are 0, 1, and 2. There … | |
Re: >void AddRecord(ifstream&, struct record[20], int& length) The first parameter is missing a variable name, e.g. `ifstream& infile`. But it doesn't make any sense to have an ifstream parameter to that function because AddRecord() creates a new record, not reading from a file. Inside AddRecord() I assume you will want a … | |
![]() | Re: >>It's supposed to be a cloze test... Doesn't that mean you're supposed to write the program without help from anyone? If yes, then isn't asking us for help the same as cheating by looking in your textbook? line 19: why is the filename hardcoded instead of using the name you … |
Re: You are attempting to set a pointer to a pointer to itself. That makes no sense at all, something like saying "you are your own father". Note: main must be declared to return an int. c++ does not allow declaring functions without a return type. You need to do something … | |
Re: You are going to have to narrow down the problem a bit more for us -- where is the problem? Don't expect us to wade through hundreds of lines of code to find it ourselves. Ain't going to happen. | |
Re: which part of that don't you understand? Were you paying attention in class when your teacher explained it to you? | |
Re: I hope you're not suggesting young men get casterated! | |
Re: From what I've seen MAC is a pretty lousy operating system, my friend has one that crashes constantly. The more I use Windows 8 the better I like it. Windows 8 boots a lot faster than any previous version. Ubuntu boots even faster, but a lot more difficult to learn … | |
![]() | Re: [Here](http://en.wikibooks.org/wiki/C%2B%2B_Programming/Exercises/Iterations) is one site I found |
Re: Is that an external hard drive? Or is it a partition of the internal drive? | |
![]() | Re: Too bad you waited so long to get help. ![]() |
Re: Wednesday, Feb 3, 1943, Aquarius. The day I was born [four US Army chaplains](http://en.wikipedia.org/wiki/Four_Chaplains) died on a ship that was struck by German torpedo in the North Atlantic. | |
Re: did you see [this article](http://www.tek-tips.com/viewthread.cfm?qid=1591816)? | |
Re: You might want to make a c++ base chass, such as clzss Shape, that contains all the basic data such as parameter, area, etc. Then derive circle, square,etc from shape. In the Shape class you could put methods that are common to all shapes, such as get/set for the data. … | |
Re: >for(i=1 ; lam > 0.002 ;i++) That looks like a very very dangerous and unpredictable loop. What happens if the value of lam is never > 002? Or if the value of lam becomes > .002 only after the value of i is greater than 400? You need to rethink … | |
What gives with the bold purple text following the code in [this thread](http://www.daniweb.com/software-development/cpp/threads/453883/problem-in-sfml-project)? It's confusing, and looks like shit. Is that some new formating change made to the forums? ![]() | |
Re: Read [this Microsoft article](http://msdn.microsoft.com/en-us/library/362314fe(v=vs.71).aspx) which explains what the @ symbol is used for. Too bad C and C++ don't have that. | |
Re: Anyone know if Code::Blocks with MinGW has the switches for c++11? [edit] I just now downloaded and installed CB Version 11 with MinGW. The IDE does indeed have an option to enabout c++11 | |
Re: Ok, you told us what you are doing but didn't tell us about the question or problem you are having. If it's a stand-alone PC program that doesn't access your web server then there isn't any full-proof way to accomplish that. Whether you write the date to the registry or … | |
Re: What is the "small problem" ?? Or do you want us to guess? My guess is that you hold your knose when you tried to compile it. | |
I have a copy I no longer want -- if anyone wants it just pay shipping and I'll give it to you. It's in the original box and includes a cd that contains service pack 5. | |
![]() | Re: what operating system and compiler? c++ itself it completly ignorant of graphics. |
Re: Your program doesn't compile correctly, until you fix the errors it will produce undefined behavior. You need to add = symbol in two places, like this: creature human = // <<<< add the = symbol here { 100, I can't compile the rest of the program because you need to … | |
Re: c++ itself knows nothing about graphics so you have to use operating system api or some 3d party graphics library such as OpenGL and DirectX. See [this Microsoft article](http://msdn.microsoft.com/en-us/library/windows/desktop/dd145203(v=vs.85).aspx) for GDI functions on MS-Windows. You must be using a fairly recent 32-bit compiler to access those functions. \*nix has completly … | |
Re: If the order is 5/6/2013 1/1/2012 That is in descending order. if you want 1/1/2012 5/6/2013 Then you want ascending order, not descending. | |
Re: Her name was Terry. I was 4 at the time and she was about the same age, she lived next door in Des Moines, Iowa. The last time I saw her was when I was 9, my parents moved onto a farm 20 miles away. As an adult I married … | |
Re: >since "Contains" needs the spesific time. What does that mean? What is wrong with "2013-05-03 14:10:00 to 2013-05-03 14:12:00"? | |
Re: line 22: use == operator, not the = assinment operator. | |
Re: iterate through each character of the string and use the macro toupper() found in ctype.h to convert the characters to upper case. [code] char c = 'a'; c = toupper(c); // now c will == 'A' [/code] | |
Re: Are you using Visual Studio IDE? It has two ways to compile program: Debug and Release. The Debug project adds a great deal of data (such as a symbol table) to your compiled program to make it easy to debug. This is great if you need to debug the program, … | |
Re: All you have to do is replace cout with printf() and cin with scanf or fscanf. The rest should be the same. | |
Re: Read [this article](http://courses.engr.illinois.edu/ece390/books/labmanual/c-prog-mixing.html). It was written for 32-bit programming but the way to call c functions should be the same. Also make sure your progrzm links with the 64-bit c runtime libraries instead of 32-bit libraries. >do pop and push automaticly adjust the stack? Maybe -- after retuning from c … | |
Re: verify that app.path returns what you think it does. Also the file can not be open by some other procesas. | |
Re: Do you mean inherentence or do you mean another programmer? For inherentence just make the objects private. | |
Re: What's the problem? You stated what it is supposed to do but failed to say what it doesn't do. Don't expect us to guess what you want. | |
Re: Are you saying those two files are created when your computer crashes while your vb.net program is running? That's an odd behavior, never heard of that one. You need to check your program code to see what caused it to crash your computer. What version of MS-Windows are you running, … | |
Re: Add multithreading. Put line 57 in a tight loop, inside that loop after listen() returns create a new thread. lines 62-110 should be in another function which is the thread code. The newest version of c++ standards includes new standards for creating threads which I have not read or used. … | |
Re: It will depend on how the file is layed out, but probably replace both lines 21 and 22 with this one line: infile >> sales[i][j]; Post a few lines of the data file and we can be more specific about how to read it. | |
Re: What operating system? Under MS-Windows see [this article](http://msdn.microsoft.com/en-us/library/exchange/bb856574(v=exchg.140).aspx). Since we know nothing about your installer we can't tell you how to implement that. | |
Re: That bill seems to have very broad provisions covering many different things. Can you post a link that discusses the topic which you are concerned? |
The End.