15,300 Posted Topics

Member Avatar for zigzagzig

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

Member Avatar for Ancient Dragon
0
143
Member Avatar for Lethugs

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 …

Member Avatar for ryanjayson
0
498
Member Avatar for pheonixkid

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

Member Avatar for Ancient Dragon
0
2K
Member Avatar for ragnacrap

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 …

Member Avatar for ragnacrap
0
386
Member Avatar for cambalinho

[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, ...);`

Member Avatar for Ancient Dragon
0
7K
Member Avatar for smdjilani

See [CGI Programming](http://www.cs.tut.fi/~jkorpela/forms/cgic.html)

Member Avatar for Ancient Dragon
0
75
Member Avatar for PulsarScript

your program already reads the file -- just to the opposite of that loop starting at line 319.

Member Avatar for mridul.ahuja
0
128
Member Avatar for sanjit.dasgupta2

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 …

Member Avatar for sanjit.dasgupta2
0
1K
Member Avatar for <M/>

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?

Member Avatar for Lardmeister
0
239
Member Avatar for Darryl_1

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.

Member Avatar for dee101g
0
119
Member Avatar for asif49

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 …

Member Avatar for Ancient Dragon
0
870
Member Avatar for Guled_1

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.

Member Avatar for Ancient Dragon
0
105
Member Avatar for Anumitha

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.

Member Avatar for rubberman
0
232
Member Avatar for Ancient Dragon

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.

Member Avatar for GrimJack
0
395
Member Avatar for AnilKumar_19
Member Avatar for suhasgh

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?

Member Avatar for ookhan
0
188
Member Avatar for kshahnazari

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.

Member Avatar for kshahnazari
0
201
Member Avatar for miladshayan

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.

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Nautanki18
Member Avatar for Darkicon

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

Member Avatar for Darkicon
0
226
Member Avatar for smdjilani

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.

Member Avatar for Ancient Dragon
0
171
Member Avatar for jalal hashmi
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
2K
Member Avatar for PulsarScript

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 …

Member Avatar for darkfire3133
0
193
Member Avatar for nobhonil30390

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.

Member Avatar for balaji9124
0
104
Member Avatar for Zain_2

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?

Member Avatar for Ancient Dragon
0
376
Member Avatar for WEB-REPORTER
Member Avatar for diafol
-8
318
Member Avatar for cambalinho

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?

Member Avatar for cambalinho
0
247
Member Avatar for beastie805

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.

Member Avatar for beastie805
0
688
Member Avatar for tohtori.o

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.

Member Avatar for Ancient Dragon
0
287
Member Avatar for phorce

After seeing this thread yesterday I started watching a thread, today I got an email that some posts had been made to it.

Member Avatar for Ancient Dragon
0
119
Member Avatar for ivy22

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 …

Member Avatar for frank33
0
305
Member Avatar for jean122

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.

Member Avatar for BigPaw
0
236
Member Avatar for Jun Bryan

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

Member Avatar for Ancient Dragon
-1
139
Member Avatar for VUEKID

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.

Member Avatar for mike_2000_17
0
2K
Member Avatar for pro_student

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.

Member Avatar for pro_student
0
284
Member Avatar for Ancient Dragon

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 …

Member Avatar for LastMitch
0
167
Member Avatar for Ankur_2
Member Avatar for vishal daldani
0
150
Member Avatar for Ancient Dragon

I just received FIVE emails from DaniWeb, all of them are identical. Why??

0
132
Member Avatar for Tewhano

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 …

Member Avatar for Tewhano
0
198
Member Avatar for Richard_10
Member Avatar for mike_2000_17
0
293
Member Avatar for shifa.abbasi

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

Member Avatar for Ancient Dragon
0
149
Member Avatar for cambalinho

because letters are wider than spaces. Use a fixed-width font and it should work.

Member Avatar for cambalinho
0
346
Member Avatar for TheNewKid

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.

Member Avatar for tinstaafl
0
291
Member Avatar for cambalinho
Member Avatar for khakilang

What version of MS-Windows and what version of IE? I had problems with IE10 on Windows 7 so I downgraded to IE9.

Member Avatar for khakilang
0
160
Member Avatar for <M/>

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.

Member Avatar for Reverend Jim
0
306
Member Avatar for mcoliver88

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.

Member Avatar for bertha
0
322
Member Avatar for ddnpresident

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

Member Avatar for ddnpresident
0
1K
Member Avatar for cambalinho

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

Member Avatar for cambalinho
0
146

The End.