1,362 Posted Topics
Re: Is [URL="http://office.microsoft.com/en-us/help/HP030845931033.aspx"]this [/URL]what you're looking for? (Third item in list) (May the Google be with you!) | |
Re: I'll put in a plug for my state - South Dakota. Where else can you see four Presidents carved in a mountain, and just a short drive from there find an Indian chief also carved on a mountain? We got deer and the antelope, and the buffalo roaming! | |
Re: What is the data type of your input variable? Are you comparing it to a similar type value? No. If you want to compare to "good" or "bad" or "crappy" or ... you must take your input as a string. If you use C-style (char array based) strings, you must … | |
Re: system( ) calls will probably not do what you want. To some degree, you can fullfill the task using console commands, like SetConsoleTextAttribute( ) See more [URL="http://msdn.microsoft.com/en-us/library/ms686971%28VS.85%29.aspx"]here[/URL] It's not a trivial problem. | |
Re: set each element to the sum of the counters, i and j ?? | |
Re: I can't explain it all, and don't have a *nix box handy, but consider these two problems: [code] int pid_array[2]; int count[25], length, i, j; for (i=0; i<3; i++) { pid_array[i] = 0; } [/code] pid_array is size 2, but you access it out to three elements. Oops. [code] for … | |
Re: I get error [icode] cars::make cannot access...[/icode] which is slightly, and subtly, different than what you report. It comes from this line: [code] cin >> cars.make; [/code] You've only done half the assignment - you've declared the get.... methods, also known as accessors. You need to create the set... methods … | |
"gauche" In discussing use of boolean types, I found the following: [quote] By the way, it is considered [b]gauche[/b] to write a test such as if ( married == true ) .... //Don't Just use the simpler test if ( married ) [/quote] (my emphasis added) "Big Java", 4th ed, … | |
Re: Look [URL="http://lmgtfy.com/?q=windows+7+requirements"]here[/URL] | |
Re: [QUOTE=WaltP;1108806]Really? Give me 7 guesses... :icon_rolleyes:[/QUOTE] What if the days aren't in English? | |
Re: When your encipher loop has found the letter and converted to the enciphered character, it keeps on checking that character. With a shift of one, if finds it again, changes it to the next letter, till it gets all the way to z/Z, and wraps it around to a/A at … | |
Re: A. This is a C++ forum, your code looks like Java B. Are you asking for help on the pseudocode, or the code C. You appear to be sorting the array, which is not part of the problem statement you give. Well, it will work to find the smallest and … | |
Re: switch only works with integral types as the switch_var. You will be limited to one character labels in the switch block. You could, in validating the input, make a conversion from "words" to single characters. Something like: [code] char input[20]; char operation; cout <<"Operation?"; cin >> input; if( strcmp( input, … | |
Re: I'm assuming you really want the backwards triangle to look like: [code] * ** *** **** [/code] (ignoring the line numbers, of course.) So consider what will be on each line. The first must have blanks, up to the point where you want the star. The next line has one … | |
Re: They need more than that. Actually, == is not often used in for loop tests. [code] for (c=1; c <= n , c++ ) { for (r=1; r <= n, r++ ) { [/code] What is it you think you're doing with these statements? [code] N=(r,c); cout << "N = … | |
Re: And look at your lines like this: [code] if(choice_2=="ID") [/code] That does not do what you want it to. [icode]choice_2[/icode] is a char array based string (C- style) so you cannot use the equality operator, you must use the strcmp( ) here as well. | |
Re: It looks like your program is working perfectly well. That is, it's doing what you've told it to do. Two areas of concern. First, you don't have enough data to fill that array. You've got 34 or so data elements, and the matrix is sized for 124. So after the … | |
Re: loop, controlled by successful input convert letter to its numeric equivalent add that to running total keep count of number of grades when loop done, figure the average from the total and count | |
Re: First off, I'd store the test grades in an array in the struct, not as separate members. That way you can use a loop for the input, saving a lot of repetitive code. The Grade member should be a char, not an int, if you want to store letter grades. … | |
Re: cout << char( ch - 3 ); Why are you copying that input/output statement pair like that? Have you not gotten to loops yet? | |
Re: Do you mean ASCII code? Using strings will have advantages in input and output, compared to storing individual digits in array or vector elements. But you'll have to be sure you do the conversion from character code to numeric value and back again correctly. Remember that to do addition you'll … | |
Re: Getting 0s down the diagonal is simple. After filling it, run a simple loop the size of the row or col dimension, using the loop counter as both row and column index, setting those elements to 0. Or, when you allocate the array, initialize it to 0s (which one really … | |
Re: I think what's happening is when you send in an "ordinary" straight, it gets caught by the striaght flush if test. It doesn't pass the test for flush, and then falls out of the entire if/else block. I think it would better to simply test first for straight. If a … | |
![]() | Re: There's a registry key that should allow you to re-enable task manager. See info [URL="http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/UserTips/Customization/EnableDisableTaskManagerinWindowsXPHomePro.html"]here[/URL] ![]() |
Re: Here's a couple links with info on manually removing it: [URL="http://www.bleepingcomputer.com/virus-removal/remove-live-pc-care"]http://www.bleepingcomputer.com/virus-removal/remove-live-pc-care[/URL] [URL="http://www.spywarevoid.com/remove-live-pc-care-livepccare-removal-help.html"]http://www.spywarevoid.com/remove-live-pc-care-livepccare-removal-help.html[/URL] Having just spent a total of 8+ hours scanning, cleaning, registry copying to clear my wife's PC, I feel your pain1 | |
Re: [QUOTE=tkud;1110211]The reason I said int main() was the cause was that I copied and pasted the original code from this site, changed void to int and then compiled it, and the result was 123. If it's not the cause , however,then pardon my mistakes.[/QUOTE] int or void main was not … | |
Re: [QUOTE=tkud;1108442]U used cin.get(). The function was told to "get" 10 characters. Since your file contained only 3 characters, the OS added 7 more of its own![/QUOTE] No, the 10 char string is for the filename. OP is reading in single char at a time, storing as an int. I believe … | |
Re: [QUOTE=Salem;1091857] The year is 9999 and people are running round trying to get you thawed out so you can fix some Y10K bug ;)[/QUOTE] "We see in your file you were a COBOL programmer." | |
Re: Of course, it all depends on if the PC maker has left the temp sensors available. Just because the CPU supports such reporting (and the P-D does in my Gateway) doesn't mean every motherboard on which that CPU is installed will provide the data. | |
Re: That's a lot of code to look through. Could you pinpoint what's going wrong - what result are you getting, what result do you expect? Have you tried walking through the code, following sample data and calculating by hand what each statement does? Compare what you expect to what the … | |
![]() | Re: NO, it's not got to do with formatting (that's what we all kept saying when HDs were in the 10-40MB range.) It's got to do with how the "Gigabytes" are counted up. The operating system is using a value based on base 2 approximations, while the guy that wrote the … ![]() |
Re: Easiest direction to follow is to use the gdiplus library. This includes tools for opening most common image formats. | |
Re: When you want to understand what a piece of code like this does, or how it does it, it's sometimes useful to get out pencil and paper. Write down each of the variable names, and beside them keep track of their values as the program executes. Walk through it by … | |
Re: If you are buying a new PC with Vista installed, you have a reasonable assurance that it has appropriate drivers for the hardware. Finding XP drivers for new hardware is a hit or miss proposition. (Probably more than half the posts on HP/Compaq laptop forum are for help finding XP … | |
Re: Where are you? I want to come rip the * key off your keyboard!!!!;) The value middle must be an int - has to be in order to be an index into the array. That will fix the % operator problem. You don't want to test middle % 2 - … | |
Re: [quote]13. Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.[/quote] Love this one, have it posted in my office. It's from "Wizardry Compiled" by Richard (Rick) Cook. … | |
Re: [URL="http://lmgtfy.com/?q=c%2B%2B+resize+image"]Here's some who will/have[/URL] | |
Re: It would help to know where you are, what brand ink you need. Do you want factory new or remanufactured? My usual supplier for HP ink is ANTONLINE located in USA. That reminds me, I need to order a set of inks soon. | |
Re: If the assignment is to use the C structures and header file as is, then you should not make changes to it. But, you could create classes that use those structs as data members, or even derive class(es) from those structures and give them added functionality. Remember that in C++, … | |
Re: If you're counting the operations, there's not really much calculation to do. You should keep separate counters for the comparisons and the exchanges/assignments. Be sure to do your tests with the same data set to each sort function. Then display the counts of compares/assignments. Note that these results will vary … | |
Re: A. please put code inside code tags, that makes it more readable. B. In answer to your question, I'd ask you to work it out by hand. When i is 1, what is the index v_in and v_out? When you answer that, I think you'll see the significance of the … | |
Re: But, you're using the Internet to ask us about books!! Hmm, then, could you use the Internet to search for books? How about [URL="http://lmgtfy.com/?q=hacking+and+security+site%3Aamazon.com"]this[/URL]? Really, the bibliography is to list the books used in writing the paper, if you don't have direct access to the book, how is it legitimate … | |
Re: OK, valid help. Can you presently write a program that implements a stack of integers, and the operations upon the stack? Can you write code that will read from a file? Yes, you need to use the fstream library in order to us an ifstream to read the file. Note … | |
Re: Look at the order you are using the search functions. You call the function, looking for a fixed number. You then ask the user to enter a search value. You then test the result of your search, for that fixed number, which is not the user's input (most of the … | |
Re: Oh, it's not really that hard. You could do this if you were writing it in program code, and it's just a little jump to do it in Excel. A cascading if...else block does it. [code] =IF(C5="CA",D5*0.0975,IF(C5="LA",D5*0.0875,D5*0.04)) [/code] | |
Re: I get no errors on that line, but several other compiler errors and warnings do come up (Visual C++ 2008) Have you in fact posted the latest version of your code that is giving you problems? Have you cleared all the other errors/warnings? | |
Re: How about: [code] while( INSTREAM.getline(line,500) ) { OUTSTREAM << counter << line; counter++; } [/code] You can search on DaniWeb why the eof( ) usage is not advised. | |
Re: [quote]You just have to send the ASCII 7 - code to the screen ... [/quote] But that's just a boring little beep. The Beep( ) function lets you specify frequency and duration - you could make music with it. As to OP's scope problem, I've no clue. It works for … | |
Re: I'm surprised you get even that. Firstly, if you're getting warnings from your compiler, pay attention to them and fix the problems. #1 - it's [icode] int main( ) [/icode], not just main( ) #2 - quotatot is used without being initialized - you will get weird results. #3 - … |
The End.