5,676 Posted Topics

Member Avatar for axn
Member Avatar for Ancient Dragon
0
2K
Member Avatar for Theformand

So the text "Has this thread been answered?" held no meaning. And the text just below it was unreadable....

Member Avatar for griswolf
0
159
Member Avatar for tc121091

So you don't think the error itself is worth knowing, just that the box itself jumps out. You probably go to the store and buy unlabled cans of food, too.

Member Avatar for tc121091
0
208
Member Avatar for CodyOebel

You mean none of this is explained in the help nor at the home page? There's no documentation at all? Somehow I don't believe that...

Member Avatar for WaltP
0
175
Member Avatar for mariusiacob

I would guess that it's because you have no data to display. Where is [B]myarray[/B] loaded?

Member Avatar for abhimanipal
0
3K
Member Avatar for sha11e
Member Avatar for BurgerBob

First post -- CODE Tags [B]and[/B] formatted! Such a wonderful thing to see! One tip - change your IDE to replace TABs with 4 SPACEs instead. Notice hoe the end of your code gets lost in line-wraps. It's also easier to read in general. Your program as written should exit …

Member Avatar for BurgerBob
0
676
Member Avatar for yapkm01

How many different answers are you expecting? If you get three different answers, which one do you choose? Doesn't having multiple answers give you more problems? And if you only get one answer from three different sites, who just wasted the time of people on two sites? Why do you …

Member Avatar for yapkm01
-1
321
Member Avatar for skips

In the function definition: [iCODE]void All_Grades::grade_set(class_percent)//needs to take class_percent [/iCODE] what [B]type[/B] is [I]class_percent[/I]? Don't you need to specify?

Member Avatar for skips
0
218
Member Avatar for hawita

[B]Moschops[/B] is saying you program the computer to do the same thing [I]you[/I] do without the computer. What's your first guess? Make the computer to the same thing.

Member Avatar for Moschops
0
152
Member Avatar for slaidas
Member Avatar for WaltP
0
150
Member Avatar for jingda

We have [B]flag bad post[/B]. We have [B]infractions[/B]. We have [B]rep[/B]. Maybe we need a button for [B][COLOR="Red"]whiner[/COLOR][/B]!

Member Avatar for Portgas D. Ace
0
289
Member Avatar for IndianaRonaldo

It also depends on the compiler, too. Most compilers can't do it. In your case, I would guess it's VC++ something, so [I]getch()[/I] would work.

Member Avatar for IndianaRonaldo
0
181
Member Avatar for harinath_2007
Member Avatar for Moschops
0
105
Member Avatar for jimmymack

[QUOTE=jimmymack;] Because using getline() as in this example terminates the input read once it hits a newline (by default), 'you have to make sure no extraneous input exists in the buffer prior to calling it'.????? For example, if you read in an integer, then a whole line, the user may …

Member Avatar for jimmymack
0
214
Member Avatar for Takafoo

[B]zgesv_[/B] is a variable or function you tried to use but didn't define. Hence "[I][U]undefined[/U] reference[/I]"

Member Avatar for Takafoo
0
216
Member Avatar for ishaan3731

Since this is a school project, and very obviously you haven't learned vectors, make an array of your class [B]product[/B] and you can fill each [B]product[/B] with your data.

Member Avatar for WaltP
0
168
Member Avatar for eddieee

You didn't set up the config files. Assuming the [I]bin[/I] directory is [iCODE]C:\Program Files\Borland\BCC55\Bin\[/iCODE], create these two files in the [I]bin[/I] directory: [B]BCC32.CFG[/B] -I"C:\PROGRA~1\Borland\BCC55\Include" -L"C:\PROGRA~1\Borland\BCC55\Lib" [B]ILINK32.CFG[/B] -L"C:\PROGRA~1\Borland\BCC55\Lib"

Member Avatar for WaltP
0
221
Member Avatar for Violet_82

