1,362 Posted Topics

Member Avatar for blerina12

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

Member Avatar for blerina12
0
72
Member Avatar for lllllIllIlllI

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!

Member Avatar for vmanes
0
154
Member Avatar for skorm909

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 …

Member Avatar for skorm909
0
361
Member Avatar for hag++

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.

Member Avatar for hag++
0
570
Member Avatar for scott6480
Member Avatar for vmanes
0
147
Member Avatar for halluc1nati0n

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 …

Member Avatar for vmanes
0
151
Member Avatar for C++ Beginner

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 …

Member Avatar for jonsca
0
466
Member Avatar for vmanes

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

Member Avatar for ddanbe
1
334
Member Avatar for Codyettie
Member Avatar for Allyw
0
76
Member Avatar for Salem

[QUOTE=WaltP;1108806]Really? Give me 7 guesses... :icon_rolleyes:[/QUOTE] What if the days aren't in English?

Member Avatar for PedroStephano
0
707
Member Avatar for sandorlev

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 …

Member Avatar for vmanes
0
777
Member Avatar for misfits86

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 …

Member Avatar for misfits86
-2
193
Member Avatar for matharoo

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

Member Avatar for ajmacca
0
873
Member Avatar for Jfunch

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 …

Member Avatar for mrnutty
0
461
Member Avatar for Mz3g

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

Member Avatar for Mz3g
0
93
Member Avatar for atticusr5

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.

Member Avatar for vmanes
0
105
Member Avatar for rena0514

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 …

Member Avatar for vmanes
0
157
Member Avatar for manchesterutd

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

Member Avatar for WaltP
0
77
Member Avatar for C++ Beginner

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

Member Avatar for C++ Beginner
0
373
Member Avatar for Christoph928

cout << char( ch - 3 ); Why are you copying that input/output statement pair like that? Have you not gotten to loops yet?

Member Avatar for Christoph928
0
148
Member Avatar for problemkid

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 …

Member Avatar for dusktreader
0
143
Member Avatar for alexa868

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 …

Member Avatar for alexa868
0
96
Member Avatar for noey699

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 …

Member Avatar for noey699
0
154
Member Avatar for rnyamonga

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]

Member Avatar for rnyamonga
0
188
Member Avatar for desmondo

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

Member Avatar for jholland1964
0
116
Member Avatar for haseeb1431

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

Member Avatar for vmanes
0
153
Member Avatar for rahul8590

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

Member Avatar for nezachem
0
200
Member Avatar for rakesh dubey
Member Avatar for Ancient Dragon

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

Member Avatar for jbennet
0
134
Member Avatar for Anpippin

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.

Member Avatar for vmanes
0
136
Member Avatar for kiroyzki

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 …

Member Avatar for vmanes
0
175
Member Avatar for Eric^^

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 …

Member Avatar for Eric^^
0
122
Member Avatar for ge6a93

Easiest direction to follow is to use the gdiplus library. This includes tools for opening most common image formats.

Member Avatar for vmanes
0
61
Member Avatar for new programer

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 …

Member Avatar for vmanes
0
128
Member Avatar for CoolGamer48

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 …

Member Avatar for seemabaalm
0
377
Member Avatar for helixkod

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

Member Avatar for cibaiciao
0
252
Member Avatar for Scuppery

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

Member Avatar for Lardmeister
7
526
Member Avatar for teddy78

[URL="http://lmgtfy.com/?q=c%2B%2B+resize+image"]Here's some who will/have[/URL]

Member Avatar for vmanes
0
59
Member Avatar for Minoks

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.

Member Avatar for thomashill1223
0
233
Member Avatar for sateeshbandi

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

Member Avatar for vmanes
0
123
Member Avatar for ellimist14

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 …

Member Avatar for vmanes
-1
76
Member Avatar for momike205

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 …

Member Avatar for momike205
0
105
Member Avatar for alexa868

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 …

Member Avatar for alexa868
0
110
Member Avatar for KOFSoldier

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 …

Member Avatar for KOFSoldier
-4
180
Member Avatar for rafta

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 …

Member Avatar for vmanes
0
114
Member Avatar for zteam777

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]

Member Avatar for cole davidson
0
114
Member Avatar for bpt0004

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?

Member Avatar for bpt0004
0
99
Member Avatar for dmitriylm

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.

Member Avatar for vmanes
1
103
Member Avatar for kavithabhaskar

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

Member Avatar for donaldw
0
3K
Member Avatar for valkerye

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

Member Avatar for vmanes
0
165

The End.