15,300 Posted Topics
Re: >I have been absent from our programming lessons ... I have googled everything I could about this subject but I have only had this 1 day to get this fixed before handing it in tomorrow. As George Takei (from Star Trek) would say -- Oh Myyyy! Maybe you should have … | |
Re: Do it in two steps. First step, get return value fromt he stored procedure. Second step: format the select statement that includes the return value of the stored procedure. This means making two calls to the database, which can be somewhat time consuming. Another option might be to create another … | |
Re: > int year = argv[1]; argv[i] has to be converted to an integer before it can be assigned to int variable. There are several ways to do it, this is probably the simplest, but most error prone. atoi() does not produce an error even if argv[i] does not contain numerical … | |
![]() | Re: It would be a lot easier if the whole line was read all at one time instead of a character at a time. fgets() will read an entire line into a buffer, then you can extract the individual words from that buffer. strtok() is handy for doing that. Something like … ![]() |
Re: [Here](http://msdn.microsoft.com/en-us/library/vstudio/z11y6be4.aspx) is an article about elipses. There must be at least one parameter before the elipses. For example: `void foo(int x, ...);` | |
Re: See [CGI Programming](http://www.cs.tut.fi/~jkorpela/forms/cgic.html) | |
Re: your program already reads the file -- just to the opposite of that loop starting at line 319. | |
Re: You need to put a loop around the entire program, such as from line 20 to about line 373 (just before the return statement). It's hard to believe you are not allowed to use functions! No programmer in his/her right mind would write that big of program without using functions … | |
Re: The only sport I play regularly is Diablo III. Just got back from the gym where I did some leg and back exercises then spent some time on the tred mill. Does that count as a sport? | |
Re: Read [this Amazon.com article](http://www.amazon.com/gp/help/customer/display.html?nodeId=200375630). I don't know if the kindle can read that file format, but the article explains how to transfer them. | |
Re: But where does that stop? Should authorities be able to shut down a web site just because some people find it objectionable? So far that hasn't stopped the proliferation of porn sites. It's a bit like free speech -- I may not like what you say but you have the … | |
Re: This has nothing to do with "artificial intelligence" -- just a simple homework assignment. You posted the assignment, now what is your question(s). We are not going to do your homework for you. | |
Re: First thing you need to do is write out everything the program has to do -- schetch out the screens, menus, and describe the functions that it must have and what they are to do. Only after you have finished that can you begin coding it. | |
I have two autos -- 2011 Prius which gets 52 MPG, and 2011 Ford Edge which barely get 20 MPH. I leave the Edge sit in my driveway most of the time, it's over 2 years old and doesn't even have 18,000 miles yet. | |
Re: Have you scanned your computer for malware and viruses? | |
Re: Might not fix the problem, but the two loops in lines 11-17 can be combined into just one loop. Why iterate through the linked list twice when once will do? And what is Reverse() supposed to do? | |
Re: what operating system? For MS-Windows use [these communications functions](http://msdn.microsoft.com/en-us/library/aa363194(v=vs.85).ASPX), or if you bought a multi-serial port card then it should have a device driver for it that you should use. | |
Re: why are you reading the file one character at a time? It would be a lot easier to read the entire line with fgets() then extract the number from the column you want. | |
Re: typecast it `svdcmp((double**)b, 2, 2, NULL, NULL);` | |
Re: > It restarts the device but the problem still persists. Might be a hardware problem. Do you have another mouse you can try? Is it a USB mouse? Try plugging it into another USB port to see if it's a bad USB port. | |
Re: It was also used in the 1980s/1990s with MS-DOS 6.X and earlier to write directly to the screen, or to write directly to a port such as serial and parallel ports. Ahh, those were the good old days when Turbo C was king of the compilers. | |
Re: You need to read the remarks for that function: >If the number of attributes to be written to extends beyond the end of the specified row in the console screen buffer, attributes are written to the next row. If the number of attributes to be written to extends beyond the … | |
Re: You can't do all that in one loop. In the first loop, print 5 spaces then 5 stars. Then in a second loop print 15 stars. The third loop is the same as the first loop. This is assuming you are required to use loops to print the characters one … | |
Re: processes are created by executing a program. But maybe that's not your question. You need to explain a bit more about the problem you have. | |
Re: Functions must be declared before they can be used (function prototypes) -- did you declare viewbooks() in a header file or near the beginning of the file in which it is called? | |
Re: The shift is not necessary, should be able to just or the forground and background colors together as you have done without the shift. As for your question, did you try it to see if it works? | |
Re: line 39 is a function prototype, not an actual call to the function. You could just as easily move line 39 to line 27 with all the other function prototypes. | |
![]() | Re: I don't understand -- what does line 19 have to do with username? At line 19 the contents of query already contains the user name. |
Re: After seeing this thread yesterday I started watching a thread, today I got an email that some posts had been made to it. | |
Re: I upgraded from 8.0 to 8.1 yesterday. Everything went without a hitch, until I tried to access the internet. My computer is wifi and the upgrade lot all network connection settings as well as it deleted antivirus program. I had to reinstall Linksys wifi driver and reconnect to the wifi … | |
Re: Used computers regardless of age aren't work very much, mainly because brand new computers are to cheap. Since it's fairly new you could just buy a new motherboard if you just want an 8-core computer. | |
Re: >(and free to use for students) the Express version is free for everyone. Code::Blocks with MinGW compiler is also an excellent free compiler, it's also portable between MS-Windows and Linux. There might be a version for MAC, but I don't know about that. | |
Re: The same way you would write any character array. If you don't know how to do that either [here is a tutorial ](http://www.daniweb.com/software-development/cpp/threads/6542/fstream-tutorial)to help you out. | |
Re: The way to check it is to run it and see if it does what it's supposed to do. If it doesn't then the program is wrong. From the code you posted I believe you have just scratched the surface of what the assignment requires. | |
I have an XML file I downloaded that is supposed to be API documentation for a program I downloaded. The problem is that I haven't the slightest idea how to read the file. I tried using Notepad, Google and IE, they all just show a lot of gibberish. What program … ![]() | |
Re: Nobody will do your homework, especially since that link doesn't work. | |
I just received FIVE emails from DaniWeb, all of them are identical. Why?? | |
Re: Leap year occurs every 4 years. If the year is evenly divisible by 100 then it is not a leap year, unless it is evenly divisible by 400. For example: the year 2000 was a leap year because it is evenly divisible by 400, but the year 1800 was not … | |
Re: what is "--" ? do you mean "+=" since you also specified "-="? | |
Re: Is that all the instructions you were given? Have you ever seen a telephone or cell bill? Among other things it will contain a detailed list of all the chargeable phone calls you made, how long the calls were, the cost per minute, and the total cost for each call. … | |
Re: because letters are wider than spaces. Use a fixed-width font and it should work. | |
Re: You might find some interesting suggestions here at [CodeProject](http://www.codeproject.com/search.aspx?q=transparent+buttons&x=-1412&y=-148&sbo=kw), the world's largest repositary of free MS-Windows programs and tutorials on the net. | |
Re: What version of MS-Windows and what version of IE? I had problems with IE10 on Windows 7 so I downgraded to IE9. | |
Re: That's a good question. Some sites, such as codeproject.com states that all code can be freely used for either personal or commercial use, sort of like[ GNU license.](http://www.gnu.org/licenses/gpl.html). If you read the TOS link at the bottom of the page I don't see anything of that sort. | |
Re: You also need to create an array of flags (integers or characters), one for each question. Initialize the array to 0, then change the element to 1 for each question answered incorrectly. This means array[0] = answer to question[0], array[1] = answer to question[1], etc. | |
Re: Why does result() have two parameters when only the first parameter is needed? int result (int number) { int number_rev = 0; while (number != 0) { number_rev = (number_rev * 10) + (number % 10); number = number/10; } return number_rev; } | |
Re: _T() is the same as _TEXT(), which converts a string literal to UNICODE, for example _TEXT("Hello World"); Those two macros do nothing for character arrays. These macros are translated at compile time as either wide characters (wchar_t\*) or normal ascii characters (char \*). L is not a macro but forces … |
The End.