[QUOTE=Violet_82;] Ok, so I don't quite understand how the [CODE]srand()[/CODE] function is used, (line 34 of main) in combination with the functions [CODE]rand()[/CODE] line 48 and 49. Why do we need [ICODE]srand()[/ICODE] in this program, isn't [ICODE]rand()[/ICODE] enough? thanks[/QUOTE] See [url=http://lmgtfy.com/?q=srand]this[/url] and [url=http://lmgtfy.com/?q=rand]this[/url]

Member Avatar for Violet_82
0
4K
Member Avatar for jimmymack

What keys -- all of them -- are you hitting when you answer the question? Isn't it [iCODE]n[ENTER][/iCODE]? If so, your code reads the [iCODE]n[/iCODE], correct? What happens to the [iCODE][ENTER][/iCODE]? Well, the next input gets it and does what it's supposed to do. Exit. You need to clear out …

Member Avatar for jimmymack
0
108
Member Avatar for rhythm1576

Explanation of task - check Current code - check Explanation of what you have trouble with - nonexistent Therefore - requesting us to read your code, understand what you did, try to correlate it with the task list, and try to figure out what you don't understand, and finally tell …

Member Avatar for WaltP
0
283
Member Avatar for moey187

Didn't [B]Dave[/B] answer you well enough 4 hours ago on the other site? Was there something you didn't understand?

Member Avatar for moey187
0
97
Member Avatar for seanmchugh.info

I agree. [B]AD[/B] commented as he saw it, explaining why he would suggest not doing it. Then you became belligerent and condescending.

Member Avatar for abelLazm
-1
133
Member Avatar for charchar88

[QUOTE=charchar88;]I also discovered I have to precede every '*' symbol with a \ to do the multiply i.e. [B]./test 7 10 \*[/B] rather than just [B]./test 7 10 *[/B]otherwise it starts printing out stuff I don't want. If I don't use the \, argv[i] would also print out my file …

Member Avatar for charchar88
0
2K
Member Avatar for Prisms

Looking back on your code, #1 is stop using TABs to indent. Use 4 SPACEs. Your IDE can be set to convert TABs to SPACEs. And be more consistent with your indentation. [url=http://www.gidnetwork.com/b-38.html]See this[/url]. Also, before you even touch the computer, design the program in pieces on paper. Take each …

Member Avatar for L7Sqr
0
144
Member Avatar for abelLazm

Try reading your Private Messages. They are explained in the messages.

Member Avatar for Narue
0
93
Member Avatar for charchar88

Never never NEVER [B]NEVER[/B] change [iCODE]argv[][/iCODE] values. They are command line inputs, not to be modified by the program. Copy them to an internal buffer. If you use [ICODE]strPointer 10 7 +[/ICODE] then [ICODE]argv[1][/ICODE] = "10" [ICODE]argv[2][/ICODE] = "7" [ICODE]argv[3][/ICODE] = "+" You might want to read [url=http://www.gidnetwork.com/b-45.html]this series[/url] if …

Member Avatar for WaltP
0
226
Member Avatar for dalk8978

Change [I]cout[/I] to [I]printf[/I] Change [I]cin[/I] to [I]scanf[/I] Change to the proper headers for C Post using CODE Tags.

Member Avatar for WaltP
0
183
Member Avatar for hawita

[QUOTE=hawita;]i am trying to write a program to play the Battleship game;It is not a homework problem just a practice problem.[/QUOTE] Good program to practice on. Well done. [QUOTE=hawita;]The instructions are: set up a coordinate grid, select your own ships and locations while the computer selects its own; launch missiles …

Member Avatar for Nicco
0
487
Member Avatar for zychos

Add a ; after your keytab structure. On line 13 you don't have a type name (like [iCODE]int keytab[][/iCODE])

Member Avatar for zychos
0
463
Member Avatar for salty11

So what does your output mean? What's wrong with it? Just posting a bunch of numbers with no explanation makes it impossible to help.

Member Avatar for WaltP
0
131
Member Avatar for Awilson089

Why would you want to [B]strlen()[/B] and integer? What is [B]strlen()[/B] used for? What is it that makes a 7 digit number different from, say, a 4 digit or 8 digit number? But, if you are going to have a pin value ready for them to match, who cares if …

Member Avatar for VernonDozier
0
255
Member Avatar for sosongetsu

It is close to impossible to answer a question that is not asked. And you didn't ask one. So, we don't know what to help with...

Member Avatar for WaltP
0
2K
Member Avatar for tetran
Member Avatar for coding101
Member Avatar for WaltP
0
52
Member Avatar for TinhornAdeniyi
Member Avatar for WaltP
0
106
Member Avatar for massivefermion

[QUOTE=pywriter;]I know the how to fill a magic square but there is a problem in the code.[/quote] We don't... [QUOTE=pywriter;]The algorithm is like below: 1-Put number 1 at the second column of first row. 2-Put the next number one upper row and one behind column. 3-If the cell mentioned in …

Member Avatar for massivefermion
0
211
Member Avatar for hous3aholik

I don't think anyone has noticed, but the assignment doesn't mention [B]string[/B] nor [B]character array[/B] anywhere. Where did you get the requirement to convert stuff to a string? Why not just read the values as integers and compare?

Member Avatar for TrustyTony
0
2K
Member Avatar for jingda

[QUOTE=crunchie;]You must first go without sleep for 36 hours before being subjected to numerous hard-hitting questions like 'What you did last Summer'...[/QUOTE] But I already know what you did last summer! :icon_twisted:

Member Avatar for jingda
0
185
Member Avatar for manofhouse

#1) Why are you using a [B]string[/B] to hold 1 hex character. Use a [B]char[/B]. #2) Make a loop instead of 16 nested [B]IF[/B] statements. #3) Why are you taking the substring of [B]convert[/B] and loading it into [B]convert[/B]? Isn't that like digging a hole and putting the dirt in …

Member Avatar for Tomi1988
0
421
Member Avatar for TinhornAdeniyi

[QUOTE=abhimanipal;]PS I hope you have malloced memory for max[/QUOTE] Why? Can't you just create the variable using [ICODE]double max;[/ICODE] and pass in the address?

Member Avatar for TinhornAdeniyi
0
104
Member Avatar for dashure

Of course. The Psychic Programming InterNetwork will get right on it. The problem is on line 36.

Member Avatar for dashure
0
128
Member Avatar for lukemuller

Problem I see is an over complex concept. Why dynamic arrays? They are harder to deal with and your plane size is fixed. How about [iCODE]seating[12][4][/iCODE] to make it easy on yourself. Note your instructions say "[I]The data structure that is used to store Passenger objects must be array.[/I]" No …

Member Avatar for lukemuller
0
2K
Member Avatar for acpr
Member Avatar for GulnazS
Member Avatar for salty11

use [iCODE]cout[/iCODE]'s to follow your program: Is your input completely correct? Display what you read and verify it's accurate. Is your sort testing the correct values? Again, display what you are testing and at least whether or not the values get swapped. You probably don't need to display each value …

Member Avatar for salty11
0
429
Member Avatar for nadleeh

I guess by Reading lines that are not blank and stopping when a blank line is read. Process the lines read. Start again.

Member Avatar for abhimanipal
0
77
Member Avatar for aamira_s

[QUOTE=aamira_s;1530903]This program is to count the number of words,vowels and consonants of a string.Here is my code.Please post your comment.I do not know whether I need to change anything. [/quote] [CODE] IF (code works as expected) why would changes be needed? else changes are needed [/CODE] Now if you have …

Member Avatar for abhimanipal
0
166
Member Avatar for fadi_1234
Re: Help

How is this spam? Just looks like a worthless post to me, not spam.

Member Avatar for WaltP
-1
272
Member Avatar for fadi_1234

[QUOTE=fadi_1234;1528821]this game is between a player and computer can you make it between two player please ?[/QUOTE] That would be your job. If you have working code to begin with.

Member Avatar for VernonDozier
0
337

The End.